C# 클래스 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);
상속: ICommandBody
파일 보기 프로젝트 열기: Q42/Q42.HueApi 1 사용 예제들

공개 메소드들

메소드 설명
AsLightCommand ( ) : LightCommand
AsSceneCommand ( ) : SceneCommand
AsSensorCommand ( ) : SensorState
GenericScheduleCommand ( string jsonString ) : Newtonsoft.Json
IsSceneCommand ( ) : bool

메소드 상세

AsLightCommand() 공개 메소드

public AsLightCommand ( ) : LightCommand
리턴 LightCommand

AsSceneCommand() 공개 메소드

public AsSceneCommand ( ) : SceneCommand
리턴 SceneCommand

AsSensorCommand() 공개 메소드

public AsSensorCommand ( ) : SensorState
리턴 SensorState

GenericScheduleCommand() 공개 메소드

public GenericScheduleCommand ( string jsonString ) : Newtonsoft.Json
jsonString string
리턴 Newtonsoft.Json

IsSceneCommand() 공개 메소드

public IsSceneCommand ( ) : bool
리턴 bool