POST api/UserNoties/GetNoticeMessage

获得通知消息

Request Information

URI Parameters

None.

Body Parameters

EmptyInput
NameDescriptionTypeAdditional information
Token

签名

string

None.

SessionID

会话ID

globally unique identifier

None.

TimeStamp

时间戳

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Token": "sample string 1",
  "SessionID": "e0515058-5f84-4f72-b56f-92f70497d49d",
  "TimeStamp": 2
}

application/xml, text/xml

Sample:
<EmptyInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_30edu.WEBAPI.WX.Models">
  <SessionID>e0515058-5f84-4f72-b56f-92f70497d49d</SessionID>
  <TimeStamp>2</TimeStamp>
  <Token>sample string 1</Token>
</EmptyInput>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EmptyInput'.

Response Information

Resource Description

GetNoticeOutput
NameDescriptionTypeAdditional information
NoticeName

通知的名称

string

None.

NoticePhoto

通知的图标

string

None.

NoticeContent

通知内容

string

None.

NoticeTime

通知时间

date

None.

NoticeID

通知ID--对应CLASSID或是其他类型ID

globally unique identifier

None.

NoReadCount

未读数量

globally unique identifier

None.

NoticeType

类型

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "NoticeName": "sample string 1",
  "NoticePhoto": "sample string 2",
  "NoticeContent": "sample string 3",
  "NoticeTime": "2021-08-05T03:11:59.5879262+08:00",
  "NoticeID": "23180c19-92fd-43db-828a-a585c5b10456",
  "NoReadCount": "03a10a01-1b79-4664-a512-793803acba02",
  "NoticeType": 6
}

application/xml, text/xml

Sample:
<UserNotiesController.GetNoticeOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_30edu.WEBAPI.WX.API.Message">
  <NoReadCount>03a10a01-1b79-4664-a512-793803acba02</NoReadCount>
  <NoticeContent>sample string 3</NoticeContent>
  <NoticeID>23180c19-92fd-43db-828a-a585c5b10456</NoticeID>
  <NoticeName>sample string 1</NoticeName>
  <NoticePhoto>sample string 2</NoticePhoto>
  <NoticeTime>2021-08-05T03:11:59.5879262+08:00</NoticeTime>
  <NoticeType>6</NoticeType>
</UserNotiesController.GetNoticeOutput>