org.telegram.api.decryptedmessage.TLDecryptedMessageLayer 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.decryptedmessage;
import org.telegram.tl.StreamingUtils;
import org.telegram.tl.TLBytes;
import org.telegram.tl.TLContext;
import org.telegram.tl.TLObject;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* The type TL decrypted message layer.
*/
public class TLDecryptedMessageLayer extends TLObject {
/**
* The constant CLASS_ID.
*/
public static final int CLASS_ID = 0x1be31789;
/**
* The Random bytes.
*/
public TLBytes randomBytes;
/**
* The Layer.
*/
public int layer;
/**
* The In seq no.
*/
public int inSeqNo;
/**
* The Out seq no.
*/
public int outSeqNo;
/**
* The Message.
*/
public TLAbsDecryptedMessage message;
/**
* Instantiates a new TL decrypted message layer.
*/
public TLDecryptedMessageLayer() {
super();
}
@Override
public int getClassId() {
return CLASS_ID;
}
@Override
public void serializeBody(OutputStream stream)
throws IOException {
StreamingUtils.writeTLBytes(this.randomBytes, stream);
StreamingUtils.writeInt(this.layer, stream);
StreamingUtils.writeInt(this.inSeqNo, stream);
StreamingUtils.writeInt(this.outSeqNo, stream);
StreamingUtils.writeTLObject(this.message, stream);
}
@Override
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
this.randomBytes = StreamingUtils.readTLBytes(stream, context);
this.layer = StreamingUtils.readInt(stream);
this.inSeqNo = StreamingUtils.readInt(stream);
this.outSeqNo = StreamingUtils.readInt(stream);
this.message = (TLAbsDecryptedMessage) StreamingUtils.readTLObject(stream, context);
}
@Override
public String toString() {
return "decryptedMessageLayer#1be31789";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy