Custom Fragments
A Cumulocity managed object C8yManagedObject
is an open model that can be enriched with additional attributes, either simple String or complex sub structures.
This library allows you leverage these custom attributes via a properties dictionary that can reference both simple String or complex custom attributes.
The following section will explain how you can add your own custom classes to manage complex fragments that you want to add to your managed objects.
-
Abstract factory class, override implementation to return appropriate sub class of
C8yCustomAsset
Declaration
Swift
public class C8yCustomAssetFactory
-
Your custom asset Struct must implement the following methods in order that it can decoded/encoded as a JSON fragment from the c8y ManageObject
See moreDeclaration
Swift
public protocol C8yCustomAsset : Decodable, Encodable
-
Undocumented
See moreDeclaration
Swift
public struct C8yCustomAssetProcessor