org.telegram.mtproto.tl.MTHttpWait 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.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.readInt;
import static org.telegram.tl.StreamingUtils.writeInt;
/**
* Created with IntelliJ IDEA.
* User: Ruben Bermudez
* Date: 07.11.13
* Time: 8:50
*/
public class MTHttpWait extends TLObject {
public static final int CLASS_ID = 0x9299359f;
private int max_delay;
private int wait_after;
private int max_wait;
public MTHttpWait(int max_delay, int wait_after, int max_wait) {
this.max_delay = max_delay;
this.wait_after = wait_after;
this.max_wait = max_wait;
}
public MTHttpWait() {
}
public int getMax_delay() {
return this.max_delay;
}
public void setMax_delay(int max_delay) {
this.max_delay = max_delay;
}
public int getWait_after() {
return this.wait_after;
}
public void setWait_after(int wait_after) {
this.wait_after = wait_after;
}
public int getMax_wait() {
return this.max_wait;
}
public void setMax_wait(int max_wait) {
this.max_wait = max_wait;
}
@Override
public int getClassId() {
return CLASS_ID;
}
@Override
public void serializeBody(OutputStream stream) throws IOException {
writeInt(this.max_delay, stream);
writeInt(this.wait_after, stream);
writeInt(this.max_wait, stream);
}
@Override
public void deserializeBody(InputStream stream, TLContext context) throws IOException {
this.max_delay = readInt(stream);
this.wait_after = readInt(stream);
this.max_wait = readInt(stream);
}
@Override
public String toString() {
return "MTHttpWait#9299359f";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy