POST api/ThaiCom
Request Information
URI Parameters
None.
Body Parameters
ThaiComDataModelsName | Description | Type | Additional information |
---|---|---|---|
Version | integer |
None. |
|
DeviceId | string |
None. |
|
Latitude | decimal number |
None. |
|
Longitude | decimal number |
None. |
|
Speed | decimal number |
None. |
|
Heading | integer |
None. |
|
GpsTime | date |
None. |
|
ReceivedTime | date |
None. |
|
ExtPowerVoltage | decimal number |
None. |
|
VesselRegisterNumber | string |
None. |
|
SatSignalQuality | integer |
None. |
|
GSMSignalQuality | integer |
None. |
|
GPSSatelliteNumber | integer |
None. |
|
FailureReason | integer |
None. |
|
AlertButton | boolean |
None. |
|
VesselActivity | integer |
None. |
|
RawData | string |
None. |
|
GPSStatus | boolean |
None. |
|
MTUFirmwareVersion | string |
None. |
|
HelloMessage | string |
None. |
Request Formats
application/json, text/json
Sample:
Generation I Sample { "Version": 1, "DeviceId": "1123456", "Latitude": 13.120012, "Longitude": 110.112233, "Speed": 1.2, "Heading": 1, "GpsTime": "2024-12-28T08:42:27.1540475Z", "ReceivedTime": "2024-12-28T08:43:27.1540475Z" } Generation II Sample { "Version": 2, "DeviceId": "1123456", "Latitude": 13.120012, "Longitude": 110.112233, "Speed": 1.2, "Heading": 1, "GpsTime": "2024-12-28T08:42:27.1540475Z", "ReceivedTime": "2024-12-28T08:43:27.1540475Z", "ExtPowerVoltage": 120.0, "VesselRegisterNumber": "123456789", "SatSignalQuality": 4, "GSMSignalQuality": 29, "GPSSatelliteNumber": 2, "FailureReason": 0, "AlertButton": true, "VesselActivity": 1, "RawData": "", "GPSStatus": true, "MTUFirmwareVersion": "2.0", "HelloMessage": "" }
text/html
Sample:
{"Version":1,"DeviceId":"sample string 2","Latitude":3.0,"Longitude":4.0,"Speed":5.1,"Heading":6,"GpsTime":"2024-12-28T23:24:27.2255291+07:00","ReceivedTime":"2024-12-28T23:24:27.2255291+07:00","ExtPowerVoltage":1.1,"VesselRegisterNumber":"sample string 9","SatSignalQuality":1,"GSMSignalQuality":1,"GPSSatelliteNumber":1,"FailureReason":1,"AlertButton":true,"VesselActivity":1,"RawData":"sample string 10","GPSStatus":true,"MTUFirmwareVersion":"sample string 11","HelloMessage":"sample string 12"}
application/xml, text/xml
Sample:
Generation I Sample <?xml version="1.0"?> <ThaiComDataModels xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Version>2</Version> <DeviceId>1123456</DeviceId> <Latitude>13.120012</Latitude> <Longitude>110.112233</Longitude> <Speed>1.2</Speed> <Heading>1</Heading> <GpsTime>2024-12-28T08:42:27.1540475Z</GpsTime> <ReceivedTime>2024-12-28T08:43:27.1540475Z</ReceivedTime> <ExtPowerVoltage>120</ExtPowerVoltage> <VesselRegisterNumber>123456789</VesselRegisterNumber> <SatSignalQuality>4</SatSignalQuality> <GSMSignalQuality>29</GSMSignalQuality> <GPSSatelliteNumber>2</GPSSatelliteNumber> <FailureReason>0</FailureReason> <AlertButton>true</AlertButton> <VesselActivity>1</VesselActivity> <RawData /> <GPSStatus>true</GPSStatus> <MTUFirmwareVersion>2.0</MTUFirmwareVersion> <HelloMessage /> </ThaiComDataModels> Generation II Sample <?xml version="1.0"?> <ThaiComDataModels xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Version>2</Version> <DeviceId>1123456</DeviceId> <Latitude>13.120012</Latitude> <Longitude>110.112233</Longitude> <Speed>1.2</Speed> <Heading>1</Heading> <GpsTime>2024-12-28T08:42:27.1540475Z</GpsTime> <ReceivedTime>2024-12-28T08:43:27.1540475Z</ReceivedTime> <ExtPowerVoltage>120</ExtPowerVoltage> <VesselRegisterNumber>123456789</VesselRegisterNumber> <SatSignalQuality>4</SatSignalQuality> <GSMSignalQuality>29</GSMSignalQuality> <GPSSatelliteNumber>2</GPSSatelliteNumber> <FailureReason>0</FailureReason> <AlertButton>true</AlertButton> <VesselActivity>1</VesselActivity> <RawData /> <GPSStatus>true</GPSStatus> <MTUFirmwareVersion>2.0</MTUFirmwareVersion> <HelloMessage /> </ThaiComDataModels>
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |