Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Authorization

Hierarchy

  • VirtualClass<{ current?: boolean; officialApp?: boolean; passwordPending?: boolean; encryptedRequestsDisabled?: boolean; callRequestsDisabled?: boolean; unconfirmed?: boolean; hash: long; deviceModel: string; platform: string; systemVersion: string; apiId: int; appName: string; appVersion: string; dateCreated: int; dateActive: int; ip: string; country: string; region: string }>
    • Authorization

Index

Properties

CONSTRUCTOR_ID: number
SUBCLASS_OF_ID: number
className: string
classType: "constructor" | "request"
originalArgs: { current?: boolean; officialApp?: boolean; passwordPending?: boolean; encryptedRequestsDisabled?: boolean; callRequestsDisabled?: boolean; unconfirmed?: boolean; hash: BigInteger; deviceModel: string; platform: string; systemVersion: string; apiId: number; appName: string; appVersion: string; dateCreated: number; dateActive: number; ip: string; country: string; region: string }

Type declaration

  • Optional current?: boolean
  • Optional officialApp?: boolean
  • Optional passwordPending?: boolean
  • Optional encryptedRequestsDisabled?: boolean
  • Optional callRequestsDisabled?: boolean
  • Optional unconfirmed?: boolean
  • hash: BigInteger
  • deviceModel: string
  • platform: string
  • systemVersion: string
  • apiId: number
  • appName: string
  • appVersion: string
  • dateCreated: number
  • dateActive: number
  • ip: string
  • country: string
  • region: string
CONSTRUCTOR_ID: 2902578717
SUBCLASS_OF_ID: 3373514778
classType: "constructor"
className: "Authorization"
current?: boolean
officialApp?: boolean
passwordPending?: boolean
encryptedRequestsDisabled?: boolean
callRequestsDisabled?: boolean
unconfirmed?: boolean
hash: BigInteger
deviceModel: string
platform: string
systemVersion: string
apiId: number
appName: string
appVersion: string
dateCreated: number
dateActive: number
ip: string
country: string
region: string

Methods

  • serializeBytes(data: string | Buffer): Buffer
  • serializeDate(date: number | Date): Buffer
  • getBytes(): Buffer
  • toJSON(): { current?: boolean; officialApp?: boolean; passwordPending?: boolean; encryptedRequestsDisabled?: boolean; callRequestsDisabled?: boolean; unconfirmed?: boolean; hash: BigInteger; deviceModel: string; platform: string; systemVersion: string; apiId: number; appName: string; appVersion: string; dateCreated: number; dateActive: number; ip: string; country: string; region: string }
  • Returns { current?: boolean; officialApp?: boolean; passwordPending?: boolean; encryptedRequestsDisabled?: boolean; callRequestsDisabled?: boolean; unconfirmed?: boolean; hash: BigInteger; deviceModel: string; platform: string; systemVersion: string; apiId: number; appName: string; appVersion: string; dateCreated: number; dateActive: number; ip: string; country: string; region: string }

    • Optional current?: boolean
    • Optional officialApp?: boolean
    • Optional passwordPending?: boolean
    • Optional encryptedRequestsDisabled?: boolean
    • Optional callRequestsDisabled?: boolean
    • Optional unconfirmed?: boolean
    • hash: BigInteger
    • deviceModel: string
    • platform: string
    • systemVersion: string
    • apiId: number
    • appName: string
    • appVersion: string
    • dateCreated: number
    • dateActive: number
    • ip: string
    • country: string
    • region: string

Constructors

  • new Authorization(args: { current?: boolean; officialApp?: boolean; passwordPending?: boolean; encryptedRequestsDisabled?: boolean; callRequestsDisabled?: boolean; unconfirmed?: boolean; hash: BigInteger; deviceModel: string; platform: string; systemVersion: string; apiId: number; appName: string; appVersion: string; dateCreated: number; dateActive: number; ip: string; country: string; region: string }): Api.Authorization
  • Parameters

    • args: { current?: boolean; officialApp?: boolean; passwordPending?: boolean; encryptedRequestsDisabled?: boolean; callRequestsDisabled?: boolean; unconfirmed?: boolean; hash: BigInteger; deviceModel: string; platform: string; systemVersion: string; apiId: number; appName: string; appVersion: string; dateCreated: number; dateActive: number; ip: string; country: string; region: string }
      • Optional current?: boolean
      • Optional officialApp?: boolean
      • Optional passwordPending?: boolean
      • Optional encryptedRequestsDisabled?: boolean
      • Optional callRequestsDisabled?: boolean
      • Optional unconfirmed?: boolean
      • hash: BigInteger
      • deviceModel: string
      • platform: string
      • systemVersion: string
      • apiId: number
      • appName: string
      • appVersion: string
      • dateCreated: number
      • dateActive: number
      • ip: string
      • country: string
      • region: string

    Returns Api.Authorization

Generated using TypeDoc