Module tdlight.api

Class TdApi.InternalLinkTypeProxy

Enclosing class:
TdApi

public static final class TdApi.InternalLinkTypeProxy extends TdApi.InternalLinkType
The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy.
  • Field Details

    • server

      public String server
      Proxy server domain or IP address.
    • port

      public int port
      Proxy server port.
    • type

      public TdApi.ProxyType type
      Type of the proxy.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • InternalLinkTypeProxy

      public InternalLinkTypeProxy()
      The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy.
    • InternalLinkTypeProxy

      public InternalLinkTypeProxy(String server, int port, TdApi.ProxyType type)
      The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy.
      Parameters:
      server - Proxy server domain or IP address.
      port - Proxy server port.
      type - Type of the proxy.
    • InternalLinkTypeProxy

      public InternalLinkTypeProxy(DataInput input) throws IOException
      The link is a link to a proxy. Call addProxy with the given parameters to process the link and add the proxy.
      Parameters:
      input - Serialized input
      Throws:
      IOException - the deserialization failed
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR
    • serialize

      public void serialize(DataOutput output) throws IOException
      Serialize the TDLib class
      Specified by:
      serialize in class TdApi.Object
      Parameters:
      output - output data stream
      Throws:
      IOException - the serialization failed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object