AdaptySDK 4.1.1
Loading...
Searching...
No Matches
AdaptySDK.AdaptySubscriptionOffer Class Referencesealed

A discounted offer on a subscription, and the phases it runs through. More...

Public Member Functions

override string ToString ()
 A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.

Public Attributes

readonly string Identifier
 The offer id the store knows it by. Null for an introductory offer on iOS, which has none.
readonly AdaptySubscriptionOfferType Type
 Which kind of offer this is.
readonly IReadOnlyList< AdaptySubscriptionPhasePhases
 The phases the offer runs through, in order.
readonly IReadOnlyList< string > OfferTags
 Android only. The tags Google Play carries on the offer. Null on iOS.

Package Functions

 AdaptySubscriptionOffer (string identifier, AdaptySubscriptionOfferType type, IList< AdaptySubscriptionPhase > phases, IList< string > offerTags)

Detailed Description

A discounted offer on a subscription, and the phases it runs through.

The contract nests the identifier and the type inside offer_identifier while the model keeps them flat, so this one is built by AdaptySDK.Serialization.AdaptyConverterSubscriptionOffer rather than from member annotations.

Constructor & Destructor Documentation

◆ AdaptySubscriptionOffer()

AdaptySDK.AdaptySubscriptionOffer.AdaptySubscriptionOffer ( string identifier,
AdaptySubscriptionOfferType type,
IList< AdaptySubscriptionPhase > phases,
IList< string > offerTags )
package

Member Function Documentation

◆ ToString()

override string AdaptySDK.AdaptySubscriptionOffer.ToString ( )

A description for logs and the debugger. The format is not part of the contract — read the members rather than parsing it.

Member Data Documentation

◆ Identifier

readonly string AdaptySDK.AdaptySubscriptionOffer.Identifier

The offer id the store knows it by. Null for an introductory offer on iOS, which has none.

◆ OfferTags

readonly IReadOnlyList<string> AdaptySDK.AdaptySubscriptionOffer.OfferTags

Android only. The tags Google Play carries on the offer. Null on iOS.

◆ Phases

readonly IReadOnlyList<AdaptySubscriptionPhase> AdaptySDK.AdaptySubscriptionOffer.Phases

The phases the offer runs through, in order.

◆ Type

readonly AdaptySubscriptionOfferType AdaptySDK.AdaptySubscriptionOffer.Type

Which kind of offer this is.


The documentation for this class was generated from the following file: