org.telegram.mtproto.tl.MTMessagesAllInfo 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.mtproto.tl;
import org.telegram.tl.TLContext;
import org.telegram.tl.TLLongVector;
import org.telegram.tl.TLObject;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import static org.telegram.tl.StreamingUtils.readTLLongVector;
import static org.telegram.tl.StreamingUtils.readTLString;
import static org.telegram.tl.StreamingUtils.writeTLString;
import static org.telegram.tl.StreamingUtils.writeTLVector;
/**
* @author Ruben Bermudez
* @version 2.0
* @brief Voluntary Communication of Status of Messages
* @date 20/02/15
*/
public class MTMessagesAllInfo extends TLObject {
public static final int CLASS_ID = 0x8cc0d131;
private TLLongVector msgIds;
private String info;
public MTMessagesAllInfo() {
}
public MTMessagesAllInfo(TLLongVector msgIds, String info) {
this.msgIds = msgIds;
this.info = info;
}
@Override
public void serializeBody(OutputStream stream) throws IOException {
writeTLVector(this.msgIds, stream);
writeTLString(this.info, stream);
}
@Override
public void deserializeBody(InputStream stream, TLContext context) throws IOException {
this.msgIds = readTLLongVector(stream, context);
this.info = readTLString(stream);
}
public TLLongVector getMsgIds() {
return this.msgIds;
}
public void setMsgIds(TLLongVector msgIds) {
this.msgIds = msgIds;
}
public String getInfo() {
return this.info;
}
public void setInfo(String info) {
this.info = info;
}
@Override
public int getClassId() {
return CLASS_ID;
}
@Override
public String toString() {
return "mtMessagesAllInfo#8cc0d131";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy