-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOauthTokenResponse.cs
More file actions
50 lines (38 loc) · 1.41 KB
/
OauthTokenResponse.cs
File metadata and controls
50 lines (38 loc) · 1.41 KB
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
43
44
45
46
47
48
49
50
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace SkolplattformenElevApi.Models.MsGraph;
// Root myDeserializedClass = JsonConvert.DeserializeObject<Root>(myJsonResponse);
internal class OauthTokenResponse
{
[JsonPropertyName("@odata.context")]
public string OdataContext { get; set; }
[JsonPropertyName("@odata.type")]
public string OdataType { get; set; }
[JsonPropertyName("@odata.id")]
public string OdataId { get; set; }
[JsonPropertyName("@odata.editLink")]
public string OdataEditLink { get; set; }
[JsonPropertyName("access_token")]
public string AccessToken { get; set; }
[JsonPropertyName("expires_on")]
public string ExpiresOn { get; set; }
[JsonPropertyName("id_token")]
public object IdToken { get; set; }
[JsonPropertyName("resource")]
public string Resource { get; set; }
[JsonPropertyName("scope")]
public string Scope { get; set; }
[JsonPropertyName("token_type")]
public string TokenType { get; set; }
}
internal static class OauthTokenResource
{
public static string Bing => "https://www.bing.com";
public static string OutlookSearch => "https://outlook.office365.com/search";
public static string Loki => "https://loki.delve.office.com";
public static string MsGraph => "https://graph.microsoft.com";
}