DownstreamStatusItem

Class DownstreamStatusItem.

This is where the status of the downstream is maintained.

DownstreamStatusItem Properties

DownstreamStatusItem

Field Type Inherited from Description
CommunicationMessage String DownstreamStatusItem Gets or sets the communication message.
IsOnline Nullable<Boolean> DownstreamStatusItem Gets or sets a value indicating whether this device is online.Possible Values (null, true, false)
IsPowered Nullable<Boolean> DownstreamStatusItem Gets or sets a value indicating whether this device is powered.Possible Values (null, true, false)
IsTampered Nullable<Boolean> DownstreamStatusItem Gets or sets a value indicating whether this device is tampered.Possible Values (null, true, false)

JSON Structure of DownstreamStatusItem

{
   "CommunicationMessage"	:	"String",
   "IsOnline"	:	"Nullable\<Boolean\>",
   "IsPowered"	:	"Nullable\<Boolean\>",
   "IsTampered"	:	"Nullable\<Boolean\>"
}

Update Downstream Status Async

Example in C#

// Returns: nothing
await client.UpdateDownstreamStatusAsync(MercuryDownstreamInfo downstream, DownstreamStatusItem status)

Example in CURL



           curl -X PUT \
               https://keepapi.feenicshosting.com/api/f/INSTANCE.KEY/controllers/CONTROLLER.KEY/downstream/DOWNSTREAM.KEY/status \
               -H 'Authorization: Bearer TOKEN_GOES_HERE' \
               -H 'Content-Type: application/json' \
               -D '{
                       "$type":"Feenics.Keep.WebApi.Model.DownstreamStatusItem, Feenics.Keep.WebApi.Model",
                       "IsOnline":null,
                       "CommunicationMessage":null,
                       "IsPowered":null,
                       "IsTampered":null
                   }'