All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.telegram.api.keyboard.replymarkup.TLReplayKeyboardHide Maven / Gradle / Ivy

There is a newer version: 66.2
Show newest version
package org.telegram.api.keyboard.replymarkup;

import org.telegram.tl.StreamingUtils;
import org.telegram.tl.TLContext;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * @author Ruben Bermudez
 * @version 1.0
 * @brief Hide custom keyboard
 * @date 07 of July of 2015
 */
public class TLReplayKeyboardHide extends TLAbsReplyMarkup {
    public static final int CLASS_ID = 0xa03e5b85;

    private static final int FLAG_UNUSED0 = 0x00000001; // 0
    private static final int FLAG_UNUSED1 = 0x00000002; // 1
    private static final int FLAG_SELECTIVE = 0x00000004; // 2

    private int flags;

    @Override
    public int getClassId() {
        return CLASS_ID;
    }

    public int getFlags() {
        return flags;
    }

    @Override
    public void serializeBody(OutputStream stream) throws IOException {
        StreamingUtils.writeInt(this.flags, stream);
    }

    @Override
    public void deserializeBody(InputStream stream, TLContext context) throws IOException {
        this.flags = StreamingUtils.readInt(stream);
    }

    @Override
    public String toString() {
        return "keyboard#ReplyKeyboardHide#a03e5b85";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy