Table of Contents

Class Shadow

Namespace
nanoFramework.Aws.IoTCore.Devices.Shadows
Assembly
nanoFramework.Aws.IoTCore.Devices.dll
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 string

Shadow as a JSON string

Properties

clienttoken

Shadow's Client Token

public string clienttoken { get; set; }

Property Value

string

metadata

Gets and sets the Shadow metadata properties.

public ShadowProperties metadata { get; set; }

Property Value

ShadowProperties

state

Gets and sets the Shadow state properties.

public ShadowProperties state { get; set; }

Property Value

ShadowProperties

timestamp

Shadow's Timestamp

public int timestamp { get; set; }

Property Value

int

Remarks

Unix Timestamp as 32bit signed integer.

version

Shadow's Version

public int version { get; set; }

Property Value

int

Methods

ToJson(bool)

Gets the Shadow as a JSON string.

public string ToJson(bool updateShadow = true)

Parameters

updateShadow bool

Optional: Only returns a partial json string for use with updates. unless specified.

Returns

string

JSON string