org.telegram.api.functions.TLRequestInvokeWithLayer 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
The newest version!
package org.telegram.api.functions;
import org.telegram.tl.StreamingUtils;
import org.telegram.tl.TLContext;
import org.telegram.tl.TLMethod;
import org.telegram.tl.TLObject;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
/**
* The type TL request invoke with layer.
*/
public class TLRequestInvokeWithLayer extends TLMethod {
/**
* The constant CLASS_ID.
*/
public static final int CLASS_ID = 0xda9b0d0d;
private static final int layer = 66;
private TLMethod query;
/**
* Instantiates a new TL request invoke with layer.
*/
public TLRequestInvokeWithLayer() {
super();
}
/**
* Instantiates a new TL request invoke with layer.
*
* @param query the query
*/
public TLRequestInvokeWithLayer(TLMethod query) {
super();
this.query = query;
}
public int getClassId() {
return CLASS_ID;
}
public TLObject deserializeResponse(InputStream stream, TLContext context)
throws IOException {
return this.query.deserializeResponse(stream, context);
}
/**
* Gets query.
*
* @return the query
*/
public TLMethod getQuery() {
return this.query;
}
/**
* Sets query.
*
* @param value the value
*/
public void setQuery(TLMethod value) {
this.query = value;
}
public void serializeBody(OutputStream stream)
throws IOException {
StreamingUtils.writeInt(layer, stream);
StreamingUtils.writeTLMethod(this.query, stream);
}
public void deserializeBody(InputStream stream, TLContext context)
throws IOException {
this.query = StreamingUtils.readTLMethod(stream, context);
}
public String toString() {
return "invokeWithLayer#da9b0d0d";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy