POST api/Sleep/ListAllSleepInfos

睡眠排名信息

Request Information

URI Parameters

None.

Body Parameters

ListAllSleepInfosReq
NameDescriptionTypeAdditional information
type

为0请求睡眠时间排行榜(默认),为1请求早睡榜,为2请求早起榜

integer

None.

pid

integer

None.

page

integer

None.

count

integer

None.

uid

string

None.

date

string

None.

isAll

为1请求所有数据

integer

None.

ProductId

产品编号

integer

None.

Token

令牌,唯一标识,主要用来验权

string

None.

ChannalId

渠道号

string

None.

Version

外部版本

string

None.

language

语言

string

None.

Request Formats

application/json, text/json

Sample:
{
  "type": 1,
  "pid": 2,
  "page": 3,
  "count": 4,
  "uid": "sample string 5",
  "date": "sample string 6",
  "isAll": 7,
  "ProductId": 8,
  "Token": "sample string 9",
  "ChannalId": "sample string 10",
  "Version": "sample string 11",
  "language": "sample string 12"
}

application/xml, text/xml

Sample:
<ListAllSleepInfosReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <ChannalId xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 10</ChannalId>
  <ProductId xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">8</ProductId>
  <Token xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 9</Token>
  <Version xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 11</Version>
  <language xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 12</language>
  <count>4</count>
  <date>sample string 6</date>
  <isAll>7</isAll>
  <page>3</page>
  <pid>2</pid>
  <type>1</type>
  <uid>sample string 5</uid>
</ListAllSleepInfosReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ListAllSleepInfosRes
NameDescriptionTypeAdditional information
firstUserImg

string

None.

firstUserCover

string

None.

firstUserUid

string

None.

myRank

integer

None.

myRankInfo

ListAllSleepInfosModel

None.

rankInfo

Collection of ListAllSleepInfosModel

None.

State

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "firstUserImg": "sample string 1",
  "firstUserCover": "sample string 2",
  "firstUserUid": "sample string 3",
  "myRank": 4,
  "myRankInfo": {
    "sleepId": 1,
    "pid": 2,
    "startTime": "sample string 3",
    "endTime": "sample string 4",
    "sleepTime": "sample string 5",
    "date": "sample string 6",
    "uid": "sample string 7",
    "nickName": "sample string 8",
    "headImgurl": "sample string 9",
    "audioUrl": [
      "sample string 1",
      "sample string 2"
    ],
    "audioCount": 10,
    "sleepStates": [
      {
        "startTime": "sample string 1",
        "endTime": "sample string 2",
        "state": 3
      },
      {
        "startTime": "sample string 1",
        "endTime": "sample string 2",
        "state": 3
      }
    ],
    "sleepScores": [
      {
        "name": "sample string 1",
        "value": "sample string 2",
        "state": "sample string 3",
        "isRight": 4
      },
      {
        "name": "sample string 1",
        "value": "sample string 2",
        "state": "sample string 3",
        "isRight": 4
      }
    ],
    "finalScore": "sample string 11",
    "suggestion": "sample string 12",
    "isLike": 13,
    "likeCount": 14,
    "medal": {
      "id": 1,
      "name": "sample string 2",
      "description": "sample string 3",
      "getImgUrl": "sample string 4",
      "noGetImgUrl": "sample string 5",
      "type": 6,
      "level": 7,
      "isGet": 8,
      "headUrl": "sample string 9"
    },
    "isVip": 15
  },
  "rankInfo": [
    {
      "sleepId": 1,
      "pid": 2,
      "startTime": "sample string 3",
      "endTime": "sample string 4",
      "sleepTime": "sample string 5",
      "date": "sample string 6",
      "uid": "sample string 7",
      "nickName": "sample string 8",
      "headImgurl": "sample string 9",
      "audioUrl": [
        "sample string 1",
        "sample string 2"
      ],
      "audioCount": 10,
      "sleepStates": [
        {
          "startTime": "sample string 1",
          "endTime": "sample string 2",
          "state": 3
        },
        {
          "startTime": "sample string 1",
          "endTime": "sample string 2",
          "state": 3
        }
      ],
      "sleepScores": [
        {
          "name": "sample string 1",
          "value": "sample string 2",
          "state": "sample string 3",
          "isRight": 4
        },
        {
          "name": "sample string 1",
          "value": "sample string 2",
          "state": "sample string 3",
          "isRight": 4
        }
      ],
      "finalScore": "sample string 11",
      "suggestion": "sample string 12",
      "isLike": 13,
      "likeCount": 14,
      "medal": {
        "id": 1,
        "name": "sample string 2",
        "description": "sample string 3",
        "getImgUrl": "sample string 4",
        "noGetImgUrl": "sample string 5",
        "type": 6,
        "level": 7,
        "isGet": 8,
        "headUrl": "sample string 9"
      },
      "isVip": 15
    },
    {
      "sleepId": 1,
      "pid": 2,
      "startTime": "sample string 3",
      "endTime": "sample string 4",
      "sleepTime": "sample string 5",
      "date": "sample string 6",
      "uid": "sample string 7",
      "nickName": "sample string 8",
      "headImgurl": "sample string 9",
      "audioUrl": [
        "sample string 1",
        "sample string 2"
      ],
      "audioCount": 10,
      "sleepStates": [
        {
          "startTime": "sample string 1",
          "endTime": "sample string 2",
          "state": 3
        },
        {
          "startTime": "sample string 1",
          "endTime": "sample string 2",
          "state": 3
        }
      ],
      "sleepScores": [
        {
          "name": "sample string 1",
          "value": "sample string 2",
          "state": "sample string 3",
          "isRight": 4
        },
        {
          "name": "sample string 1",
          "value": "sample string 2",
          "state": "sample string 3",
          "isRight": 4
        }
      ],
      "finalScore": "sample string 11",
      "suggestion": "sample string 12",
      "isLike": 13,
      "likeCount": 14,
      "medal": {
        "id": 1,
        "name": "sample string 2",
        "description": "sample string 3",
        "getImgUrl": "sample string 4",
        "noGetImgUrl": "sample string 5",
        "type": 6,
        "level": 7,
        "isGet": 8,
        "headUrl": "sample string 9"
      },
      "isVip": 15
    }
  ],
  "State": 5,
  "Message": "sample string 6"
}

