org.telegram.mtproto.tl.MTDestroySessionOk 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.TLObject;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import static org.telegram.tl.StreamingUtils.readLong;
import static org.telegram.tl.StreamingUtils.writeLong;
/**
* @author Ruben Bermudez
* @version 2.0
* @brief MTDestroySessionOk
* @date 21/02/15
*/
public class MTDestroySessionOk extends TLObject {
public static final int CLASS_ID = 0xe22045fc;
private Long session_id;
public MTDestroySessionOk() {
}
public MTDestroySessionOk(Long session_id) {
this.session_id = session_id;
}
@Override
public void serializeBody(OutputStream stream) throws IOException {
writeLong(this.session_id, stream);
}
@Override
public void deserializeBody(InputStream stream, TLContext context) throws IOException {
this.session_id = readLong(stream);
}
public Long getSession_id() {
return this.session_id;
}
public void setSession_id(Long session_id) {
this.session_id = session_id;
}
@Override
public int getClassId() {
return CLASS_ID;
}
@Override
public String toString() {
return "MTDestroySessionOk#e22045fc";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy