使用 CountStatus
在報表中顯示各種項目的計數狀態,例如
投票類型或寫入資料,或計數是否進行中
建立和完成Contest
、
Election
和
GpUnit
實體包括 CountStatus
。
元素
下表將說明 CountStatus
的元素:
元素 | 多重性 | 類型 | 說明 |
---|---|---|---|
Status |
1 | CountItemStatus |
數量的狀態。 |
Type |
1 | CountItemType |
要計算的項目類型。如果
CountStatus 個項目不在下列清單中
CountItemType 列舉,將 Type 設為
other 並在當中加入自訂類型
OtherType 。 |
OtherType |
0 或 1 | string |
當 Type 為 other 時,用於指定
計數狀態 |
範例
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" } ]