org.telegram.mtproto.tl.MTMessageCopy 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.readTLObject;
import static org.telegram.tl.StreamingUtils.writeTLObject;
/**
* @author Ruben Bermudez
* @version 2.0
* @brief MTMessageCopy
* @date 21/02/15
*/
public class MTMessageCopy extends TLObject {
public static final int CLASS_ID = 0xe06046b2;
private MTMessage orig_message;
public MTMessageCopy() {
}
public MTMessageCopy(MTMessage orig_message) {
this.orig_message = orig_message;
}
public MTMessage getOrig_message() {
return orig_message;
}
public void setOrig_message(MTMessage orig_message) {
this.orig_message = orig_message;
}
@Override
public void serializeBody(OutputStream stream) throws IOException {
writeTLObject(this.orig_message, stream);
}
@Override
public void deserializeBody(InputStream stream, TLContext context) throws IOException {
this.orig_message = (MTMessage) readTLObject(stream, context);
}
@Override
public int getClassId() {
return CLASS_ID;
}
@Override
public String toString() {
return "MTMessageCopy#e06046b2";
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy