Custom Models
c8y is highly customisable and virtually all data models can be enriched with either simply or complex types.
This obviously creates a problem for a strongly typed language such as Swift. By default any found custom structures
are flattened into string name-spaces and referenced from a property map in C8yManagedObject
, c8yAlarm
or C8yEvent
etc.
However the library allows you to integrate your own Classes to encode/decode these custom models. Here you will find custom models that have already been included.
-
Undocumented
See moreDeclaration
Swift
public struct C8yAddress : C8yCustomAsset
-
Undocumented
See moreDeclaration
Swift
public struct C8yContactInfo : C8yCustomAsset
-
Undocumented
See moreDeclaration
Swift
public struct C8yPlanning : C8yCustomAsset
-
Undocumented
See moreDeclaration
Swift
public struct C8ySuppliers : C8yCustomAsset
-
Undocumented
See moreDeclaration
Swift
public struct C8ySupplier : C8yCustomAsset, Hashable
-
Undocumented
See moreDeclaration
Swift
public struct C8yModel : C8yCustomAsset, Hashable
-
Undocumented
See moreDeclaration
Swift
public struct C8yModels : C8yCustomAsset
-
Undocumented
See moreDeclaration
Swift
public struct C8yLoRaNetworkInfo : C8yCustomAsset
-
Undocumented
See moreDeclaration
Swift
public class C8yDeviceModelsReference : ObservableObject
-
Undocumented
See moreDeclaration
Swift
public struct C8yAssignedNetwork : C8yCustomAsset, Equatable
-
Undocumented
See moreDeclaration
Swift
public struct C8yDeviceNetworkProvider
-
Undocumented
See moreDeclaration
Swift
public struct C8yDeviceNetworkInstance