forked from mshalev/Graph-Security-API-Auth-Sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ResponseResult.cs
42 lines (36 loc) · 1.15 KB
/
ResponseResult.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
* See LICENSE in the project root for license information.
*/
namespace GraphAuthSample
{
using System;
using System.Net;
using System.Net.Http.Headers;
/// <summary>
/// Class to carry response result from requets sent to Graph
/// </summary>
public class ResponseResult
{
/// <summary>
/// Gets or set the status code of response
/// </summary>
public HttpStatusCode StatusCode { get; set; }
/// <summary>
/// Gets or set the content of response
/// </summary>
public string Content { get; set; }
/// <summary>
/// Gets or set the latency of response
/// </summary>
public long Latency { get; set; }
/// <summary>
/// Gets or set the eception of response
/// </summary>
public Exception Exception { get; set; }
/// <summary>
/// Gets or sets the header of response
/// </summary>
public HttpResponseHeaders Headers { get; set; }
}
}