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); } }
/// <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; }
public CompositeEditableModel(string location, IEnumerable <int> phones) { Location = location; _person = new SimpleEditableModel(); Phones.AddRange(phones); }
public SmsDto(IEnumerable <string> phones, string message, SmsOptions options) { Phones.AddRange(phones); Message = message; Options = options; }