C# 클래스 SyncthingRestClient.RestClient

파일 보기 프로젝트 열기: kreischweide/metrothing 1 사용 예제들

공개 메소드들

메소드 설명
FormatDeviceIdentifier ( string deviceId ) : string
GetConfig ( ) : GetConfigResponse
GetConfigAsync ( CancellationToken token ) : Task
GetConnectionsAsync ( CancellationToken token ) : Task
GetConnetions ( ) : GetConnetionResponse
GetFolderModel ( string folderId ) : GetFolderModelResponse
GetFolderModelAsync ( string folderId, CancellationToken token ) : Task
GetFolderStats ( ) : GetFolderStatsResponse
GetFolderStatsAsync ( CancellationToken token ) : Task
GetNeed ( string folderId ) : GetNeedResponse
GetNeedAsync ( string folderId, CancellationToken token ) : Task
GetPing ( ) : GetPingResponse
GetPingAsync ( CancellationToken token ) : Task
GetReport ( ) : GetReportResponse
GetReportAsync ( CancellationToken token ) : Task
GetSystemStatus ( ) : GetSystemResponse
GetSystemStatusAsync ( CancellationToken token ) : Task
GetUpgradeStatus ( ) : GetUpgradeResponse
GetUpgradeStatusAsync ( CancellationToken token ) : Task
GetVersion ( ) : GetVersionResponse
GetVersionAsync ( CancellationToken token ) : Task
PostBump ( string folderId, string fileId ) : PostBumpResponse
PostBumpAsync ( string folderId, string fileId, CancellationToken token ) : Task
PostPing ( ) : PostPingResponse
PostPingAsync ( CancellationToken token ) : Task
PostRescan ( string folderId ) : PostRescanResponse
PostRescanAsync ( string folderId, CancellationToken token ) : Task
RestClient ( string host, UInt16 port, bool useHttps, string apiKey ) : System
Restart ( ) : PostRestartResponse
RestartAsync ( CancellationToken token ) : Task
Shutdown ( ) : PostShutdownResponse
Upgrade ( ) : PostUpgradeResponse
UpgradeAsync ( CancellationToken token ) : Task
VerifyDeviceIdentifier ( string deviceId ) : bool

비공개 메소드들

메소드 설명
GetBaseRequest ( string resource, Method method = Method.GET ) : IRestRequest
GetRestClient ( ) : RestSharp.RestClient
HandleRestErrors ( IRestResponse response ) : void

메소드 상세

FormatDeviceIdentifier() 공개 메소드

public FormatDeviceIdentifier ( string deviceId ) : string
deviceId string
리턴 string

GetConfig() 공개 메소드

public GetConfig ( ) : GetConfigResponse
리턴 GetConfigResponse

GetConfigAsync() 공개 메소드

public GetConfigAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
리턴 Task

GetConnectionsAsync() 공개 메소드

public GetConnectionsAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
리턴 Task

GetConnetions() 공개 메소드

public GetConnetions ( ) : GetConnetionResponse
리턴 SyncthingRestClient.Response.GetConnetionResponse

GetFolderModel() 공개 메소드

public GetFolderModel ( string folderId ) : GetFolderModelResponse
folderId string
리턴 SyncthingRestClient.Response.GetFolderModelResponse

GetFolderModelAsync() 공개 메소드

public GetFolderModelAsync ( string folderId, CancellationToken token ) : Task
folderId string
token System.Threading.CancellationToken
리턴 Task

GetFolderStats() 공개 메소드

public GetFolderStats ( ) : GetFolderStatsResponse
리턴 SyncthingRestClient.Response.GetFolderStatsResponse

GetFolderStatsAsync() 공개 메소드

public GetFolderStatsAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
리턴 Task

GetNeed() 공개 메소드

public GetNeed ( string folderId ) : GetNeedResponse
folderId string
리턴 SyncthingRestClient.Response.GetNeedResponse

GetNeedAsync() 공개 메소드

public GetNeedAsync ( string folderId, CancellationToken token ) : Task
folderId string
token System.Threading.CancellationToken
리턴 Task

GetPing() 공개 메소드

public GetPing ( ) : GetPingResponse
리턴 SyncthingRestClient.Response.GetPingResponse

GetPingAsync() 공개 메소드

public GetPingAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
리턴 Task

GetReport() 공개 메소드

public GetReport ( ) : GetReportResponse
리턴 SyncthingRestClient.Response.GetReportResponse

GetReportAsync() 공개 메소드

public GetReportAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
리턴 Task

GetSystemStatus() 공개 메소드

public GetSystemStatus ( ) : GetSystemResponse
리턴 SyncthingRestClient.Response.GetSystemResponse

GetSystemStatusAsync() 공개 메소드

public GetSystemStatusAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
리턴 Task

GetUpgradeStatus() 공개 메소드

public GetUpgradeStatus ( ) : GetUpgradeResponse
리턴 SyncthingRestClient.Response.GetUpgradeResponse

GetUpgradeStatusAsync() 공개 메소드

public GetUpgradeStatusAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
리턴 Task

GetVersion() 공개 메소드

public GetVersion ( ) : GetVersionResponse
리턴 SyncthingRestClient.Response.GetVersionResponse

GetVersionAsync() 공개 메소드

public GetVersionAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
리턴 Task

PostBump() 공개 메소드

public PostBump ( string folderId, string fileId ) : PostBumpResponse
folderId string
fileId string
리턴 PostBumpResponse

PostBumpAsync() 공개 메소드

public PostBumpAsync ( string folderId, string fileId, CancellationToken token ) : Task
folderId string
fileId string
token System.Threading.CancellationToken
리턴 Task

PostPing() 공개 메소드

public PostPing ( ) : PostPingResponse
리턴 PostPingResponse

PostPingAsync() 공개 메소드

public PostPingAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
리턴 Task

PostRescan() 공개 메소드

public PostRescan ( string folderId ) : PostRescanResponse
folderId string
리턴 PostRescanResponse

PostRescanAsync() 공개 메소드

public PostRescanAsync ( string folderId, CancellationToken token ) : Task
folderId string
token System.Threading.CancellationToken
리턴 Task

RestClient() 공개 메소드

public RestClient ( string host, UInt16 port, bool useHttps, string apiKey ) : System
host string
port System.UInt16
useHttps bool
apiKey string
리턴 System

Restart() 공개 메소드

public Restart ( ) : PostRestartResponse
리턴 PostRestartResponse

RestartAsync() 공개 메소드

public RestartAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
리턴 Task

Shutdown() 공개 메소드

public Shutdown ( ) : PostShutdownResponse
리턴 PostShutdownResponse

Upgrade() 공개 메소드

public Upgrade ( ) : PostUpgradeResponse
리턴 PostUpgradeResponse

UpgradeAsync() 공개 메소드

public UpgradeAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
리턴 Task

VerifyDeviceIdentifier() 공개 메소드

public VerifyDeviceIdentifier ( string deviceId ) : bool
deviceId string
리턴 bool