POST api/drink/Gather

Request Information

URI Parameters

None.

Body Parameters

WaterMeterGatherModel
NameDescriptionTypeAdditional information
Settings

string

None.

SetTime

date

None.

Mac

string

None.

UserId

string

None.

Liters

integer

None.

Power

integer

None.

Status

integer

None.

BatteryVoltage

decimal number

None.

BodyStatus

string

None.

Imei

string

None.

DeviceId

string

None.

MessageId

string

None.

DecimalPlaces

string

None.

TotalFlow

decimal number

None.

ClosingDayFlow

decimal number

None.

LastMonthFlow

decimal number

None.

BuyTimes

integer

None.

Balance

integer

None.

InfoMsgVer

string

None.

PriceType

integer

None.

Signal

string

None.

SensorStatus

string

None.

ValveStatus

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Settings": "sample string 1",
  "SetTime": "2026-09-09T14:10:14.0082262+08:00",
  "Mac": "sample string 3",
  "UserId": "sample string 4",
  "Liters": 5,
  "Power": 6,
  "Status": 7,
  "BatteryVoltage": 8.0,
  "BodyStatus": "sample string 9",
  "Imei": "sample string 10",
  "DeviceId": "sample string 11",
  "MessageId": "sample string 12",
  "DecimalPlaces": "sample string 13",
  "TotalFlow": 14.0,
  "ClosingDayFlow": 15.0,
  "LastMonthFlow": 16.0,
  "BuyTimes": 17,
  "Balance": 18,
  "InfoMsgVer": "sample string 19",
  "PriceType": 20,
  "Signal": "sample string 21",
  "SensorStatus": "sample string 22",
  "ValveStatus": "sample string 23"
}

application/xml, text/xml

Sample:
<WaterMeterGatherModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YuXun.WebAPI.Models">
  <Balance>18</Balance>
  <BatteryVoltage>8</BatteryVoltage>
  <BodyStatus>sample string 9</BodyStatus>
  <BuyTimes>17</BuyTimes>
  <ClosingDayFlow>15</ClosingDayFlow>
  <DecimalPlaces>sample string 13</DecimalPlaces>
  <DeviceId>sample string 11</DeviceId>
  <Imei>sample string 10</Imei>
  <InfoMsgVer>sample string 19</InfoMsgVer>
  <LastMonthFlow>16</LastMonthFlow>
  <Liters>5</Liters>
  <Mac>sample string 3</Mac>
  <MessageId>sample string 12</MessageId>
  <Power>6</Power>
  <PriceType>20</PriceType>
  <SensorStatus>sample string 22</SensorStatus>
  <SetTime>2026-09-09T14:10:14.0082262+08:00</SetTime>
  <Settings>sample string 1</Settings>
  <Signal>sample string 21</Signal>
  <Status>7</Status>
  <TotalFlow>14</TotalFlow>
  <UserId>sample string 4</UserId>
  <ValveStatus>sample string 23</ValveStatus>
</WaterMeterGatherModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.