C# Класс WriteAmeer.NRightApi

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
HttpClient Microsoft.Http.HttpClient

Открытые методы

Метод Описание
CheckHttpResponseForErrors ( HttpResponseMessage response ) : void
DeleteRequest ( string apiString, string parameters ) : HttpResponseMessage
DisplayRestResponse ( HttpResponseMessage restResponse ) : void
GetRequest ( string apiString, string parameters ) : HttpResponseMessage
Login ( string username, string password ) : HttpResponseMessage
NRightApi ( string account ) : System
NRightApi ( string account, string version ) : System
PostRequest ( string apiString, string parameters ) : HttpResponseMessage
PutRequest ( string apiString, string parameters ) : HttpResponseMessage
Send ( HttpMethod httpMethod, string restMethod ) : HttpResponseMessage
SendFormData ( HttpMethod httpMethod, string restMethod, string parameters ) : HttpResponseMessage
SendRequest ( HttpMethod httpMethod, string restMethod, string parameters ) : HttpResponseMessage
SetAuthCookies ( string cookieString ) : void

Описание методов

CheckHttpResponseForErrors() публичный статический Метод

public static CheckHttpResponseForErrors ( HttpResponseMessage response ) : void
response Microsoft.Http.HttpResponseMessage
Результат void

DeleteRequest() публичный Метод

public DeleteRequest ( string apiString, string parameters ) : HttpResponseMessage
apiString string
parameters string
Результат Microsoft.Http.HttpResponseMessage

DisplayRestResponse() публичный статический Метод

public static DisplayRestResponse ( HttpResponseMessage restResponse ) : void
restResponse Microsoft.Http.HttpResponseMessage
Результат void

GetRequest() публичный Метод

public GetRequest ( string apiString, string parameters ) : HttpResponseMessage
apiString string
parameters string
Результат Microsoft.Http.HttpResponseMessage

Login() публичный Метод

public Login ( string username, string password ) : HttpResponseMessage
username string
password string
Результат Microsoft.Http.HttpResponseMessage

NRightApi() публичный Метод

public NRightApi ( string account ) : System
account string
Результат System

NRightApi() публичный Метод

public NRightApi ( string account, string version ) : System
account string
version string
Результат System

PostRequest() публичный Метод

public PostRequest ( string apiString, string parameters ) : HttpResponseMessage
apiString string
parameters string
Результат Microsoft.Http.HttpResponseMessage

PutRequest() публичный Метод

public PutRequest ( string apiString, string parameters ) : HttpResponseMessage
apiString string
parameters string
Результат Microsoft.Http.HttpResponseMessage

Send() публичный Метод

public Send ( HttpMethod httpMethod, string restMethod ) : HttpResponseMessage
httpMethod HttpMethod
restMethod string
Результат Microsoft.Http.HttpResponseMessage

SendFormData() публичный статический Метод

public static SendFormData ( HttpMethod httpMethod, string restMethod, string parameters ) : HttpResponseMessage
httpMethod HttpMethod
restMethod string
parameters string
Результат Microsoft.Http.HttpResponseMessage

SendRequest() публичный статический Метод

public static SendRequest ( HttpMethod httpMethod, string restMethod, string parameters ) : HttpResponseMessage
httpMethod HttpMethod
restMethod string
parameters string
Результат Microsoft.Http.HttpResponseMessage

SetAuthCookies() публичный статический Метод

public static SetAuthCookies ( string cookieString ) : void
cookieString string
Результат void

Описание свойств

HttpClient публичное статическое свойство

public static HttpClient,Microsoft.Http HttpClient
Результат Microsoft.Http.HttpClient