org.telegram.api.messages.TLMessagesChatFull Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegramapi Show documentation
Show all versions of telegramapi Show documentation
Java library to create Telegram Clients
package org.telegram.api.messages;
import org.telegram.api.chat.TLAbsChat;
import org.telegram.api.chat.TLAbsChatFull;
import org.telegram.api.user.TLAbsUser;
import org.telegram.tl.StreamingUtils;
import org.telegram.tl.TLContext;
import org.telegram.tl.TLObject;
import org.telegram.tl.TLVector;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* The type TL messages chat full.
*/
public class TLMessagesChatFull extends TLObject {
/**
* The constant CLASS_ID.
*/
public static final int CLASS_ID = 0xe5d7d19c;
private TLAbsChatFull fullChat;
private TLVector chats = new TLVector<>();
private TLVector users = new TLVector<>();
/**
* Instantiates a new TL messages chat full.
*/
public TLMessagesChatFull() {
super();
}
@Override
public int getClassId() {
return CLASS_ID;
}
/**
* Gets full chat.
*
* @return the full chat
*/
public TLAbsChatFull getFullChat() {
return this.fullChat;
}
/**
* Sets full chat.
*
* @param value the value
*/
public void setFullChat(TLAbsChatFull value) {
this.fullChat = value;
}
/**
* Gets chats.
*
* @return the chats
*/
public TLVector getChats() {
return this.chats;
}
/**
* Sets chats.
*
* @param value the value
*/
public void setChats(TLVector value) {
this.chats = value;
}
/**
* Gets users.
*
* @return the users
*/
public TLVector getUsers() {
return this.users;
}
/**
* Sets users.
*
* @param value the value
*/
public void setUsers(TLVector value) {
this.users = value;
}
@Override
public void serializeBody(OutputStream stream)
throws IOException {
StreamingUtils.writeTLObject(this.fullChat, stream);
StreamingUtils.writeTLVector(this.chats, stream);
StreamingUtils.writeTLVector(this.users, stream);
}
@Override
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
this.fullChat = (TLAbsChatFull) StreamingUtils.readTLObject(stream, context);
this.chats = (TLVector) StreamingUtils.readTLVector(stream, context);
this.users = (TLVector) StreamingUtils.readTLVector(stream, context);
}
@Override
public String toString() {
return "messages.chatFull#e5d7d19c";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy