Ejemplo n.º 1
0
 public Profile(string name, string email, string countryId, IEnumerable <string> phones)
 {
     Name      = name;
     Email     = email;
     CountryId = countryId;
     if (phones != null && phones.Count() > 0)
     {
         Phones.AddRange(phones);
     }
 }
Ejemplo n.º 2
0
 /// <include file="../../docs/Microsoft.Maui.Essentials/Contact.xml" path="//Member[@MemberName='.ctor']/Docs" />
 public Contact(
     string id,
     string namePrefix,
     string givenName,
     string middleName,
     string familyName,
     string nameSuffix,
     IEnumerable <ContactPhone> phones,
     IEnumerable <ContactEmail> email,
     string displayName = null)
 {
     Id         = id;
     NamePrefix = namePrefix;
     GivenName  = givenName;
     MiddleName = middleName;
     FamilyName = familyName;
     NameSuffix = nameSuffix;
     Phones.AddRange(phones?.ToList());
     Emails.AddRange(email?.ToList());
     DisplayName = displayName;
 }
Ejemplo n.º 3
0
 public CompositeEditableModel(string location, IEnumerable <int> phones)
 {
     Location = location;
     _person  = new SimpleEditableModel();
     Phones.AddRange(phones);
 }
Ejemplo n.º 4
0
 public SmsDto(IEnumerable <string> phones, string message, SmsOptions options)
 {
     Phones.AddRange(phones);
     Message = message;
     Options = options;
 }