POST api/Files/ZcChatList

Chat information list acquisition, paging form [private interface]

Request Information

Body Parameters

ZcChatListModel
NameDescriptionTypeAdditional information
UserId

user id

integer

None.

Imei

device imei

string

None.

PageNo

inquired page number

integer

None.

PageCount

number each page

integer

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:
{
  "UserId": 1,
  "Imei": "sample string 2",
  "PageNo": 3,
  "PageCount": 4,
  "Token": "sample string 5",
  "Language": "sample string 6",
  "AppId": "sample string 7"
}

application/xml, text/xml

Sample:
<ZcChatListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 7</AppId>
  <Language>sample string 6</Language>
  <Token>sample string 5</Token>
  <Imei>sample string 2</Imei>
  <PageCount>4</PageCount>
  <PageNo>3</PageNo>
  <UserId>1</UserId>
</ZcChatListModel>

Response Information

Resource Description

The return value State condition
0. Indicates success
100. says no data

ZcChatListResult
NameDescriptionTypeAdditional information
Items

returned chat content collection

Collection of ZcwFileModel

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Items": [
    {
      "FileId": 1,
      "SendFrom": "sample string 2",
      "FromType": 3,
      "SendTo": "sample string 4",
      "ToType": 5,
      "Content": "sample string 6",
      "Created": "sample string 7",
      "MsgType": 8,
      "Long": 9
    },
    {
      "FileId": 1,
      "SendFrom": "sample string 2",
      "FromType": 3,
      "SendTo": "sample string 4",
      "ToType": 5,
      "Content": "sample string 6",
      "Created": "sample string 7",
      "MsgType": 8,
      "Long": 9
    }
  ],
  "State": 1
}

application/xml, text/xml

Sample:
<ZcChatListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
  <Items xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:ZcwFileModel>
      <d2p1:Content>sample string 6</d2p1:Content>
      <d2p1:Created>sample string 7</d2p1:Created>
      <d2p1:FileId>1</d2p1:FileId>
      <d2p1:FromType>3</d2p1:FromType>
      <d2p1:Long>9</d2p1:Long>
      <d2p1:MsgType>8</d2p1:MsgType>
      <d2p1:SendFrom>sample string 2</d2p1:SendFrom>
      <d2p1:SendTo>sample string 4</d2p1:SendTo>
      <d2p1:ToType>5</d2p1:ToType>
    </d2p1:ZcwFileModel>
    <d2p1:ZcwFileModel>
      <d2p1:Content>sample string 6</d2p1:Content>
      <d2p1:Created>sample string 7</d2p1:Created>
      <d2p1:FileId>1</d2p1:FileId>
      <d2p1:FromType>3</d2p1:FromType>
      <d2p1:Long>9</d2p1:Long>
      <d2p1:MsgType>8</d2p1:MsgType>
      <d2p1:SendFrom>sample string 2</d2p1:SendFrom>
      <d2p1:SendTo>sample string 4</d2p1:SendTo>
      <d2p1:ToType>5</d2p1:ToType>
    </d2p1:ZcwFileModel>
  </Items>
</ZcChatListResult>