Class Shadow
- Namespace
- nanoFramework.Aws.IoTCore.Devices.Shadows
- Assembly
- nanoFramework.Aws.IoTCore.Devices.dll
Shadow Representation. https://docs.aws.amazon.com/iot/latest/developerguide/device-shadow-document.html
public class Shadow
- Inheritance
-
Shadow
- Inherited Members
- Extension Methods
Constructors
Shadow()
Default constructor.
public Shadow()
Shadow(string)
/// Creates an instance of Shadow.
public Shadow(string shadowJsonString)
Parameters
shadowJsonString
stringShadow as a JSON string
Properties
clienttoken
Shadow's Client Token
public string clienttoken { get; set; }
Property Value
metadata
Gets and sets the Shadow metadata properties.
public ShadowProperties metadata { get; set; }
Property Value
state
Gets and sets the Shadow state properties.
public ShadowProperties state { get; set; }
Property Value
timestamp
Shadow's Timestamp
public int timestamp { get; set; }
Property Value
Remarks
Unix Timestamp as 32bit signed integer.
version
Shadow's Version
public int version { get; set; }
Property Value
Methods
ToJson(bool)
Gets the Shadow as a JSON string.
public string ToJson(bool updateShadow = true)
Parameters
updateShadow
boolOptional: Only returns a partial json string for use with updates. unless specified.
Returns
- string
JSON string