C# 클래스 WPNest.Services.NestWebService

상속: INestWebService
파일 보기 프로젝트 열기: garyjohnson/wpnest 1 사용 예제들

공개 메소드들

메소드 설명
ChangeTemperatureAsync ( Thermostat thermostat, double desiredTemperature, TemperatureMode temperatureMode ) : Task
GetFullStatusAsync ( ) : Task
GetStructureAndDeviceStatusAsync ( Structure structure ) : Task
GetThermostatStatusAsync ( Thermostat thermostat ) : Task
LoginAsync ( string userName, string password ) : Task
NestWebService ( ) : System
SetAwayMode ( Structure structure, bool isAway ) : Task
SetFanModeAsync ( Thermostat thermostat, FanMode fanMode ) : Task
SetHvacModeAsync ( Thermostat thermostat, HvacMode hvacMode ) : Task
UpdateTransportUrlAsync ( ) : Task

비공개 메소드들

메소드 설명
CacheSession ( string responseString ) : void
ConvertFrom ( TemperatureScale fromScale, double fromTemperature ) : double
GetDeviceThermostatPropertiesAsync ( Thermostat thermostat, GetThermostatStatusResult result ) : Task
GetFanModeString ( FanMode fanMode ) : string
GetGetRequest ( string url ) : IWebRequest
GetPostFormRequest ( string url ) : IWebRequest
GetPostJsonRequest ( string url ) : IWebRequest
GetSharedThermostatPropertiesAsync ( Thermostat thermostat ) : Task
GetStructureStatusAsync ( Structure structure ) : Task
GetTemperaturePropertyString ( Thermostat thermostat, double desiredTemperature, TemperatureMode temperatureMode ) : string
SendPutRequestAsync ( string url, string requestJson ) : Task
SetAuthorizationHeaderOnRequest ( IWebRequest request, string accessToken ) : void
SetNestHeadersOnRequest ( IWebRequest request, string userId ) : void
UrlEncode ( string value ) : string

메소드 상세

ChangeTemperatureAsync() 공개 메소드

public ChangeTemperatureAsync ( Thermostat thermostat, double desiredTemperature, TemperatureMode temperatureMode ) : Task
thermostat Thermostat
desiredTemperature double
temperatureMode TemperatureMode
리턴 Task

GetFullStatusAsync() 공개 메소드

public GetFullStatusAsync ( ) : Task
리턴 Task

GetStructureAndDeviceStatusAsync() 공개 메소드

public GetStructureAndDeviceStatusAsync ( Structure structure ) : Task
structure Structure
리턴 Task

GetThermostatStatusAsync() 공개 메소드

public GetThermostatStatusAsync ( Thermostat thermostat ) : Task
thermostat Thermostat
리턴 Task

LoginAsync() 공개 메소드

public LoginAsync ( string userName, string password ) : Task
userName string
password string
리턴 Task

NestWebService() 공개 메소드

public NestWebService ( ) : System
리턴 System

SetAwayMode() 공개 메소드

public SetAwayMode ( Structure structure, bool isAway ) : Task
structure Structure
isAway bool
리턴 Task

SetFanModeAsync() 공개 메소드

public SetFanModeAsync ( Thermostat thermostat, FanMode fanMode ) : Task
thermostat Thermostat
fanMode FanMode
리턴 Task

SetHvacModeAsync() 공개 메소드

public SetHvacModeAsync ( Thermostat thermostat, HvacMode hvacMode ) : Task
thermostat Thermostat
hvacMode HvacMode
리턴 Task

UpdateTransportUrlAsync() 공개 메소드

public UpdateTransportUrlAsync ( ) : Task
리턴 Task