//----------------------------------------------------------------------- // // Copyright (c) Microsoft. All rights reserved. // //----------------------------------------------------------------------- namespace DotNetOpenAuth.ApplicationBlock { using System; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.Runtime.Serialization; /// /// Contains data of a AzureAD user. /// /// /// 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. /// [DataContract] [EditorBrowsable(EditorBrowsableState.Never)] [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "AzureAD", Justification = "Brand name")] public class AzureADGraph { #region Public Properties /// /// Gets or sets the firstname. /// /// The first name. [DataMember(Name = "givenName")] public string GivenName { get; set; } /// /// Gets or sets the lastname. /// /// The last name. [DataMember(Name = "surname")] public string Surname { get; set; } /// /// Gets or sets the email. /// /// The email. [DataMember(Name = "userPrincipalName")] public string UserPrincipalName { get; set; } /// /// Gets or sets the fullname. /// /// The fullname. [DataMember(Name = "displayName")] public string DisplayName { get; set; } /// /// Gets or sets the id. /// /// The id. [DataMember(Name = "objectId")] public string ObjectId { get; set; } #endregion } }