C# Класс Zazzles.Middleware.Communication

Показать файл Открыть проект

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

Метод Описание
Contact ( string postfix ) : bool

GET a URL but don't check for a response

Contact ( string postfix, bool appendMAC ) : bool

GET a URL but don't check for a response

DownloadExternalFile ( string url, string filePath ) : bool

Download a file from an external server

DownloadFile ( string postfix, string filePath ) : bool

Downloads a file and creates necessary directories

GetRawResponse ( string postfix ) : string

Get the raw response of a server url

GetResponse ( string postfix ) : Response

Get the parsed response of a server url

GetResponse ( string postfix, bool appendMAC ) : Response

Get the parsed response of a server url

Post ( string postfix, string param ) : Response

POST data to a URL

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

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

GET a URL but don't check for a response
public static Contact ( string postfix ) : bool
postfix string The postfix to attach to the server address
Результат bool

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

GET a URL but don't check for a response
public static Contact ( string postfix, bool appendMAC ) : bool
postfix string The text to append to the url
appendMAC bool Should the MAC be appended
Результат bool

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

Download a file from an external server
public static DownloadExternalFile ( string url, string filePath ) : bool
url string The URL to download from
filePath string The path to save the file to
Результат bool

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

Downloads a file and creates necessary directories
public static DownloadFile ( string postfix, string filePath ) : bool
postfix string The postfix to attach to the server address
filePath string The location to save the file
Результат bool

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

Get the raw response of a server url
public static GetRawResponse ( string postfix ) : string
postfix string The postfix to attach to the server address
Результат string

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

Get the parsed response of a server url
public static GetResponse ( string postfix ) : Response
postfix string The postfix to attach to the server address
Результат Response

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

Get the parsed response of a server url
public static GetResponse ( string postfix, bool appendMAC ) : Response
postfix string The postfix to attach to the server address
appendMAC bool If the MAC address of the host should be appended to the URL
Результат Response

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

POST data to a URL
public static Post ( string postfix, string param ) : Response
postfix string The text to append to the URL
param string The params to post
Результат Response