forked from melod1n/fast-messenger
[wip] chat materials; some experiments with local composition and blur
This commit is contained in:
+7
@@ -2,6 +2,7 @@ package com.meloda.app.fast.network.service.messages
|
||||
|
||||
import com.meloda.app.fast.model.api.data.VkLongPollData
|
||||
import com.meloda.app.fast.model.api.responses.MessagesGetByIdResponse
|
||||
import com.meloda.app.fast.model.api.responses.MessagesGetHistoryAttachmentsResponse
|
||||
import com.meloda.app.fast.model.api.responses.MessagesGetHistoryResponse
|
||||
import com.meloda.app.fast.network.ApiResponse
|
||||
import com.meloda.app.fast.network.RestApiError
|
||||
@@ -42,6 +43,12 @@ interface MessagesService {
|
||||
@FieldMap params: Map<String, String>
|
||||
): ApiResult<ApiResponse<Int>, RestApiError>
|
||||
|
||||
@FormUrlEncoded
|
||||
@POST(MessagesUrls.GET_HISTORY_ATTACHMENTS)
|
||||
suspend fun getHistoryAttachments(
|
||||
@FieldMap params: Map<String, String>
|
||||
): ApiResult<ApiResponse<MessagesGetHistoryAttachmentsResponse>, RestApiError>
|
||||
|
||||
// @FormUrlEncoded
|
||||
// @POST(MessagesUrls.MarkAsImportant)
|
||||
// suspend fun markAsImportant(
|
||||
|
||||
+1
@@ -18,4 +18,5 @@ object MessagesUrls {
|
||||
const val GET_CHAT = "${AppConstants.URL_API}/messages.getChat"
|
||||
const val GET_CONVERSATIONS_MEMBERS = "${AppConstants.URL_API}/messages.getConversationMembers"
|
||||
const val REMOVE_CHAT_USER = "${AppConstants.URL_API}/messages.removeChatUser"
|
||||
const val GET_HISTORY_ATTACHMENTS = "${AppConstants.URL_API}/messages.getHistoryAttachments"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user