使用 ContactInformation 定义有关人员、理事机构和组织等对象的联系信息。
此实体主要用于提供与以下元素相关的带注释的 URI:Election、ElectionAdministration、Person、GpUnit 和 Office。
属性
下表显示了 ContactInformation 的属性:
| 属性 | 是否必需? | 类型 | 说明 |
|---|---|---|---|
label |
可选 | string |
联系信息的可选属性,可用于指回信息的原始标签。例如,如果联系信息来自 CSV 文件,label 可能指的是行 ID。 |
language |
可选 | language |
标识用于提供联系信息的语言。 |
元素
下表显示了 ContactInformation 的元素:
| 元素 | 多样性 | 类型 | 说明 |
|---|---|---|---|
AddressLine
|
0 个或更多 | string |
将地址与联系人相关联。 如需为联系人添加地址,请多次使用 |
Directions
|
0 或 1 | InternationalizedText |
除了地址信息之外,还提供方向信息。 方向可用于提供可能以多种语言显示的任何其他与地址相关的信息。 |
Email |
0 个或更多 | AnnotatedString |
将电子邮件地址与联系人相关联。如果存在多个 Email 字段,请添加注释,让用户了解每个字段的用途。 |
Fax |
0 个或更多 | AnnotatedString |
将传真号码与联系人相关联。如果存在多个 Fax 字段,请添加注释,让用户了解每个字段的用途。 |
LatLng
|
0 或 1 | LatLng |
将可选的纬度和经度信息与联系人地址相关联。 |
Name
|
0 或 1 | string |
将名称与联系人相关联。此字段用于提供有助于用户联系相应个人或组织的非地址信息。 例如,“州务卿办公室选举部门”。 |
Phone |
0 个或更多 | AnnotatedString |
将电话号码与联系人相关联。如果存在多个 Phone 字段,请添加注释,让用户了解每个字段的用途。 |
Uri |
0 个或更多 | AnnotatedUri |
将 URI 与联系人相关联。 |
示例
XML
<ContactInformation> <Uri Annotation="personal-facebook">https://www.facebook.com/tedcruzpage</Uri> <Uri Annotation="personal-twitter">https://twitter.com/tedcruz</Uri> <Uri Annotation="personal-website">https://www.tedcruz.org/</Uri> <Uri Annotation="wikipedia">https://en.wikipedia.org/wiki/Ted_Cruz</Uri> </ContactInformation>
<ContactInformation label="ci-60001" language="es"> <AddressLine>Viad. Tlalpan 100</AddressLine> <AddressLine>Arenal Tepepan</AddressLine> <AddressLine>14610 Ciudad de México, CDMX</AddressLine> <AddressLine>Mexico</AddressLine> <Name>Instituto Nacional Electoral</Name> <Phone annotation="domestic">01 800 433 2000</Phone> <Phone annotation="usa">1 (866) 986 8306</Phone> <Phone annotation="collect">+52 (55) 5481 9897</Phone> <Uri Annotation="official-website">https://www.ine.mx/</Uri> <Uri Annotation="official-twitter">https://twitter.com/INEMexico</Uri> <Uri Annotation="official-facebook">https://www.facebook.com/INEMexico</Uri> </ContactInformation>
<ContactInformation label="ci-10861a" language="en"> <AddressLine>1600 Pennsylvania Ave</AddressLine> <AddressLine>Washington, DC 20006</AddressLine> <Email>president@whitehouse.gov</Email> <Phone>202-456-1111</Phone> <Phone annotation="TDD">202-456-6213</Phone> <Uri Annotation="official-website">http://www.whitehouse.gov</Uri> <Uri Annotation="official-facebook">https://www.facebook.com/WhiteHouse</Uri> <Uri Annotation="official-twitter">https://twitter.com/WhiteHouse</Uri> </ContactInformation>