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

org.telegram.api.input.notify.TLInputNotifyPeer Maven / Gradle / Ivy

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

import org.telegram.api.input.peer.TLAbsInputPeer;
import org.telegram.tl.StreamingUtils;
import org.telegram.tl.TLContext;

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

/**
 * The type TL input notify peer.
 */
public class TLInputNotifyPeer extends TLAbsInputNotifyPeer {
    /**
     * The constant CLASS_ID.
     */
    public static final int CLASS_ID = 0xb8bc5b0c;

    private TLAbsInputPeer peer;

    /**
     * Instantiates a new TL input notify peer.
     */
    public TLInputNotifyPeer() {
        super();
    }

    public int getClassId() {
        return CLASS_ID;
    }

    /**
     * Gets peer.
     *
     * @return the peer
     */
    public TLAbsInputPeer getPeer() {
        return this.peer;
    }

    /**
     * Sets peer.
     *
     * @param value the value
     */
    public void setPeer(TLAbsInputPeer value) {
        this.peer = value;
    }

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

    public void deserializeBody(InputStream stream, TLContext context)
            throws IOException {
        this.peer = ((TLAbsInputPeer) StreamingUtils.readTLObject(stream, context));
    }

    public String toString() {
        return "inputNotifyPeer#b8bc5b0c";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy