Preparing search index...
The search index is not available
mtcute - v0.17.2
mtcute
@mtcute/core
utils
CurrentUserService
Class CurrentUserService
Hierarchy (
view full
)
BaseService
CurrentUserService
Index
Constructors
constructor
Properties
_driver
_log
_reader
Map
_writer
Map
Methods
_deserialize
Tl
_serialize
Tl
fetch
get
Cached
store
store
From
update
Constructors
constructor
new
Current
User
Service
(
_kv
,
opts
)
:
CurrentUserService
Parameters
_kv
:
IKeyValueRepository
opts
:
ServiceOptions
Returns
CurrentUserService
Properties
Protected
_driver
_driver
:
IStorageDriver
Protected
_log
_log
:
Logger
Protected
_reader
Map
_reader
Map
:
TlReaderMap
Protected
_writer
Map
_writer
Map
:
TlWriterMap
Methods
Protected
_deserialize
Tl
_deserialize
Tl
(
data
)
:
null
|
TlObject
Parameters
data
:
Uint8Array
Returns
null
|
TlObject
Protected
_serialize
Tl
_serialize
Tl
(
obj
)
:
Uint8Array
Parameters
obj
:
TlObject
Returns
Uint8Array
fetch
fetch
(
)
:
Promise
<
null
|
CurrentUserInfo
>
Returns
Promise
<
null
|
CurrentUserInfo
>
get
Cached
get
Cached
(
safe
?
)
:
null
|
CurrentUserInfo
Parameters
safe
:
boolean
= false
Returns
null
|
CurrentUserInfo
store
store
(
info
)
:
Promise
<
void
>
Parameters
info
:
null
|
CurrentUserInfo
Returns
Promise
<
void
>
store
From
store
From
(
user
)
:
Promise
<
CurrentUserInfo
>
Parameters
user
:
TypeUser
Returns
Promise
<
CurrentUserInfo
>
update
update
(
params
)
:
Promise
<
void
>
Parameters
params
:
{
isPremium
?:
boolean
;
username
?:
string
;
usernames
?:
string
[]
;
}
Optional
is
Premium
?:
boolean
Optional
username
?:
string
Optional
usernames
?:
string
[]
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_driver
_log
_reader
Map
_writer
Map
Methods
_deserialize
Tl
_serialize
Tl
fetch
get
Cached
store
store
From
update
mtcute - v0.17.2
Loading...