package server.logic.ws_protocol.JSON.handlers.channels.entyties;

import server.logic.ws_protocol.JSON.entyties.Net_Response;

import java.util.ArrayList;
import java.util.List;

public class Net_ListGroupChats200_Response extends Net_Response {
    private String login;
    private List<Row> chats = new ArrayList<>();

    public String getLogin() { return login; }
    public void setLogin(String login) { this.login = login; }

    public List<Row> getChats() { return chats; }
    public void setChats(List<Row> chats) { this.chats = chats; }

    public static class Row {
        private String ownerLogin;
        private String ownerBlockchainName;
        private int channelRootBlockNumber;
        private String channelRootBlockHash;
        private String channelName;
        private String chatTitle;
        private int membersCount;
        private long updatedAtMs;

        public String getOwnerLogin() { return ownerLogin; }
        public void setOwnerLogin(String ownerLogin) { this.ownerLogin = ownerLogin; }
        public String getOwnerBlockchainName() { return ownerBlockchainName; }
        public void setOwnerBlockchainName(String ownerBlockchainName) { this.ownerBlockchainName = ownerBlockchainName; }
        public int getChannelRootBlockNumber() { return channelRootBlockNumber; }
        public void setChannelRootBlockNumber(int channelRootBlockNumber) { this.channelRootBlockNumber = channelRootBlockNumber; }
        public String getChannelRootBlockHash() { return channelRootBlockHash; }
        public void setChannelRootBlockHash(String channelRootBlockHash) { this.channelRootBlockHash = channelRootBlockHash; }
        public String getChannelName() { return channelName; }
        public void setChannelName(String channelName) { this.channelName = channelName; }
        public String getChatTitle() { return chatTitle; }
        public void setChatTitle(String chatTitle) { this.chatTitle = chatTitle; }
        public int getMembersCount() { return membersCount; }
        public void setMembersCount(int membersCount) { this.membersCount = membersCount; }
        public long getUpdatedAtMs() { return updatedAtMs; }
        public void setUpdatedAtMs(long updatedAtMs) { this.updatedAtMs = updatedAtMs; }
    }
}

