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
Afficher le fichier Open project: Q42/Q42.HueApi Class Usage Examples

Méthodes publiques

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

Method Details

AsLightCommand() public méthode

public AsLightCommand ( ) : LightCommand
Résultat LightCommand

AsSceneCommand() public méthode

public AsSceneCommand ( ) : SceneCommand
Résultat SceneCommand

AsSensorCommand() public méthode

public AsSensorCommand ( ) : SensorState
Résultat SensorState

GenericScheduleCommand() public méthode

public GenericScheduleCommand ( string jsonString ) : Newtonsoft.Json
jsonString string
Résultat Newtonsoft.Json

IsSceneCommand() public méthode

public IsSceneCommand ( ) : bool
Résultat bool