public class TLUpdatePrivacy extends TLAbsUpdate
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLUpdatePrivacy()
Instantiates a new TL update privacy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
int |
getClassId()
Getting TL Class identification
|
TLAbsPrivacyKey |
getKey()
Gets key.
|
TLVector<TLAbsPrivacyRule> |
getRules()
Gets rules.
|
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setKey(TLAbsPrivacyKey key)
Sets key.
|
void |
setRules(TLVector<TLAbsPrivacyRule> rules)
Sets rules.
|
String |
toString()
Custom toString method
|
getPts, getPtsCountdeserialize, serialize, serializepublic static final int CLASS_ID
public int getClassId()
TLObjectgetClassId in class TLObjectpublic TLAbsPrivacyKey getKey()
public void setKey(TLAbsPrivacyKey key)
key - the keypublic TLVector<TLAbsPrivacyRule> getRules()
public void setRules(TLVector<TLAbsPrivacyRule> rules)
rules - the rulespublic void serializeBody(OutputStream stream) throws IOException
TLObjectserializeBody in class TLObjectstream - destination streamIOExceptionpublic void deserializeBody(InputStream stream, TLContext context) throws IOException
TLObjectdeserializeBody in class TLObjectstream - source streamcontext - tl contextIOExceptionCopyright © 2017. All rights reserved.