C# 클래스 Socrata.ApiBase

Base class under which all Socrata classes inherit.
파일 보기 프로젝트 열기: socrata-archive/socrata-csharp-deprecated

보호된 프로퍼티들

프로퍼티 타입 설명
_log log4net.ILog
appToken string
batchQueue List
credentials System.Net.NetworkCredential
httpBase string

공개 메소드들

메소드 설명
ApiBase ( ) : System
sendBatchRequest ( ) : void

Processess any batch requests saved up in the queue

보호된 메소드들

메소드 설명
GetRequest ( String url ) : JsonPayload

Performs a generic GET request on the API server

MapToJson ( string>.Dictionary data ) : Newtonsoft.Json.Linq.JObject
PostRequest ( String url, String parameters ) : JsonPayload

Performs a generice POST request on the API server

UploadFile ( String url, String file ) : JsonPayload

For uploading a file and returning JSON response.

genericWebRequest ( String url, String parameters, String method ) : JsonPayload
getAuthorization ( ) : string
responseIsClean ( JsonPayload response ) : bool

Checks response object to see if any errors are present

메소드 상세

ApiBase() 공개 메소드

public ApiBase ( ) : System
리턴 System

GetRequest() 보호된 메소드

Performs a generic GET request on the API server
protected GetRequest ( String url ) : JsonPayload
url String The URL to request from
리턴 JsonPayload

MapToJson() 보호된 정적인 메소드

protected static MapToJson ( string>.Dictionary data ) : Newtonsoft.Json.Linq.JObject
data string>.Dictionary
리턴 Newtonsoft.Json.Linq.JObject

PostRequest() 보호된 메소드

Performs a generice POST request on the API server
protected PostRequest ( String url, String parameters ) : JsonPayload
url String Where to send the post request
parameters String The data to accompany the post request
리턴 JsonPayload

UploadFile() 보호된 메소드

For uploading a file and returning JSON response.
protected UploadFile ( String url, String file ) : JsonPayload
url String Where to upload the file
file String The file location on disk
리턴 JsonPayload

genericWebRequest() 보호된 메소드

protected genericWebRequest ( String url, String parameters, String method ) : JsonPayload
url String
parameters String
method String
리턴 JsonPayload

getAuthorization() 보호된 메소드

protected getAuthorization ( ) : string
리턴 string

responseIsClean() 보호된 메소드

Checks response object to see if any errors are present
protected responseIsClean ( JsonPayload response ) : bool
response JsonPayload The JSON response returned from the server
리턴 bool

sendBatchRequest() 공개 메소드

Processess any batch requests saved up in the queue
public sendBatchRequest ( ) : void
리턴 void

프로퍼티 상세

_log 보호되어 있는 정적으로 프로퍼티

protected static ILog,log4net _log
리턴 log4net.ILog

appToken 보호되어 있는 프로퍼티

protected string appToken
리턴 string

batchQueue 보호되어 있는 프로퍼티

protected List batchQueue
리턴 List

credentials 보호되어 있는 프로퍼티

protected NetworkCredential,System.Net credentials
리턴 System.Net.NetworkCredential

httpBase 보호되어 있는 프로퍼티

protected string httpBase
리턴 string