C# 클래스 openhabUWP.Remote.Services.RestService

상속: IRestService
파일 보기 프로젝트 열기: altima/openhabUWP

공개 메소드들

메소드 설명
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" ) : HttpRequestMessage
Get ( string url, string accept = "application/json" ) : Task

Gets the specified URL.

Post ( string url, string body ) : Task

메소드 상세

FindLocalServersAsync() 공개 메소드

Finds the local servers asynchronous.
public FindLocalServersAsync ( ) : Task
리턴 Task

IsOpenhab2() 공개 메소드

Determines whether the specified server URL is openhab2.
public IsOpenhab2 ( string serverUrl ) : Task
serverUrl string The server URL.
리턴 Task

LoadPageAsync() 공개 메소드

Loads the page asynchronous.
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

LoadSitemapAsync() 공개 메소드

Loads the sitemap asynchronous.
public LoadSitemapAsync ( string serverUrl, string sitemapName ) : Task
serverUrl string The server URL.
sitemapName string Name of the sitemap.
리턴 Task

LoadSitemapsAsync() 공개 메소드

Loads the sitemaps asynchronous.
public LoadSitemapsAsync ( string serverUrl ) : Task
serverUrl string The server URL.
리턴 Task

Ping() 공개 메소드

Pings the specified server URL.
public Ping ( string url ) : Task
url string The server URL.
리턴 Task

PostCommand() 공개 메소드

Posts the command.
public PostCommand ( string url, string command ) : Task
url string The URL.
command string The command.
리턴 Task

RestService() 공개 메소드

public RestService ( IHttpService httpService ) : System
httpService IHttpService
리턴 System

SetAuthentication() 공개 메소드

public SetAuthentication ( string username, string password ) : void
username string
password string
리턴 void