Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 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);
 }