POST api/SleepSum/MonthSum

Request Information

URI Parameters

None.

Body Parameters

WeekSumReq
NameDescriptionTypeAdditional information
uid

string

None.

page

integer

None.

count

integer

None.

pid

integer

None.

version

string

None.

imei

string

None.

system

string

None.

token

string

None.

language

string

None.

timeZone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "uid": "sample string 1",
  "page": 2,
  "count": 3,
  "pid": 4,
  "version": "sample string 5",
  "imei": "sample string 6",
  "system": "sample string 7",
  "token": "sample string 8",
  "language": "sample string 9",
  "timeZone": "sample string 10"
}

application/xml, text/xml

Sample:
<WeekSumReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <imei>sample string 6</imei>
  <language>sample string 9</language>
  <pid>4</pid>
  <system>sample string 7</system>
  <timeZone>sample string 10</timeZone>
  <token>sample string 8</token>
  <version>sample string 5</version>
  <count>3</count>
  <page>2</page>
  <uid>sample string 1</uid>
</WeekSumReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MonthSumRes
NameDescriptionTypeAdditional information
monthSums

Collection of MonthSumModel

None.

Message

消息

string

None.

Status

状态,默认情况下,1为成功。0为失败。99为权限验证失败。

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "monthSums": [
    {
      "id": 1,
      "before7GetupDays": 2,
      "after12ToBedDays": 3,
      "more20DreamDays": 4,
      "allSleepTime": 5,
      "less6hDays": 6,
      "qualitySleepDays": 7,
      "avgStartTime": "sample string 8",
      "avgSleepTime": 9,
      "avgScore": 10.0,
      "avgEndTime": "sample string 11",
      "longestSleepTime": 12,
      "shortestSleepTime": 13,
      "monthRank": 14,
      "before7GetupDaysCopy": "sample string 15",
      "after12ToBedDaysCopy": "sample string 16",
      "more20DreamDaysCopy": "sample string 17",
      "allSleepTimeCopy": "sample string 18",
      "less6hDaysCopy": "sample string 19",
      "qualitySleepDaysCopy": "sample string 20",
      "avgStartTimeSuggestion": "sample string 21",
      "longestSleepTimeCopy": "sample string 22",
      "shortestSleepTimeCopy": "sample string 23",
      "SleepTimeSuggestion": "sample string 24",
      "uid": "sample string 25",
      "pid": 26,
      "startTimeVsSuggestion": "sample string 27",
      "endTimeVsSuggestion": "sample string 28",
      "longestSleepDate": "sample string 29",
      "shortestSleepDate": "sample string 30",
      "sleepTimes": "sample string 31",
      "startSleepTimes": "sample string 32",
      "endSleepTimes": "sample string 33",
      "lastAvgStartTime": "sample string 34",
      "lastAvgSleepTime": 35,
      "lastAllSleepTime": 36,
      "lastAvgScore": 37.0,
      "lastAvgEndTime": "sample string 38",
      "SleepTimeChartModels": [
        {
          "date": "sample string 1",
          "hours": 2.1,
          "state": 3
        },
        {
          "date": "sample string 1",
          "hours": 2.1,
          "state": 3
        }
      ],
      "StartSleepTimes": [
        "sample string 1",
        "sample string 2"
      ],
      "EndSleepTimes": [
        "sample string 1",
        "sample string 2"
      ]
    },
    {
      "id": 1,
      "before7GetupDays": 2,
      "after12ToBedDays": 3,
      "more20DreamDays": 4,
      "allSleepTime": 5,
      "less6hDays": 6,
      "qualitySleepDays": 7,
      "avgStartTime": "sample string 8",
      "avgSleepTime": 9,
      "avgScore": 10.0,
      "avgEndTime": "sample string 11",
      "longestSleepTime": 12,
      "shortestSleepTime": 13,
      "monthRank": 14,
      "before7GetupDaysCopy": "sample string 15",
      "after12ToBedDaysCopy": "sample string 16",
      "more20DreamDaysCopy": "sample string 17",
      "allSleepTimeCopy": "sample string 18",
      "less6hDaysCopy": "sample string 19",
      "qualitySleepDaysCopy": "sample string 20",
      "avgStartTimeSuggestion": "sample string 21",
      "longestSleepTimeCopy": "sample string 22",
      "shortestSleepTimeCopy": "sample string 23",
      "SleepTimeSuggestion": "sample string 24",
      "uid": "sample string 25",
      "pid": 26,
      "startTimeVsSuggestion": "sample string 27",
      "endTimeVsSuggestion": "sample string 28",
      "longestSleepDate": "sample string 29",
      "shortestSleepDate": "sample string 30",
      "sleepTimes": "sample string 31",
      "startSleepTimes": "sample string 32",
      "endSleepTimes": "sample string 33",
      "lastAvgStartTime": "sample string 34",
      "lastAvgSleepTime": 35,
      "lastAllSleepTime": 36,
      "lastAvgScore": 37.0,
      "lastAvgEndTime": "sample string 38",
      "SleepTimeChartModels": [
        {
          "date": "sample string 1",
          "hours": 2.1,
          "state": 3
        },
        {
          "date": "sample string 1",
          "hours": 2.1,
          "state": 3
        }
      ],
      "StartSleepTimes": [
        "sample string 1",
        "sample string 2"
      ],
      "EndSleepTimes": [
        "sample string 1",
        "sample string 2"
      ]
    }
  ],
  "Message": "sample string 1",
  "Status": 2
}

