Added hammock project to debug streaming issues
[pithos-ms-client] / trunk / hammock / src / net35 / Hammock / Web / WebQueryResult.cs
1 using System;
2 using System.IO;
3 using System.Net;
4
5 namespace Hammock.Web
6 {
7 #if !SILVERLIGHT
8     [Serializable]
9 #endif
10     public class WebQueryResult
11     {
12         public virtual Stream ContentStream { get; set; }
13
14         // Set by WebQuery
15         public virtual DateTime? RequestDate { get; set; }
16         public virtual Uri RequestUri { get; set; }
17         public virtual string RequestHttpMethod { get; set; }
18         public virtual bool RequestKeptAlive { get; set; }
19         
20         public virtual DateTime? ResponseDate { get; set; }
21         public virtual WebResponse WebResponse { get; set; }
22         public virtual string ResponseType { get; set; }
23         public virtual int ResponseHttpStatusCode { get; set; }
24         public virtual string ResponseHttpStatusDescription { get; set; }
25         public virtual long ResponseLength { get; set; }
26         public virtual Uri ResponseUri { get; set; }
27         public virtual bool IsMock { get; set; }
28         public virtual bool TimedOut { get; set; }
29
30         // Set by RestClient
31         public virtual int TimesTried { get; set; }
32         public virtual Exception Exception { get; set; }
33         public virtual bool WasRateLimited { get; set; }
34     }
35 }