POST api/Relax/LearnCount

上报本次学习信息,返回值为用户总的统计信息

Request Information

URI Parameters

None.

Body Parameters

LearnCountReq
NameDescriptionTypeAdditional information
uid

string

None.

type

type为1表示音乐(默认),为2表示呼吸此时不需要moduleId和musicId

integer

None.

moduleId

integer

None.

musicId

integer

None.

duration

integer

None.

time

string

None.

secret

同之前的,产品id为97

string

None.

pid

integer

None.

version

string

None.

language

zn-ch中文,en英文

string

None.

system

string

None.

token

string

None.

timeZone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "uid": "sample string 1",
  "type": 2,
  "moduleId": 3,
  "musicId": 4,
  "duration": 5,
  "time": "sample string 6",
  "secret": "sample string 7",
  "pid": 8,
  "version": "sample string 9",
  "language": "sample string 10",
  "system": "sample string 11",
  "token": "sample string 12",
  "timeZone": "sample string 13"
}

application/xml, text/xml

Sample:
<LearnCountReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Controllers">
  <language xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 10</language>
  <pid xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">8</pid>
  <system xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 11</system>
  <timeZone xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 13</timeZone>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 12</token>
  <version xmlns="http://schemas.datacontract.org/2004/07/WebAppCommonV2.Models">sample string 9</version>
  <duration>5</duration>
  <moduleId>3</moduleId>
  <musicId>4</musicId>
  <secret>sample string 7</secret>
  <time>sample string 6</time>
  <type>2</type>
  <uid>sample string 1</uid>
</LearnCountReq>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LearnCountRes
NameDescriptionTypeAdditional information
allDayCount

总的坚持天数

integer

None.

continueLearnDays

连续学习天数

integer

None.

allLearnCount

总学习课程

integer

None.

allLearnTime

总学习时间

integer

None.

State

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "allDayCount": 1,
  "continueLearnDays": 2,
  "allLearnCount": 3,
  "allLearnTime": 4,
  "State": 5,
  "Message": "sample string 6"
}

application/xml, text/xml

Sample:
<LearnCountRes 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>
  <allDayCount>1</allDayCount>
  <allLearnCount>3</allLearnCount>
  <allLearnTime>4</allLearnTime>
  <continueLearnDays>2</continueLearnDays>
</LearnCountRes>