application/xml, text/xml

Sample:
<MonthSumRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">
  <Message>sample string 1</Message>
  <Status>2</Status>
  <monthSums>
    <MonthSumModel>
      <EndSleepTimes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </EndSleepTimes>
      <SleepTimeChartModels xmlns:d4p1="http://schemas.datacontract.org/2004/07/WeekMonthSum.Help">
        <d4p1:SleepTimeChartModel>
          <d4p1:date>sample string 1</d4p1:date>
          <d4p1:hours>2.1</d4p1:hours>
          <d4p1:state>3</d4p1:state>
        </d4p1:SleepTimeChartModel>
        <d4p1:SleepTimeChartModel>
          <d4p1:date>sample string 1</d4p1:date>
          <d4p1:hours>2.1</d4p1:hours>
          <d4p1:state>3</d4p1:state>
        </d4p1:SleepTimeChartModel>
      </SleepTimeChartModels>
      <SleepTimeSuggestion>sample string 24</SleepTimeSuggestion>
      <StartSleepTimes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </StartSleepTimes>
      <after12ToBedDays>3</after12ToBedDays>
      <after12ToBedDaysCopy>sample string 16</after12ToBedDaysCopy>
      <allSleepTime>5</allSleepTime>
      <allSleepTimeCopy>sample string 18</allSleepTimeCopy>
      <avgEndTime>sample string 11</avgEndTime>
      <avgScore>10</avgScore>
      <avgSleepTime>9</avgSleepTime>
      <avgStartTime>sample string 8</avgStartTime>
      <avgStartTimeSuggestion>sample string 21</avgStartTimeSuggestion>
      <before7GetupDays>2</before7GetupDays>
      <before7GetupDaysCopy>sample string 15</before7GetupDaysCopy>
      <endSleepTimes>sample string 33</endSleepTimes>
      <endTimeVsSuggestion>sample string 28</endTimeVsSuggestion>
      <id>1</id>
      <lastAllSleepTime>36</lastAllSleepTime>
      <lastAvgEndTime>sample string 38</lastAvgEndTime>
      <lastAvgScore>37</lastAvgScore>
      <lastAvgSleepTime>35</lastAvgSleepTime>
      <lastAvgStartTime>sample string 34</lastAvgStartTime>
      <less6hDays>6</less6hDays>
      <less6hDaysCopy>sample string 19</less6hDaysCopy>
      <longestSleepDate>sample string 29</longestSleepDate>
      <longestSleepTime>12</longestSleepTime>
      <longestSleepTimeCopy>sample string 22</longestSleepTimeCopy>
      <monthRank>14</monthRank>
      <more20DreamDays>4</more20DreamDays>
      <more20DreamDaysCopy>sample string 17</more20DreamDaysCopy>
      <pid>26</pid>
      <qualitySleepDays>7</qualitySleepDays>
      <qualitySleepDaysCopy>sample string 20</qualitySleepDaysCopy>
      <shortestSleepDate>sample string 30</shortestSleepDate>
      <shortestSleepTime>13</shortestSleepTime>
      <shortestSleepTimeCopy>sample string 23</shortestSleepTimeCopy>
      <sleepTimes>sample string 31</sleepTimes>
      <startSleepTimes>sample string 32</startSleepTimes>
      <startTimeVsSuggestion>sample string 27</startTimeVsSuggestion>
      <uid>sample string 25</uid>
    </MonthSumModel>
    <MonthSumModel>
      <EndSleepTimes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </EndSleepTimes>
      <SleepTimeChartModels xmlns:d4p1="http://schemas.datacontract.org/2004/07/WeekMonthSum.Help">
        <d4p1:SleepTimeChartModel>
          <d4p1:date>sample string 1</d4p1:date>
          <d4p1:hours>2.1</d4p1:hours>
          <d4p1:state>3</d4p1:state>
        </d4p1:SleepTimeChartModel>
        <d4p1:SleepTimeChartModel>
          <d4p1:date>sample string 1</d4p1:date>
          <d4p1:hours>2.1</d4p1:hours>
          <d4p1:state>3</d4p1:state>
        </d4p1:SleepTimeChartModel>
      </SleepTimeChartModels>
      <SleepTimeSuggestion>sample string 24</SleepTimeSuggestion>
      <StartSleepTimes xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </StartSleepTimes>
      <after12ToBedDays>3</after12ToBedDays>
      <after12ToBedDaysCopy>sample string 16</after12ToBedDaysCopy>
      <allSleepTime>5</allSleepTime>
      <allSleepTimeCopy>sample string 18</allSleepTimeCopy>
      <avgEndTime>sample string 11</avgEndTime>
      <avgScore>10</avgScore>
      <avgSleepTime>9</avgSleepTime>
      <avgStartTime>sample string 8</avgStartTime>
      <avgStartTimeSuggestion>sample string 21</avgStartTimeSuggestion>
      <before7GetupDays>2</before7GetupDays>
      <before7GetupDaysCopy>sample string 15</before7GetupDaysCopy>
      <endSleepTimes>sample string 33</endSleepTimes>
      <endTimeVsSuggestion>sample string 28</endTimeVsSuggestion>
      <id>1</id>
      <lastAllSleepTime>36</lastAllSleepTime>
      <lastAvgEndTime>sample string 38</lastAvgEndTime>
      <lastAvgScore>37</lastAvgScore>
      <lastAvgSleepTime>35</lastAvgSleepTime>
      <lastAvgStartTime>sample string 34</lastAvgStartTime>
      <less6hDays>6</less6hDays>
      <less6hDaysCopy>sample string 19</less6hDaysCopy>
      <longestSleepDate>sample string 29</longestSleepDate>
      <longestSleepTime>12</longestSleepTime>
      <longestSleepTimeCopy>sample string 22</longestSleepTimeCopy>
      <monthRank>14</monthRank>
      <more20DreamDays>4</more20DreamDays>
      <more20DreamDaysCopy>sample string 17</more20DreamDaysCopy>
      <pid>26</pid>
      <qualitySleepDays>7</qualitySleepDays>
      <qualitySleepDaysCopy>sample string 20</qualitySleepDaysCopy>
      <shortestSleepDate>sample string 30</shortestSleepDate>
      <shortestSleepTime>13</shortestSleepTime>
      <shortestSleepTimeCopy>sample string 23</shortestSleepTimeCopy>
      <sleepTimes>sample string 31</sleepTimes>
      <startSleepTimes>sample string 32</startSleepTimes>
      <startTimeVsSuggestion>sample string 27</startTimeVsSuggestion>
      <uid>sample string 25</uid>
    </MonthSumModel>
  </monthSums>
</MonthSumRes>