//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ using System.Collections.Generic; using System.Collections.ObjectModel; namespace System.IdentityModel.Metadata { /// /// Defines the contact person class. /// public class ContactPerson { ContactType _type = ContactType.Unspecified; string _company; string _givenName; string _surname; Collection _emailAddresses = new Collection(); Collection _telephoneNumbers = new Collection(); /// /// Empty constructor for contact person. /// public ContactPerson() { } /// /// Creates a contact person object with the contact type. /// /// The for this object. public ContactPerson(ContactType contactType) { _type = contactType; } /// /// Gets or sets the company name. /// public string Company { get { return _company; } set { _company = value; } } /// /// Gets the email address collection. /// public ICollection EmailAddresses { get { return _emailAddresses; } } /// /// Gets or sets the given name. /// public string GivenName { get { return _givenName; } set { _givenName = value; } } /// /// Gets or sets the surname. /// public string Surname { get { return _surname; } set { _surname = value; } } /// /// Gets the collection of telephone numbers. /// public ICollection TelephoneNumbers { get { return _telephoneNumbers; } } /// /// Gets or sets the contact type. /// public ContactType Type { get { return _type; } set { _type = value; } } } }