Module tdlight.api

Class TdApi.ConnectedWebsite

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ConnectedWebsite
Enclosing class:
TdApi

public static final class TdApi.ConnectedWebsite extends TdApi.Object
Contains information about one website the current user is logged in with Telegram.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    long
    User identifier of a bot linked with the website.
    The version of a browser used to log in.
    static final int
    Identifier uniquely determining type of the object.
    The domain name of the website.
    long
    Website identifier.
    IP address from which the user was logged in, in human-readable format.
    int
    Point in time (Unix timestamp) when obtained authorization was last used.
    Human-readable description of a country and a region from which the user was logged in, based on the IP address.
    int
    Point in time (Unix timestamp) when the user was logged in.
    Operating system the browser is running on.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Contains information about one website the current user is logged in with Telegram.
    ConnectedWebsite(long id, String domainName, long botUserId, String browser, String platform, int logInDate, int lastActiveDate, String ipAddress, String location)
    Contains information about one website the current user is logged in with Telegram.
    Contains information about one website the current user is logged in with Telegram.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Returns an identifier uniquely determining type of the object.
    int
     
    void
    Serialize the TDLib class

    Methods inherited from class it.tdlight.jni.TdApi.Object

    serialize, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • id

      public long id
      Website identifier.
    • domainName

      public String domainName
      The domain name of the website.
    • botUserId

      public long botUserId
      User identifier of a bot linked with the website.
    • browser

      public String browser
      The version of a browser used to log in.
    • platform

      public String platform
      Operating system the browser is running on.
    • logInDate

      public int logInDate
      Point in time (Unix timestamp) when the user was logged in.
    • lastActiveDate

      public int lastActiveDate
      Point in time (Unix timestamp) when obtained authorization was last used.
    • ipAddress

      public String ipAddress
      IP address from which the user was logged in, in human-readable format.
    • location

      public String location
      Human-readable description of a country and a region from which the user was logged in, based on the IP address.
    • CONSTRUCTOR

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

    • ConnectedWebsite

      public ConnectedWebsite()
      Contains information about one website the current user is logged in with Telegram.
    • ConnectedWebsite

      public ConnectedWebsite(long id, String domainName, long botUserId, String browser, String platform, int logInDate, int lastActiveDate, String ipAddress, String location)
      Contains information about one website the current user is logged in with Telegram.
      Parameters:
      id - Website identifier.
      domainName - The domain name of the website.
      botUserId - User identifier of a bot linked with the website.
      browser - The version of a browser used to log in.
      platform - Operating system the browser is running on.
      logInDate - Point in time (Unix timestamp) when the user was logged in.
      lastActiveDate - Point in time (Unix timestamp) when obtained authorization was last used.
      ipAddress - IP address from which the user was logged in, in human-readable format.
      location - Human-readable description of a country and a region from which the user was logged in, based on the IP address.
    • ConnectedWebsite

      public ConnectedWebsite(DataInput input) throws IOException
      Contains information about one website the current user is logged in with Telegram.
      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