메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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. |
리턴 | 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. |
리턴 | Task |
public LoadSitemapAsync ( string serverUrl, string sitemapName ) : Task |
||
serverUrl | string | The server URL. |
sitemapName | string | Name of the sitemap. |
리턴 | Task |
public LoadSitemapsAsync ( string serverUrl ) : Task |
||
serverUrl | string | The server URL. |
리턴 | Task |
public PostCommand ( string url, string command ) : Task |
||
url | string | The URL. |
command | string | The command. |
리턴 | Task |
public RestService ( IHttpService httpService ) : System | ||
httpService | IHttpService | |
리턴 | System |
public SetAuthentication ( string username, string password ) : void | ||
username | string | |
password | string | |
리턴 | void |