C# Class Zazzles.Middleware.Communication

ファイルを表示 Open project: FOGProject/zazzles

Public Methods

Method Description
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

Method Details

Contact() public static method

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
return bool

Contact() public static method

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
return bool

DownloadExternalFile() public static method

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
return bool

DownloadFile() public static method

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
return bool

GetRawResponse() public static method

Get the raw response of a server url
public static GetRawResponse ( string postfix ) : string
postfix string The postfix to attach to the server address
return string

GetResponse() public static method

Get the parsed response of a server url
public static GetResponse ( string postfix ) : Response
postfix string The postfix to attach to the server address
return Response

GetResponse() public static method

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
return Response

Post() public static method

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
return Response