POST api/Location/SaveBbs

Pet announcements

Request Information

Body Parameters

BbsModel
NameDescriptionTypeAdditional information
Id

integer

None.

AppId

integer

None.

UserId

integer

None.

UserName

string

None.

Created

date

None.

Note

string

None.

Deleted

boolean

None.

Phone

string

None.

FileData

string

None.

HeadUrl

string

None.

ImgUrl

string

None.

Address

string

None.

ConnName

string

None.

Title

string

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "AppId": 2,
  "UserId": 3,
  "UserName": "sample string 4",
  "Created": "2018-12-19T05:59:51.954375+08:00",
  "Note": "sample string 6",
  "Deleted": true,
  "Phone": "sample string 8",
  "FileData": "sample string 9",
  "HeadUrl": "sample string 10",
  "ImgUrl": "sample string 11",
  "Address": "sample string 12",
  "ConnName": "sample string 13",
  "Title": "sample string 14",
  "Token": "sample string 15",
  "Language": "sample string 16"
}

application/xml, text/xml

Sample:
<BbsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 17</AppId>
  <Language>sample string 16</Language>
  <Token>sample string 15</Token>
  <Address>sample string 12</Address>
  <AppId>2</AppId>
  <ConnName>sample string 13</ConnName>
  <Created>2018-12-19T05:59:51.954375+08:00</Created>
  <Deleted>true</Deleted>
  <FileData>sample string 9</FileData>
  <HeadUrl>sample string 10</HeadUrl>
  <Id>1</Id>
  <ImgUrl>sample string 11</ImgUrl>
  <Note>sample string 6</Note>
  <Phone>sample string 8</Phone>
  <Title>sample string 14</Title>
  <UserId>3</UserId>
  <UserName>sample string 4</UserName>
</BbsModel>

Response Information

Resource Description

HistoryResult
NameDescriptionTypeAdditional information
State

status

integer

None.

LastLocationId

final id

integer

None.

LastDeviceUtcDate

Final time

string

None.

Items

data

Collection of HistoryInfo

None.

ItemsCount

Remove the number of stops before you stop

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "State": 1,
  "LastLocationId": 2,
  "LastDeviceUtcDate": "sample string 3",
  "Items": [
    {
      "LocationId": 1,
      "Time": "sample string 2",
      "Lat": 3.0,
      "Lng": 4.0,
      "Speed": 5.0,
      "Course": 6.0,
      "IsStop": 7,
      "StopTime": 8,
      "Icon": "sample string 9",
      "DataType": 10,
      "StopTimeStr": "sample string 11",
      "EndTime": "sample string 12",
      "Battery": 13
    },
    {
      "LocationId": 1,
      "Time": "sample string 2",
      "Lat": 3.0,
      "Lng": 4.0,
      "Speed": 5.0,
      "Course": 6.0,
      "IsStop": 7,
      "StopTime": 8,
      "Icon": "sample string 9",
      "DataType": 10,
      "StopTimeStr": "sample string 11",
      "EndTime": "sample string 12",
      "Battery": 13
    }
  ],
  "ItemsCount": 4
}

application/xml, text/xml

Sample:
<HistoryResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:HistoryInfo>
      <d2p1:Battery>13</d2p1:Battery>
      <d2p1:Course>6</d2p1:Course>
      <d2p1:DataType>10</d2p1:DataType>
      <d2p1:EndTime>sample string 12</d2p1:EndTime>
      <d2p1:Icon>sample string 9</d2p1:Icon>
      <d2p1:IsStop>7</d2p1:IsStop>
      <d2p1:Lat>3</d2p1:Lat>
      <d2p1:Lng>4</d2p1:Lng>
      <d2p1:LocationId>1</d2p1:LocationId>
      <d2p1:Speed>5</d2p1:Speed>
      <d2p1:StopTime>8</d2p1:StopTime>
      <d2p1:StopTimeStr>sample string 11</d2p1:StopTimeStr>
      <d2p1:Time>sample string 2</d2p1:Time>
    </d2p1:HistoryInfo>
    <d2p1:HistoryInfo>
      <d2p1:Battery>13</d2p1:Battery>
      <d2p1:Course>6</d2p1:Course>
      <d2p1:DataType>10</d2p1:DataType>
      <d2p1:EndTime>sample string 12</d2p1:EndTime>
      <d2p1:Icon>sample string 9</d2p1:Icon>
      <d2p1:IsStop>7</d2p1:IsStop>
      <d2p1:Lat>3</d2p1:Lat>
      <d2p1:Lng>4</d2p1:Lng>
      <d2p1:LocationId>1</d2p1:LocationId>
      <d2p1:Speed>5</d2p1:Speed>
      <d2p1:StopTime>8</d2p1:StopTime>
      <d2p1:StopTimeStr>sample string 11</d2p1:StopTimeStr>
      <d2p1:Time>sample string 2</d2p1:Time>
    </d2p1:HistoryInfo>
  </Items>
  <ItemsCount>4</ItemsCount>
  <LastDeviceUtcDate>sample string 3</LastDeviceUtcDate>
  <LastLocationId>2</LastLocationId>
  <State>1</State>
</HistoryResult>