forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIOAuthTokens.cs
More file actions
68 lines (65 loc) · 2.46 KB
/
IOAuthTokens.cs
File metadata and controls
68 lines (65 loc) · 2.46 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System;
using System.Collections.Generic;
namespace ServiceStack.ServiceInterface.Auth
{
public interface IOAuthTokens
{
string Provider { get; set; }
string UserId { get; set; }
string UserName { get; set; }
string DisplayName { get; set; }
string FirstName { get; set; }
string LastName { get; set; }
string Email { get; set; }
DateTime? BirthDate { get; set; }
string BirthDateRaw { get; set; }
string Country { get; set; }
string Culture { get; set; }
string FullName { get; set; }
string Gender { get; set; }
string Language { get; set; }
string MailAddress { get; set; }
string Nickname { get; set; }
string PostalCode { get; set; }
string TimeZone { get; set; }
string AccessToken { get; set; }
string AccessTokenSecret { get; set; }
string RefreshToken { get; set; }
DateTime? RefreshTokenExpiry { get; set; }
string RequestToken { get; set; }
string RequestTokenSecret { get; set; }
Dictionary<string, string> Items { get; set; }
}
public class OAuthTokens : IOAuthTokens
{
public OAuthTokens()
{
this.Items = new Dictionary<string, string>();
}
public string Provider { get; set; }
public string UserId { get; set; }
public string UserName { get; set; }
public string DisplayName { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public DateTime? BirthDate { get; set; }
public string BirthDateRaw { get; set; }
public string Country { get; set; }
public string Culture { get; set; }
public string FullName { get; set; }
public string Gender { get; set; }
public string Language { get; set; }
public string MailAddress { get; set; }
public string Nickname { get; set; }
public string PostalCode { get; set; }
public string TimeZone { get; set; }
public string AccessToken { get; set; }
public string AccessTokenSecret { get; set; }
public string RefreshToken { get; set; }
public DateTime? RefreshTokenExpiry { get; set; }
public string RequestToken { get; set; }
public string RequestTokenSecret { get; set; }
public Dictionary<string, string> Items { get; set; }
}
}