C# 클래스 Q42.HueApi.HueClient

Partial HueClient, contains requests to the /Groups/ url
파일 보기 프로젝트 열기: Q42/Q42.HueApi 1 사용 예제들

공개 메소드들

메소드 설명
CreateGroupAsync ( IEnumerable lights, string name = null, RoomClass roomClass = null ) : Task

Create a group for a list of lights

CreateScheduleAsync ( Schedule schedule ) : Task

Create a schedule

DeleteGroupAsync ( string groupId ) : Task

Deletes a single group

DeleteScheduleAsync ( string id ) : Task

Delete a schedule

DeleteWhiteListEntryAsync ( string entry ) : Task

Deletes a whitelist entry

GetBridgeAsync ( ) : Task

Get bridge info

GetCapabilitiesAsync ( ) : Task

Get bridge capabilities

GetConfigAsync ( ) : Task

Get bridge config

GetGroupAsync ( string id ) : Task

Get the state of a single group

GetGroupsAsync ( ) : Task>

Get all groups

GetScheduleAsync ( string id ) : Task

Get a single schedule

GetSchedulesAsync ( ) : Task>

Get all schedules

GetWhiteListAsync ( ) : Task>

Asynchronously gets the whitelist with the bridge.

SendGroupCommandAsync ( ICommandBody command, string group = "0" ) : Task

Send command to a group

UpdateBridgeConfigAsync ( Q42.HueApi.BridgeConfigUpdate update ) : Task

Update bridge config

UpdateGroupAsync ( string id, IEnumerable lights, string name = null ) : Task

Update a group

UpdateScheduleAsync ( string id, Schedule schedule ) : Task

Update a schedule

비공개 메소드들

메소드 설명
SendGroupCommandAsync ( string command, string group = "0" ) : Task

Send command to a group

메소드 상세

CreateGroupAsync() 공개 메소드

Create a group for a list of lights
public CreateGroupAsync ( IEnumerable lights, string name = null, RoomClass roomClass = null ) : Task
lights IEnumerable List of lights in the group
name string Optional name
roomClass RoomClass for room creation the room class has to be passed, without class it will get the default: "Other" class.
리턴 Task

CreateScheduleAsync() 공개 메소드

Create a schedule
public CreateScheduleAsync ( Schedule schedule ) : Task
schedule Q42.HueApi.Models.Schedule
리턴 Task

DeleteGroupAsync() 공개 메소드

Deletes a single group
public DeleteGroupAsync ( string groupId ) : Task
groupId string
리턴 Task

DeleteScheduleAsync() 공개 메소드

Delete a schedule
public DeleteScheduleAsync ( string id ) : Task
id string
리턴 Task

DeleteWhiteListEntryAsync() 공개 메소드

Deletes a whitelist entry
public DeleteWhiteListEntryAsync ( string entry ) : Task
entry string
리턴 Task

GetBridgeAsync() 공개 메소드

Get bridge info
public GetBridgeAsync ( ) : Task
리턴 Task

GetCapabilitiesAsync() 공개 메소드

Get bridge capabilities
public GetCapabilitiesAsync ( ) : Task
리턴 Task

GetConfigAsync() 공개 메소드

Get bridge config
public GetConfigAsync ( ) : Task
리턴 Task

GetGroupAsync() 공개 메소드

Get the state of a single group
public GetGroupAsync ( string id ) : Task
id string
리턴 Task

GetGroupsAsync() 공개 메소드

Get all groups
public GetGroupsAsync ( ) : Task>
리턴 Task>

GetScheduleAsync() 공개 메소드

Get a single schedule
public GetScheduleAsync ( string id ) : Task
id string
리턴 Task

GetSchedulesAsync() 공개 메소드

Get all schedules
public GetSchedulesAsync ( ) : Task>
리턴 Task>

GetWhiteListAsync() 공개 메소드

Asynchronously gets the whitelist with the bridge.
public GetWhiteListAsync ( ) : Task>
리턴 Task>

SendGroupCommandAsync() 공개 메소드

Send command to a group
public SendGroupCommandAsync ( ICommandBody command, string group = "0" ) : Task
command ICommandBody
group string
리턴 Task

UpdateBridgeConfigAsync() 공개 메소드

Update bridge config
public UpdateBridgeConfigAsync ( Q42.HueApi.BridgeConfigUpdate update ) : Task
update Q42.HueApi.BridgeConfigUpdate
리턴 Task

UpdateGroupAsync() 공개 메소드

Update a group
public UpdateGroupAsync ( string id, IEnumerable lights, string name = null ) : Task
id string Group ID
lights IEnumerable List of light IDs
name string Group Name
리턴 Task

UpdateScheduleAsync() 공개 메소드

Update a schedule
public UpdateScheduleAsync ( string id, Schedule schedule ) : Task
id string
schedule Q42.HueApi.Models.Schedule
리턴 Task