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

org.telegram.api.message.action.TLMessageActionChatAddUser Maven / Gradle / Ivy

There is a newer version: 66.2
Show newest version
package org.telegram.api.message.action;

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

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

/**
 * The type TL message action chat add user.
 */
public class TLMessageActionChatAddUser extends TLAbsMessageAction {
    /**
     * The constant CLASS_ID.
     */
    public static final int CLASS_ID = 0x488a7337;

    private TLIntVector users;

    /**
     * Instantiates a new TL message action chat add user.
     */
    public TLMessageActionChatAddUser() {
        super();
    }

    public int getClassId() {
        return CLASS_ID;
    }

    public TLIntVector getUsers() {
        return users;
    }

    public void setUsers(TLIntVector users) {
        this.users = users;
    }

    public void serializeBody(OutputStream stream)
            throws IOException {
        StreamingUtils.writeTLVector(this.users, stream);
    }

    public void deserializeBody(InputStream stream, TLContext context)
            throws IOException {
        this.users = StreamingUtils.readTLIntVector(stream, context);
    }

    public String toString() {
        return "messageActionChatAddUser#488a7337";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy