| ChatClientGetMessagesAsync Method (String) |
Retrieves all chat messages within particular dialog. It's only possible to read chat messages in dialog if current user id is in occupants_ids field or if dialog's type=1(PUBLIC_GROUP). Server will return dialog's chat messages sorted ascending by date_sent field.
All retrieved chat messages will be marked as read after request.
Namespace: Quickblox.Sdk.Modules.ChatModuleAssembly: Quickblox.Sdk.Xamarin (in Quickblox.Sdk.Xamarin.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic Task<HttpResponse<RetrieveMessagesResponse>> GetMessagesAsync(
string dialogId
)
Public Function GetMessagesAsync (
dialogId As String
) As Task(Of HttpResponse(Of RetrieveMessagesResponse))
public:
Task<HttpResponse<RetrieveMessagesResponse^>^>^ GetMessagesAsync(
String^ dialogId
)
member GetMessagesAsync :
dialogId : string -> Task<HttpResponse<RetrieveMessagesResponse>>
Parameters
- dialogId
- Type: SystemString
Dialog ID
Return Value
Type:
TaskHttpResponseRetrieveMessagesResponse[Missing <returns> documentation for "M:Quickblox.Sdk.Modules.ChatModule.ChatClient.GetMessagesAsync(System.String)"]
See Also