GET api/messages

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of MessageModel
NameDescriptionTypeAdditional information
MessageID

integer

None.

FromUser

integer

None.

ToUser

integer

None.

Sender

string

None.

ContentMsg

string

None.

IsRead

boolean

None.

DateMessage

date

None.

JalaliDateMessage

string

None.

Message

string

None.

MessageID

integer

None.

ToUser

integer

None.

MessageType

EMessageType

None.

SenderUserID

integer

None.

Title

string

None.

Token

string

None.

NotifType

ENotifType

None.

SenderTitle

string

None.

SenderProfile

string

None.

PersianDate

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "$id": "1",
    "MessageID": 1,
    "FromUser": 2,
    "ToUser": 3,
    "Sender": "sample string 4",
    "ContentMsg": "sample string 5",
    "IsRead": true,
    "DateMessage": "2020-11-25T23:29:20.2351191+03:30",
    "JalaliDateMessage": "sample string 8",
    "Message": "sample string 9",
    "MessageType": 1,
    "SenderUserID": 12,
    "Title": "sample string 13",
    "Token": "sample string 14",
    "NotifType": 0,
    "SenderTitle": "sample string 15",
    "SenderProfile": "sample string 16",
    "PersianDate": ""
  },
  {
    "$ref": "1"
  }
]