Package org.drinkless.tdlib
Class TdApi.DisconnectAffiliateProgram
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.ConnectedAffiliateProgram>
org.drinkless.tdlib.TdApi.DisconnectAffiliateProgram
- Enclosing class:
- TdApi
public static class TdApi.DisconnectAffiliateProgram
extends TdApi.Function<TdApi.ConnectedAffiliateProgram>
Disconnects an affiliate program from the given affiliate and immediately deactivates its referral link. Returns updated information about the disconnected affiliate program.
Returns ConnectedAffiliateProgram
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe affiliate to which the affiliate program is connected.static final int
Identifier uniquely determining type of the object.The referral link of the affiliate program. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which disconnects an affiliate program from the given affiliate and immediately deactivates its referral link.DisconnectAffiliateProgram
(TdApi.AffiliateType affiliate, String url) Creates a function, which disconnects an affiliate program from the given affiliate and immediately deactivates its referral link. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
affiliate
The affiliate to which the affiliate program is connected. -
url
The referral link of the affiliate program. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
DisconnectAffiliateProgram
public DisconnectAffiliateProgram()Default constructor for a function, which disconnects an affiliate program from the given affiliate and immediately deactivates its referral link. Returns updated information about the disconnected affiliate program.Returns
ConnectedAffiliateProgram
-
DisconnectAffiliateProgram
Creates a function, which disconnects an affiliate program from the given affiliate and immediately deactivates its referral link. Returns updated information about the disconnected affiliate program.Returns
ConnectedAffiliateProgram
- Parameters:
affiliate
- The affiliate to which the affiliate program is connected.url
- The referral link of the affiliate program.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.Object
Returns an identifier uniquely determining type of the object.- Specified by:
getConstructor
in classTdApi.Object
- Returns:
- this.CONSTRUCTOR
-