-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathGetUserDataResponse.cs
More file actions
97 lines (81 loc) · 2.92 KB
/
GetUserDataResponse.cs
File metadata and controls
97 lines (81 loc) · 2.92 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
using System;
using System.Collections.Generic;
namespace Firebase.Auth.Payloads
{
public class GetUserDataResponse : BaseResponse
{
/// <summary>
/// The request type, always "identitytoolkit#GetAccountInfoResponse".
/// </summary>
public string kind { get; set; }
/// <summary>
/// The account associated with the given Firebase ID token. Check below for more details.
/// </summary>
public IList<User> users { get; set; }
}
public class ProviderUserData
{
public string providerId { get; set; }
public string displayName { get; set; }
public string photoUrl { get; set; }
public string federatedId { get; set; }
public string email { get; set; }
public string rawId { get; set; }
public string screenName { get; set; }
}
public class User
{
/// <summary>
/// The uid of the current user.
/// </summary>
public string localId { get; set; }
/// <summary>
/// The email of the account.
/// </summary>
public string email { get; set; }
/// <summary>
/// Whether or not the account's email has been verified.
/// </summary>
public bool emailVerified { get; set; }
/// <summary>
/// The display name for the account.
/// </summary>
public string displayName { get; set; }
/// <summary>
/// List of all linked provider objects which contain "providerId" and "federatedId".
/// </summary>
public IList<ProviderUserData> providerUserInfo { get; set; }
/// <summary>
/// The photo Url for the account.
/// </summary>
public string photoUrl { get; set; }
/// <summary>
/// Hash version of password.
/// </summary>
public string passwordHash { get; set; }
/// <summary>
/// The timestamp, in milliseconds, that the account password was last changed.
/// </summary>
public double passwordUpdatedAt { get; set; }
/// <summary>
/// The timestamp, in seconds, which marks a boundary, before which Firebase ID token are considered revoked.
/// </summary>
public string validSince { get; set; }
/// <summary>
/// Whether the account is disabled or not.
/// </summary>
public bool disabled { get; set; }
/// <summary>
/// The timestamp, in milliseconds, that the account last logged in at.
/// </summary>
public string lastLoginAt { get; set; }
/// <summary>
/// The timestamp, in milliseconds, that the account was created at.
/// </summary>
public string createdAt { get; set; }
/// <summary>
/// Whether the account is authenticated by the developer.
/// </summary>
public bool customAuth { get; set; }
}
}