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

org.telegram.api.decryptedmessage.TLDecryptedMessageActionReadMessages Maven / Gradle / Ivy

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

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

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

/**
 * The type TL decrypted message action read messages.
 */
public class TLDecryptedMessageActionReadMessages extends TLDecryptedMessageAction {
    /**
     * The constant CLASS_ID.
     */
    public static final int CLASS_ID = 0xc4f40be;

    private TLLongVector randomIds = new TLLongVector();

    /**
     * Instantiates a new TL decrypted message action read messages.
     */
    public TLDecryptedMessageActionReadMessages() {
        super();
    }

    public int getClassId() {
        return CLASS_ID;
    }

    /**
     * Gets random ids.
     *
     * @return the random ids
     */
    public TLLongVector getRandomIds() {
        return this.randomIds;
    }

    /**
     * Sets random ids.
     *
     * @param randomIds the random ids
     */
    public void setRandomIds(TLLongVector randomIds) {
        this.randomIds = randomIds;
    }

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

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

    public String toString() {
        return "decryptedMessageActionSetMessageTTL#c4f40be";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy