C# Class myGengo.Api

ファイルを表示 Open project: gengo/spGengo

Protected Properties

Property Type Description
DEFAULT_ID string
_apiKey string
_baseUrl string
_defaultJobId string
_format string
_privateKey string
_proxy System.Net.WebProxy
client Client
response System.Net.HttpWebResponse

Public Methods

Method Description
Api ( ) : System
Api ( string api_key, string private_key ) : System
ToString ( ) : string
factory ( string client ) : Api
factory ( string client, string api_key, string private_key ) : Api
getResponseBody ( ) : string
getResponseStream ( ) : Stream
setBaseUrl ( string url ) : void
setResponseFormat ( string format ) : void

Protected Methods

Method Description
checkResponse ( ) : void
setParams ( object &id, string &format, IDictionary &param ) : void
setParamsNotId ( string &format, IDictionary &param ) : void

Method Details

Api() public method

public Api ( ) : System
return System

Api() public method

public Api ( string api_key, string private_key ) : System
api_key string
private_key string
return System

ToString() public method

public ToString ( ) : string
return string

checkResponse() protected method

protected checkResponse ( ) : void
return void

factory() public static method

public static factory ( string client ) : Api
client string
return Api

factory() public static method

public static factory ( string client, string api_key, string private_key ) : Api
client string
api_key string
private_key string
return Api

getResponseBody() public method

public getResponseBody ( ) : string
return string

getResponseStream() public method

public getResponseStream ( ) : Stream
return Stream

setBaseUrl() public method

public setBaseUrl ( string url ) : void
url string
return void

setParams() protected method

protected setParams ( object &id, string &format, IDictionary &param ) : void
id object
format string
param IDictionary
return void

setParamsNotId() protected method

protected setParamsNotId ( string &format, IDictionary &param ) : void
format string
param IDictionary
return void

setResponseFormat() public method

public setResponseFormat ( string format ) : void
format string
return void

Property Details

DEFAULT_ID protected_oe property

protected string DEFAULT_ID
return string

_apiKey protected_oe property

protected string _apiKey
return string

_baseUrl protected_oe property

protected string _baseUrl
return string

_defaultJobId protected_oe property

protected string _defaultJobId
return string

_format protected_oe property

protected string _format
return string

_privateKey protected_oe property

protected string _privateKey
return string

_proxy protected_oe property

protected WebProxy,System.Net _proxy
return System.Net.WebProxy

client protected_oe property

protected Client,myGengo client
return Client

response protected_oe property

protected HttpWebResponse,System.Net response
return System.Net.HttpWebResponse