You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
593 B

2 years ago
  1. using System.Collections.Generic;
  2. namespace WebApp.Outlook.Models
  3. {
  4. public class Contacts
  5. {
  6. public string DisplayName { get; set; }
  7. public string EmailAddress { get; set; }
  8. public string MobilePhone { get; set; }
  9. public Contacts(string displayName, IList<Microsoft.Office365.OutlookServices.EmailAddress> emailAddresses, string mobilePhone)
  10. {
  11. this.DisplayName = displayName;
  12. this.EmailAddress = emailAddresses.Count <= 0 ? "" : emailAddresses[0].Address;
  13. this.MobilePhone = mobilePhone;
  14. }
  15. }
  16. }