コード例 #1
0
 // private constructor, for use by descendant classes
 protected APIRequest(RequestMethod httpMethod, string server, string function, APIHeaders headers)
 {
     this.httpMethod = httpMethod;
     this.server     = server;
     this.function   = function;
     this.headers    = headers;
 }
コード例 #2
0
 public APIRequestJSON(RequestMethod httpMethod, string server, string function, APIHeaders headers, string jsonPayload)
     : base(httpMethod, server, function, headers)
 {
     this.rawJSON = jsonPayload;
 }
コード例 #3
0
 // constructor - only APIService can create
 public APIRequest(RequestMethod httpMethod, string server, string function, APIHeaders headers, APIPayload payload)
     : this(httpMethod, server, function, headers)
 {
     this.payload = payload;
 }
コード例 #4
0
 // constructor - only APIService can create
 public APIResponse(Dictionary <string, string> headers, string json)
 {
     this.headers = new APIHeaders(headers);
     this.payload = new APIPayload(json);
     this.status  = this.headers.GetStatusCode();
 }