public GvApiRequest(string request, string requestId, GvApiAuth auth, object data) { this.version = GvApiConstants.apiVersion; this.request = request; this.requestId = requestId; this.auth = auth; this.data = data; }
static public GvApiRequest makeRequest(string rqstType, string rqstId, string context, string contextKey, object rqstData) { string date = DateTime.UtcNow.ToString("yyyy-MM-ddTHH:mm:ss.fffZ"); string hash = GvApiHelpers.generateHash(context, contextKey, date); GvApiAuth auth = new GvApiAuth(date, hash); return(new GvApiRequest(rqstType, rqstId, auth, rqstData)); }