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

org.telegram.api.cdn.TLCdnConfig Maven / Gradle / Ivy

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

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

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

/**
 * @author Ruben Bermudez
 * @version 1.0
 */
public class TLCdnConfig extends TLObject {
    public static final int CLASS_ID = 0x5725e40a;

    private TLVector publicKeys;

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

    public TLVector getPublicKeys() {
        return publicKeys;
    }

    public void setPublicKeys(TLVector publicKeys) {
        this.publicKeys = publicKeys;
    }

    @Override
    public void serializeBody(OutputStream stream) throws IOException {
        StreamingUtils.writeTLVector(publicKeys, stream);
    }

    @Override
    public void deserializeBody(InputStream stream, TLContext context) throws IOException {
        publicKeys = StreamingUtils.readTLVector(stream, context, TLCdnPublicKey.class);
    }

    @Override
    public String toString() {
        return "cdnConfig#5725e40a";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy