C# Class Q42.HueApi.Models.GenericScheduleCommand

Can be used to create any type of schedule command Use a raw jsonString as input dynamic dynamicCOmmand = new ExpandoObject(); dynamicCOmmand.status = 1; var jsonString = JsonConvert.SerializeObject(dynamicCOmmand); var commandBody = new GenericScheduleCommand(jsonString);
Inheritance: ICommandBody
Exibir arquivo Open project: Q42/Q42.HueApi Class Usage Examples

Public Methods

Method Description
AsLightCommand ( ) : LightCommand
AsSceneCommand ( ) : SceneCommand
AsSensorCommand ( ) : SensorState
GenericScheduleCommand ( string jsonString ) : Newtonsoft.Json
IsSceneCommand ( ) : bool

Method Details

AsLightCommand() public method

public AsLightCommand ( ) : LightCommand
return LightCommand

AsSceneCommand() public method

public AsSceneCommand ( ) : SceneCommand
return SceneCommand

AsSensorCommand() public method

public AsSensorCommand ( ) : SensorState
return SensorState

GenericScheduleCommand() public method

public GenericScheduleCommand ( string jsonString ) : Newtonsoft.Json
jsonString string
return Newtonsoft.Json

IsSceneCommand() public method

public IsSceneCommand ( ) : bool
return bool