public class TLRequestAccountSetPrivacy extends TLMethod<TLAccountPrivacyRules>
| Modifier and Type | Field and Description |
|---|---|
static int |
CLASS_ID
The constant CLASS_ID.
|
| Constructor and Description |
|---|
TLRequestAccountSetPrivacy()
Instantiates a new TL request account set privacy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeBody(InputStream stream,
TLContext context)
Deserializing object from stream and context
|
TLAccountPrivacyRules |
deserializeResponse(InputStream stream,
TLContext context) |
int |
getClassId()
Getting TL Class identification
|
TLAbsInputPrivacyKey |
getKey()
Gets key.
|
TLVector<TLAbsInputPrivacyRule> |
getRules()
Gets rules.
|
void |
serializeBody(OutputStream stream)
Serializing object body to stream
|
void |
setKey(TLAbsInputPrivacyKey key)
Sets key.
|
void |
setRules(TLVector<TLAbsInputPrivacyRule> rules)
Sets rules.
|
String |
toString()
Custom toString method
|
castResponse, deserializeResponsedeserialize, serialize, serializepublic static final int CLASS_ID
public TLRequestAccountSetPrivacy()
public int getClassId()
TLObjectgetClassId in class TLObjectpublic TLAccountPrivacyRules deserializeResponse(InputStream stream, TLContext context) throws IOException
deserializeResponse in class TLMethod<TLAccountPrivacyRules>IOExceptionpublic TLAbsInputPrivacyKey getKey()
public void setKey(TLAbsInputPrivacyKey key)
key - the keypublic TLVector<TLAbsInputPrivacyRule> getRules()
public void setRules(TLVector<TLAbsInputPrivacyRule> 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.