GET api/EcoCar/Busi/Broadcase/Event/Query?username={username}&classid={classid}
当前播报客户端伺服服务检索某个用户名需要播报的内容。 需要判断返回值,返回值errcode=0表示成功,tag值中返回需要播报的内容。
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
username |
播报客户端的用户登陆名。 |
string |
Required |
classid |
如果有,则可以指定班次的ID,如果未知当前班次ID,可以不指定。 |
string |
Default value is |
Body Parameters
None.
Response Information
Resource Description
当前播报客户端伺服服务检索某个用户名需要播报的内容。 需要判断返回值,返回值errcode=0表示成功,tag值中返回需要播报的内容。
CommonOperationResultWithTagOfEcoCarBroadcastResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | EcoCarBroadcastResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "newclassid": "sample string 1", "events": [ { "autoid": 1, "classid": "sample string 2", "happentime": "sample string 3", "paymenttype": "sample string 4", "paymenttypeid": "sample string 5", "tickettypename": "sample string 6", "amount": 7, "price": 8.0, "subtotal": 9.0, "busitype": "sample string 10", "clienttype": "sample string 11", "sumamount": 12, "total": 13.0 }, { "autoid": 1, "classid": "sample string 2", "happentime": "sample string 3", "paymenttype": "sample string 4", "paymenttypeid": "sample string 5", "tickettypename": "sample string 6", "amount": 7, "price": 8.0, "subtotal": 9.0, "busitype": "sample string 10", "clienttype": "sample string 11", "sumamount": 12, "total": 13.0 } ] } }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfEcoCarBroadcastResultguOp_Pzk_S xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.EcoCar"> <d2p1:events> <d2p1:EcoCarBroadcastEvent> <d2p1:amount>7</d2p1:amount> <d2p1:autoid>1</d2p1:autoid> <d2p1:busitype>sample string 10</d2p1:busitype> <d2p1:classid>sample string 2</d2p1:classid> <d2p1:clienttype>sample string 11</d2p1:clienttype> <d2p1:happentime>sample string 3</d2p1:happentime> <d2p1:paymenttype>sample string 4</d2p1:paymenttype> <d2p1:paymenttypeid>sample string 5</d2p1:paymenttypeid> <d2p1:price>8</d2p1:price> <d2p1:subtotal>9</d2p1:subtotal> <d2p1:sumamount>12</d2p1:sumamount> <d2p1:tickettypename>sample string 6</d2p1:tickettypename> <d2p1:total>13</d2p1:total> </d2p1:EcoCarBroadcastEvent> <d2p1:EcoCarBroadcastEvent> <d2p1:amount>7</d2p1:amount> <d2p1:autoid>1</d2p1:autoid> <d2p1:busitype>sample string 10</d2p1:busitype> <d2p1:classid>sample string 2</d2p1:classid> <d2p1:clienttype>sample string 11</d2p1:clienttype> <d2p1:happentime>sample string 3</d2p1:happentime> <d2p1:paymenttype>sample string 4</d2p1:paymenttype> <d2p1:paymenttypeid>sample string 5</d2p1:paymenttypeid> <d2p1:price>8</d2p1:price> <d2p1:subtotal>9</d2p1:subtotal> <d2p1:sumamount>12</d2p1:sumamount> <d2p1:tickettypename>sample string 6</d2p1:tickettypename> <d2p1:total>13</d2p1:total> </d2p1:EcoCarBroadcastEvent> </d2p1:events> <d2p1:newclassid>sample string 1</d2p1:newclassid> </tag> </CommonOperationResultWithTagOfEcoCarBroadcastResultguOp_Pzk_S>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.