Sha256: 27c7c917e13d877dc0accbc35e4b4f12ebb1cc164fd2488db231c1b39c20cc00

Contents?: true

Size: 778 Bytes

Versions: 2

Compression:

Stored size: 778 Bytes

Contents

module TD::Types
  # Contains information about a proxy server.
  #
  # @attr id [Integer] Unique identifier of the proxy.
  # @attr server [TD::Types::String] Proxy server IP address.
  # @attr port [Integer] Proxy server port.
  # @attr last_used_date [Integer] Point in time (Unix timestamp) when the proxy was last used; 0 if never.
  # @attr is_enabled [Boolean] True, if the proxy is enabled now.
  # @attr type [TD::Types::ProxyType] Type of the proxy.
  class Proxy < Base
    attribute :id, TD::Types::Coercible::Integer
    attribute :server, TD::Types::String
    attribute :port, TD::Types::Coercible::Integer
    attribute :last_used_date, TD::Types::Coercible::Integer
    attribute :is_enabled, TD::Types::Bool
    attribute :type, TD::Types::ProxyType
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tdlib-schema-1.7.0.3 lib/tdlib/types/proxy.rb
tdlib-schema-1.7.0.2 lib/tdlib/types/proxy.rb