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