internal static MailContactItem FromContactItemInfo(MailContactItem itemInfo)
 {
     if (itemInfo != null)
     {
         var contact = new MailContactItem
         {
             Name = itemInfo.Name,
             Description = itemInfo.Description,   
             Labels = new ItemList<int>(itemInfo.Labels),
             Emails = new ItemList<string>(itemInfo.Emails)
         };
         return contact;
     }
     return null;
 }
Example #2
0
 internal static MailContactItem FromContactItemInfo(MailContactItem itemInfo)
 {
     if (itemInfo != null)
     {
         var contact = new MailContactItem
         {
             Name        = itemInfo.Name,
             Description = itemInfo.Description,
             Labels      = new ItemList <int>(itemInfo.Labels),
             Emails      = new ItemList <string>(itemInfo.Emails)
         };
         return(contact);
     }
     return(null);
 }