Method | Description | |
---|---|---|
FindLocalServersAsync ( ) : Task |
Finds the local servers asynchronous.
|
|
IsOpenhab2 ( string serverUrl ) : Task |
Determines whether the specified server URL is openhab2.
|
|
LoadPageAsync ( string serverUrl, string sitemapName, string pageName ) : Task |
Loads the page asynchronous.
|
|
LoadSitemapAsync ( string serverUrl, string sitemapName ) : Task |
Loads the sitemap asynchronous.
|
|
LoadSitemapsAsync ( string serverUrl ) : Task |
Loads the sitemaps asynchronous.
|
|
Ping ( string url ) : Task |
Pings the specified server URL.
|
|
PostCommand ( string url, string command ) : Task |
Posts the command.
|
|
RestService ( IHttpService httpService ) : System | ||
SetAuthentication ( string username, string password ) : void |
Method | Description | |
---|---|---|
CheckResponseHeaders ( System.Net.Http.Headers.HttpResponseHeaders headers ) : void | ||
Create ( HttpMethod method, string url, string accept = "application/json" ) : |
||
Get ( string url, string accept = "application/json" ) : Task |
Gets the specified URL.
|
|
Post ( string url, string body ) : Task |
public IsOpenhab2 ( string serverUrl ) : Task |
||
serverUrl | string | The server URL. |
return | Task |
public LoadPageAsync ( string serverUrl, string sitemapName, string pageName ) : Task |
||
serverUrl | string | The server URL. |
sitemapName | string | Name of the sitemap. |
pageName | string | Name of the page. |
return | Task |
public LoadSitemapAsync ( string serverUrl, string sitemapName ) : Task |
||
serverUrl | string | The server URL. |
sitemapName | string | Name of the sitemap. |
return | Task |
public LoadSitemapsAsync ( string serverUrl ) : Task |
||
serverUrl | string | The server URL. |
return | Task |
public PostCommand ( string url, string command ) : Task |
||
url | string | The URL. |
command | string | The command. |
return | Task |
public RestService ( IHttpService httpService ) : System | ||
httpService | IHttpService | |
return | System |
public SetAuthentication ( string username, string password ) : void | ||
username | string | |
password | string | |
return | void |