數量

使用 CountStatus 即可針對各種項目的計數狀態 (例如投票類型或寫入次數),或是計數在進行中、尚未開始或已完成。ContestElectionGpUnit 實體包含 CountStatus

元素

下表說明 CountStatus 的元素:

元素 多重性 類型 說明
Status 1 CountItemStatus 計數的狀態。
Type 1 CountItemType 要計算的項目類型。如果 CountStatus 項目的類型未列在 CountItemType 列舉中,請將 Type 設為 other,並在 OtherType 中加入自訂類型。
OtherType 0 或 1 string Typeother 時,用於指定計入項目的狀態。

範例

XML

    <CountStatus>
      <Status>completed</Status>
      <Type>early</Type>
    </CountStatus>
    <CountStatus>
      <Status>in-process</Status>
      <Type>election-day</Type>
    </CountStatus>

JSON

    "CountStatus": [
      {
        "Status": "completed",
        "Type": "early"
      }
    ]
    "CountStatus": [
      {
        "Status": "in-process",
        "Type": "election-day"
      }
    ]