models/communities/ChatMessagesQuery.js

import ChatId from './ChatId.js';

export default class ChatMessagesQuery {
    /**
     * Creates a ChatMessagesQuery
     *
     * @constructor ChatMessagesQuery
     * @param {ChatId} chatId - Chat ID
     */
    constructor(chatId) {
        this.chatId = chatId;
    }

    /**
     * Get messages in a chat.
     *
     * @memberof ChatMessagesQuery
     * @param {ChatId} id - Chat ID.
     * @return {ChatMessagesQuery} New query.
     */
    static messagesInChat(id) {
        return new ChatMessagesQuery(id);
    }
}