POST api/mobile/GetAllScheduleData

Request Information

URI Parameters

None.

Body Parameters

ScheduleRequestModel
NameDescriptionTypeAdditional information
M2M_DescriptorID

integer

None.

ParameterNum

integer

None.

IsScheduled

boolean

None.

Token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "M2M_DescriptorID": 1,
  "ParameterNum": 2,
  "IsScheduled": true,
  "Token": "sample string 4"
}

application/xml, text/xml

Sample:
<ScheduleRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nevoton.Rep.Models.RequestModels">
  <Token>sample string 4</Token>
  <IsScheduled>true</IsScheduled>
  <M2M_DescriptorID>1</M2M_DescriptorID>
  <ParameterNum>2</ParameterNum>
</ScheduleRequestModel>

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 'ScheduleRequestModel'.

Response Information

Resource Description

ScheduleCollectionResponseModel
NameDescriptionTypeAdditional information
Schedules

Collection of Schedule

None.

Success

boolean

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Schedules": [
    {
      "M2M_DescriptorId": 1,
      "ParameterNum": 2,
      "IsScheduled": true,
      "Schedule": [
        {
          "DayOfWeek": 1,
          "Value": 2,
          "ScheduledTime": 3
        },
        {
          "DayOfWeek": 1,
          "Value": 2,
          "ScheduledTime": 3
        }
      ],
      "Id": "000000000000000000000000"
    },
    {
      "M2M_DescriptorId": 1,
      "ParameterNum": 2,
      "IsScheduled": true,
      "Schedule": [
        {
          "DayOfWeek": 1,
          "Value": 2,
          "ScheduledTime": 3
        },
        {
          "DayOfWeek": 1,
          "Value": 2,
          "ScheduledTime": 3
        }
      ],
      "Id": "000000000000000000000000"
    }
  ],
  "Success": true,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ScheduleCollectionResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nevoton.Rep.Models.ResponseModels">
  <Message>sample string 2</Message>
  <Success>true</Success>
  <Schedules xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nevoton.Rep.Models">
    <d2p1:Schedule>
      <d2p1:Id xmlns:d4p1="http://schemas.datacontract.org/2004/07/MongoDB.Bson">
        <d4p1:_a>0</d4p1:_a>
        <d4p1:_b>0</d4p1:_b>
        <d4p1:_c>0</d4p1:_c>
      </d2p1:Id>
      <d2p1:IsScheduled>true</d2p1:IsScheduled>
      <d2p1:M2M_DescriptorId>1</d2p1:M2M_DescriptorId>
      <d2p1:ParameterNum>2</d2p1:ParameterNum>
      <d2p1:ScheduleItems>
        <d2p1:ScheduleItem>
          <d2p1:DayOfWeek>1</d2p1:DayOfWeek>
          <d2p1:ScheduledTime>3</d2p1:ScheduledTime>
          <d2p1:Value>2</d2p1:Value>
        </d2p1:ScheduleItem>
        <d2p1:ScheduleItem>
          <d2p1:DayOfWeek>1</d2p1:DayOfWeek>
          <d2p1:ScheduledTime>3</d2p1:ScheduledTime>
          <d2p1:Value>2</d2p1:Value>
        </d2p1:ScheduleItem>
      </d2p1:ScheduleItems>
    </d2p1:Schedule>
    <d2p1:Schedule>
      <d2p1:Id xmlns:d4p1="http://schemas.datacontract.org/2004/07/MongoDB.Bson">
        <d4p1:_a>0</d4p1:_a>
        <d4p1:_b>0</d4p1:_b>
        <d4p1:_c>0</d4p1:_c>
      </d2p1:Id>
      <d2p1:IsScheduled>true</d2p1:IsScheduled>
      <d2p1:M2M_DescriptorId>1</d2p1:M2M_DescriptorId>
      <d2p1:ParameterNum>2</d2p1:ParameterNum>
      <d2p1:ScheduleItems>
        <d2p1:ScheduleItem>
          <d2p1:DayOfWeek>1</d2p1:DayOfWeek>
          <d2p1:ScheduledTime>3</d2p1:ScheduledTime>
          <d2p1:Value>2</d2p1:Value>
        </d2p1:ScheduleItem>
        <d2p1:ScheduleItem>
          <d2p1:DayOfWeek>1</d2p1:DayOfWeek>
          <d2p1:ScheduledTime>3</d2p1:ScheduledTime>
          <d2p1:Value>2</d2p1:Value>
        </d2p1:ScheduleItem>
      </d2p1:ScheduleItems>
    </d2p1:Schedule>
  </Schedules>
</ScheduleCollectionResponseModel>