blob: 625a0feb5749dbc8a8098795146e962104a62acc (
plain)
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
|
//-----------------------------------------------------------------------
// <copyright file="AzureADGraph.cs" company="Microsoft">
// Copyright (c) Microsoft. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace DotNetOpenAuth.ApplicationBlock
{
using System;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;
/// <summary>
/// Contains data of a AzureAD user.
/// </summary>
/// <remarks>
/// Technically, this class doesn't need to be public, but because we want to make it serializable in medium trust, it has to be public.
/// </remarks>
[DataContract]
[EditorBrowsable(EditorBrowsableState.Never)]
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "AzureAD", Justification = "Brand name")]
public class AzureADGraph {
#region Public Properties
/// <summary>
/// Gets or sets the firstname.
/// </summary>
/// <value> The first name. </value>
[DataMember(Name = "givenName")]
public string GivenName { get; set; }
/// <summary>
/// Gets or sets the lastname.
/// </summary>
/// <value> The last name. </value>
[DataMember(Name = "surname")]
public string Surname { get; set; }
/// <summary>
/// Gets or sets the email.
/// </summary>
/// <value> The email. </value>
[DataMember(Name = "userPrincipalName")]
public string UserPrincipalName { get; set; }
/// <summary>
/// Gets or sets the fullname.
/// </summary>
/// <value> The fullname. </value>
[DataMember(Name = "displayName")]
public string DisplayName { get; set; }
/// <summary>
/// Gets or sets the id.
/// </summary>
/// <value> The id. </value>
[DataMember(Name = "objectId")]
public string ObjectId { get; set; }
#endregion
}
}
|