Home telegram - account
Post
Cancel

telegram - account

class Account

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// small log post disposable
private let smallLogPostDisposable = MetaDisposable()

// managed contacts disposable
fileprivate let managedContactsDisposable = MetaDisposable()

// managed stick pack disposable
fileprivate let managedStickerPacksDisposable = MetaDisposable()

// become master disposable
private let becomeMasterDisposable = MetaDisposable()

// managed service views disposable
private let managedServiceViewsDisposable = MetaDisposable()

// managed operation disposable
private let managedOperationsDisposable = DisposableSet()

// id
public let id: AccountRecordId

// media reference revalidation context
private(set) var mediaReferenceRevalidationContext: MediaReferenceRevalidationContext!

// transform outgoing message media
var transformOutgoingMessageMedia: TransformOutgoingMessageMedia?

// last small log post timestamp
private var lastSmallLogPostTimestamp: Double?

// auxiliary methods
public let auxiliaryMethods: AccountAuxiliaryMethods

// network arguments
public let networkArguments: NetworkInitializationArguments

// network
public let network: Network

// postbox
public let postbox: Postbox

// should be service task master
public let shouldBeServiceTaskMaster = Promise<AccountServiceTaskMasterMode>()

// keep online presence
public let shouldKeepOnlinePresence = Promise<Bool>()

// autolock report deadline
public let autolockReportDeadline = Promise<Int32?>()

// importable contacts
public let importableContacts = Promise<[DeviceContactNormalizedPhoneNumber: ImportableDeviceContactData]>()

// import running tasks
private let _importantTasksRunning = ValuePromise<AccountRunningImportantTasks>([], ignoreRepeated: true)

// view tracker
public private(set) var viewTracker: AccountViewTracker!

// notification autolock report manager
private var notificationAutolockReportManager: NotificationAutolockReportManager!

// account presence manager
private var accountPresenceManager: AccountPresenceManager!

// input activity manager
private var localInputActivityManager: PeerInputActivityManager!

// peer input activity manager
private var peerInputActivityManager: PeerInputActivityManager!

// preupload manager
public private(set) var messageMediaPreuploadManager: MessageMediaPreuploadManager!

// pending message manager
public private(set) var pendingMessageManager: PendingMessageManager!

// call session manager
public private(set) var callSessionManager: CallSessionManager!

// contact group manager
private(set) var contactGroupManager: ContactGroupSyncManager!

// contact sync manager
private(set) var contactSyncManager: ContactSyncManager!

// state manager
public private(set) var stateManager: AccountStateManager!

// network state
private let networkStateValue = Promise<AccountNetworkState>(.waitingForNetwork)
public var networkState: Signal<AccountNetworkState, NoError> {
    return self.networkStateValue.get()
}

// networkType
private let networkTypeValue = Promise<NetworkType>()
public var networkType: Signal<NetworkType, NoError> {
    return self.networkTypeValue.get()
}

// loggedOut
private let _loggedOut = ValuePromise<Bool>(false, ignoreRepeated: true)
public var loggedOut: Signal<Bool, NoError> {
    return self._loggedOut.get()
}
This post is licensed under CC BY 4.0 by the author.