application/xml, text/xml

Sample:
<ListAllSleepInfosRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <Message xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 6</Message>
  <State xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">5</State>
  <firstUserCover>sample string 2</firstUserCover>
  <firstUserImg>sample string 1</firstUserImg>
  <firstUserUid>sample string 3</firstUserUid>
  <myRank>4</myRank>
  <myRankInfo>
    <audioCount>10</audioCount>
    <audioUrl xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </audioUrl>
    <date>sample string 6</date>
    <endTime>sample string 4</endTime>
    <finalScore>sample string 11</finalScore>
    <headImgurl>sample string 9</headImgurl>
    <isLike>13</isLike>
    <isVip>15</isVip>
    <likeCount>14</likeCount>
    <medal xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Help">
      <d3p1:description>sample string 3</d3p1:description>
      <d3p1:getImgUrl>sample string 4</d3p1:getImgUrl>
      <d3p1:headUrl>sample string 9</d3p1:headUrl>
      <d3p1:id>1</d3p1:id>
      <d3p1:isGet>8</d3p1:isGet>
      <d3p1:level>7</d3p1:level>
      <d3p1:name>sample string 2</d3p1:name>
      <d3p1:noGetImgUrl>sample string 5</d3p1:noGetImgUrl>
      <d3p1:type>6</d3p1:type>
    </medal>
    <nickName>sample string 8</nickName>
    <pid>2</pid>
    <sleepId>1</sleepId>
    <sleepScores>
      <SleepScoreInfo>
        <isRight>4</isRight>
        <name>sample string 1</name>
        <state>sample string 3</state>
        <value>sample string 2</value>
      </SleepScoreInfo>
      <SleepScoreInfo>
        <isRight>4</isRight>
        <name>sample string 1</name>
        <state>sample string 3</state>
        <value>sample string 2</value>
      </SleepScoreInfo>
    </sleepScores>
    <sleepStates>
      <SleepStateInfo>
        <endTime>sample string 2</endTime>
        <startTime>sample string 1</startTime>
        <state>3</state>
      </SleepStateInfo>
      <SleepStateInfo>
        <endTime>sample string 2</endTime>
        <startTime>sample string 1</startTime>
        <state>3</state>
      </SleepStateInfo>
    </sleepStates>
    <sleepTime>sample string 5</sleepTime>
    <startTime>sample string 3</startTime>
    <suggestion>sample string 12</suggestion>
    <uid>sample string 7</uid>
  </myRankInfo>
  <rankInfo>
    <ListAllSleepInfosModel>
      <audioCount>10</audioCount>
      <audioUrl xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </audioUrl>
      <date>sample string 6</date>
      <endTime>sample string 4</endTime>
      <finalScore>sample string 11</finalScore>
      <headImgurl>sample string 9</headImgurl>
      <isLike>13</isLike>
      <isVip>15</isVip>
      <likeCount>14</likeCount>
      <medal xmlns:d4p1="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Help">
        <d4p1:description>sample string 3</d4p1:description>
        <d4p1:getImgUrl>sample string 4</d4p1:getImgUrl>
        <d4p1:headUrl>sample string 9</d4p1:headUrl>
        <d4p1:id>1</d4p1:id>
        <d4p1:isGet>8</d4p1:isGet>
        <d4p1:level>7</d4p1:level>
        <d4p1:name>sample string 2</d4p1:name>
        <d4p1:noGetImgUrl>sample string 5</d4p1:noGetImgUrl>
        <d4p1:type>6</d4p1:type>
      </medal>
      <nickName>sample string 8</nickName>
      <pid>2</pid>
      <sleepId>1</sleepId>
      <sleepScores>
        <SleepScoreInfo>
          <isRight>4</isRight>
          <name>sample string 1</name>
          <state>sample string 3</state>
          <value>sample string 2</value>
        </SleepScoreInfo>
        <SleepScoreInfo>
          <isRight>4</isRight>
          <name>sample string 1</name>
          <state>sample string 3</state>
          <value>sample string 2</value>
        </SleepScoreInfo>
      </sleepScores>
      <sleepStates>
        <SleepStateInfo>
          <endTime>sample string 2</endTime>
          <startTime>sample string 1</startTime>
          <state>3</state>
        </SleepStateInfo>
        <SleepStateInfo>
          <endTime>sample string 2</endTime>
          <startTime>sample string 1</startTime>
          <state>3</state>
        </SleepStateInfo>
      </sleepStates>
      <sleepTime>sample string 5</sleepTime>
      <startTime>sample string 3</startTime>
      <suggestion>sample string 12</suggestion>
      <uid>sample string 7</uid>
    </ListAllSleepInfosModel>
    <ListAllSleepInfosModel>
      <audioCount>10</audioCount>
      <audioUrl xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </audioUrl>
      <date>sample string 6</date>
      <endTime>sample string 4</endTime>
      <finalScore>sample string 11</finalScore>
      <headImgurl>sample string 9</headImgurl>
      <isLike>13</isLike>
      <isVip>15</isVip>
      <likeCount>14</likeCount>
      <medal xmlns:d4p1="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Help">
        <d4p1:description>sample string 3</d4p1:description>
        <d4p1:getImgUrl>sample string 4</d4p1:getImgUrl>
        <d4p1:headUrl>sample string 9</d4p1:headUrl>
        <d4p1:id>1</d4p1:id>
        <d4p1:isGet>8</d4p1:isGet>
        <d4p1:level>7</d4p1:level>
        <d4p1:name>sample string 2</d4p1:name>
        <d4p1:noGetImgUrl>sample string 5</d4p1:noGetImgUrl>
        <d4p1:type>6</d4p1:type>
      </medal>
      <nickName>sample string 8</nickName>
      <pid>2</pid>
      <sleepId>1</sleepId>
      <sleepScores>
        <SleepScoreInfo>
          <isRight>4</isRight>
          <name>sample string 1</name>
          <state>sample string 3</state>
          <value>sample string 2</value>
        </SleepScoreInfo>
        <SleepScoreInfo>
          <isRight>4</isRight>
          <name>sample string 1</name>
          <state>sample string 3</state>
          <value>sample string 2</value>
        </SleepScoreInfo>
      </sleepScores>
      <sleepStates>
        <SleepStateInfo>
          <endTime>sample string 2</endTime>
          <startTime>sample string 1</startTime>
          <state>3</state>
        </SleepStateInfo>
        <SleepStateInfo>
          <endTime>sample string 2</endTime>
          <startTime>sample string 1</startTime>
          <state>3</state>
        </SleepStateInfo>
      </sleepStates>
      <sleepTime>sample string 5</sleepTime>
      <startTime>sample string 3</startTime>
      <suggestion>sample string 12</suggestion>
      <uid>sample string 7</uid>
    </ListAllSleepInfosModel>
  </rankInfo>
</ListAllSleepInfosRes>