-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
PhoneNumberLocality.cs
39 lines (32 loc) · 1.63 KB
/
PhoneNumberLocality.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
namespace Azure.Communication.PhoneNumbers
{
/// <summary> Represents a locality. </summary>
public partial class PhoneNumberLocality
{
/// <summary> Initializes a new instance of <see cref="PhoneNumberLocality"/>. </summary>
/// <param name="localizedName"> Represents the localized name of the locality. </param>
/// <exception cref="ArgumentNullException"> <paramref name="localizedName"/> is null. </exception>
internal PhoneNumberLocality(string localizedName)
{
Argument.AssertNotNull(localizedName, nameof(localizedName));
LocalizedName = localizedName;
}
/// <summary> Initializes a new instance of <see cref="PhoneNumberLocality"/>. </summary>
/// <param name="localizedName"> Represents the localized name of the locality. </param>
/// <param name="administrativeDivision"> Represents an administrative division. e.g. state or province. </param>
internal PhoneNumberLocality(string localizedName, PhoneNumberAdministrativeDivision administrativeDivision)
{
LocalizedName = localizedName;
AdministrativeDivision = administrativeDivision;
}
/// <summary> Represents the localized name of the locality. </summary>
public string LocalizedName { get; }
/// <summary> Represents an administrative division. e.g. state or province. </summary>
public PhoneNumberAdministrativeDivision AdministrativeDivision { get; }
}
}