private void ParseRequest(MercadoPago.HttpMethod httpMethod, HttpWebRequest request, JObject payload) { this.HttpMethod = httpMethod.ToString(); this.Url = request.RequestUri.ToString(); if (payload == null) { return; } this.Payload = payload.ToString(); }
public MPAPIResponse( MercadoPago.HttpMethod httpMethod, HttpWebRequest request, JObject payload, HttpWebResponse response) { this.Request = request; this.Response = response; this.ParseRequest(httpMethod, request, payload); this.ParseResponse(response); Trace.WriteLine("Server response: " + this.StringResponse); }