C# Class WiredPrairieUS.Devices.Nest

Inheritance: INotifyPropertyChanged
Mostra file Open project: wiredprairie/Nest-Thermostat-DotNET-API Class Usage Examples

Public Properties

Property Type Description
AuthenticationUrl string

Public Methods

Method Description
BeginAuthenticate ( ) : void
BeginGetCurrentStatus ( ) : void
CelsiusToFohrenheit ( double c ) : int
DeconstructStatus ( dynamic jBody ) : void
DeconstructStatus ( string jsonBody ) : void
Nest ( string username, string password ) : System
ParseAuthenticationResponse ( string responseBody ) : void

Protected Methods

Method Description
OnAuthenticationComplete ( ) : void
OnAuthenticationFailure ( Exception ex ) : void
OnNestException ( Exception ex ) : void
OnStatusUpdated ( dynamic status ) : void

Private Methods

Method Description
AuthenticateCallback ( IAsyncResult result ) : void
GetCookieValueOrDefault ( CookieCollection cookies, string name ) : string
GetCurrentStatusCallback ( IAsyncResult result ) : void
GetDateAsJsonDate ( ) : string
GetDateAsJsonDate ( System.DateTime date ) : string
RaisePropertyChanged ( string propertyName ) : void
WriteEncodedFormParameter ( string key, string value ) : string
WriteEncodedFormParameter ( string key, string value, bool isUrl ) : string

Method Details

BeginAuthenticate() public method

public BeginAuthenticate ( ) : void
return void

BeginGetCurrentStatus() public method

public BeginGetCurrentStatus ( ) : void
return void

CelsiusToFohrenheit() public static method

public static CelsiusToFohrenheit ( double c ) : int
c double
return int

DeconstructStatus() public method

public DeconstructStatus ( dynamic jBody ) : void
jBody dynamic
return void

DeconstructStatus() public method

public DeconstructStatus ( string jsonBody ) : void
jsonBody string
return void

Nest() public method

public Nest ( string username, string password ) : System
username string
password string
return System

OnAuthenticationComplete() protected method

protected OnAuthenticationComplete ( ) : void
return void

OnAuthenticationFailure() protected method

protected OnAuthenticationFailure ( Exception ex ) : void
ex System.Exception
return void

OnNestException() protected method

protected OnNestException ( Exception ex ) : void
ex System.Exception
return void

OnStatusUpdated() protected method

protected OnStatusUpdated ( dynamic status ) : void
status dynamic
return void

ParseAuthenticationResponse() public method

public ParseAuthenticationResponse ( string responseBody ) : void
responseBody string
return void

Property Details

AuthenticationUrl public_oe static_oe property

public static string AuthenticationUrl
return string