POST api/MobileNotification/AddNewMobileNotification

Request Information

URI Parameters

None.

Body Parameters

MobileNotificationViewModel
NameDescriptionTypeAdditional information
mobilenotificationmasterid

integer

None.

mobilenotificationmsg

string

None.

senderid

integer

None.

mobilenotificationassignedid

integer

None.

notificationbrokerlist

Collection of MobileNotificationAssignedViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "mobilenotificationmasterid": 1,
  "mobilenotificationmsg": "sample string 2",
  "senderid": 3,
  "mobilenotificationassignedid": 4,
  "notificationbrokerlist": [
    {
      "mobilenotificationassignedid": 1,
      "mobilenotificationmasterid": 2,
      "notifyto": 3,
      "isselected": true,
      "android_device_id": "sample string 5"
    },
    {
      "mobilenotificationassignedid": 1,
      "mobilenotificationmasterid": 2,
      "notifyto": 3,
      "isselected": true,
      "android_device_id": "sample string 5"
    }
  ]
}

application/xml, text/xml

Sample:
<MobileNotificationViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DealsAPI.Models">
  <mobilenotificationassignedid>4</mobilenotificationassignedid>
  <mobilenotificationmasterid>1</mobilenotificationmasterid>
  <mobilenotificationmsg>sample string 2</mobilenotificationmsg>
  <notificationbrokerlist>
    <MobileNotificationAssignedViewModel>
      <android_device_id>sample string 5</android_device_id>
      <isselected>true</isselected>
      <mobilenotificationassignedid>1</mobilenotificationassignedid>
      <mobilenotificationmasterid>2</mobilenotificationmasterid>
      <notifyto>3</notifyto>
    </MobileNotificationAssignedViewModel>
    <MobileNotificationAssignedViewModel>
      <android_device_id>sample string 5</android_device_id>
      <isselected>true</isselected>
      <mobilenotificationassignedid>1</mobilenotificationassignedid>
      <mobilenotificationmasterid>2</mobilenotificationmasterid>
      <notifyto>3</notifyto>
    </MobileNotificationAssignedViewModel>
  </notificationbrokerlist>
  <senderid>3</senderid>
</MobileNotificationViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResultViewModel
NameDescriptionTypeAdditional information
status

boolean

None.

message

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "message": "sample string 2",
  "data": {}
}

application/xml, text/xml

Sample:
<HttpResultViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DealsAPI.Models">
  <data />
  <message>sample string 2</message>
  <status>true</status>
</HttpResultViewModel>