// 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; }
public APIRequestJSON(RequestMethod httpMethod, string server, string function, APIHeaders headers, string jsonPayload) : base(httpMethod, server, function, headers) { this.rawJSON = jsonPayload; }
// 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; }
// 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(); }