GET api/Messages/GetAllChannels?un_read={un_read}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| un_read | boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
Collection of MessageChannelModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| title | string |
None. |
|
| body | string |
None. |
|
| order_id | string |
None. |
|
| project_id | integer |
None. |
|
| send_date | date |
None. |
|
| user_name | string |
None. |
|
| un_read | boolean |
None. |
|
| messages | Collection of MessageModel |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"id": 1,
"title": "sample string 2",
"body": "sample string 3",
"order_id": "sample string 4",
"project_id": 5,
"send_date": "2025-10-24T11:48:58.7236+00:00",
"user_name": "sample string 7",
"un_read": true,
"messages": [
{
"id": 1,
"channel_id": 2,
"body": "sample string 3",
"sender": "sample string 4",
"receiver": "sample string 5",
"sent_date": "2025-10-24T11:48:58.7236+00:00",
"un_read": true,
"sender_image": "sample string 8"
},
{
"id": 1,
"channel_id": 2,
"body": "sample string 3",
"sender": "sample string 4",
"receiver": "sample string 5",
"sent_date": "2025-10-24T11:48:58.7236+00:00",
"un_read": true,
"sender_image": "sample string 8"
}
]
},
{
"id": 1,
"title": "sample string 2",
"body": "sample string 3",
"order_id": "sample string 4",
"project_id": 5,
"send_date": "2025-10-24T11:48:58.7236+00:00",
"user_name": "sample string 7",
"un_read": true,
"messages": [
{
"id": 1,
"channel_id": 2,
"body": "sample string 3",
"sender": "sample string 4",
"receiver": "sample string 5",
"sent_date": "2025-10-24T11:48:58.7236+00:00",
"un_read": true,
"sender_image": "sample string 8"
},
{
"id": 1,
"channel_id": 2,
"body": "sample string 3",
"sender": "sample string 4",
"receiver": "sample string 5",
"sent_date": "2025-10-24T11:48:58.7236+00:00",
"un_read": true,
"sender_image": "sample string 8"
}
]
}
]
application/xml, text/xml
Sample:
<ArrayOfMessageChannelModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
<MessageChannelModel>
<body>sample string 3</body>
<id>1</id>
<messages>
<MessageModel>
<body>sample string 3</body>
<channel_id>2</channel_id>
<id>1</id>
<receiver>sample string 5</receiver>
<sender>sample string 4</sender>
<sender_image>sample string 8</sender_image>
<sent_date>2025-10-24T11:48:58.7236+00:00</sent_date>
<un_read>true</un_read>
</MessageModel>
<MessageModel>
<body>sample string 3</body>
<channel_id>2</channel_id>
<id>1</id>
<receiver>sample string 5</receiver>
<sender>sample string 4</sender>
<sender_image>sample string 8</sender_image>
<sent_date>2025-10-24T11:48:58.7236+00:00</sent_date>
<un_read>true</un_read>
</MessageModel>
</messages>
<order_id>sample string 4</order_id>
<project_id>5</project_id>
<send_date>2025-10-24T11:48:58.7236+00:00</send_date>
<title>sample string 2</title>
<un_read>true</un_read>
<user_name>sample string 7</user_name>
</MessageChannelModel>
<MessageChannelModel>
<body>sample string 3</body>
<id>1</id>
<messages>
<MessageModel>
<body>sample string 3</body>
<channel_id>2</channel_id>
<id>1</id>
<receiver>sample string 5</receiver>
<sender>sample string 4</sender>
<sender_image>sample string 8</sender_image>
<sent_date>2025-10-24T11:48:58.7236+00:00</sent_date>
<un_read>true</un_read>
</MessageModel>
<MessageModel>
<body>sample string 3</body>
<channel_id>2</channel_id>
<id>1</id>
<receiver>sample string 5</receiver>
<sender>sample string 4</sender>
<sender_image>sample string 8</sender_image>
<sent_date>2025-10-24T11:48:58.7236+00:00</sent_date>
<un_read>true</un_read>
</MessageModel>
</messages>
<order_id>sample string 4</order_id>
<project_id>5</project_id>
<send_date>2025-10-24T11:48:58.7236+00:00</send_date>
<title>sample string 2</title>
<un_read>true</un_read>
<user_name>sample string 7</user_name>
</MessageChannelModel>
</ArrayOfMessageChannelModel>