Public Classes
ReferralHero Kotlin / Java SDK
There are mainly 2 classes used by the ReferralHero SDK as the Kotlin Data classes for storing and accessing various related properties efficiently, allowing the SDK to easily manage and structure large sets of data.
Also, it is much easier for the developers integrating our SDK to understand data being returned or passed as part of the various methods or callbacks, making the whole integration process simple.
ReferralParams
SubscriberData
1. ReferralParams
This class provides various methods to set several user referral details like name, email, device, etc. This class is used mainly to pass referral details data to the SDK while accessing its public method or while updating the user information.
ReferralParams setter method for Java
NOTE:
The parameters need to be sent in the correct order for our system to automatically generate a referral.
2. Subscriber Data
This class contains various member variables, each specifying some Subscriber related data.
Here is subscriber Data Class Code in Kotlin
3. List Subscriber Data
This class contains various member variables, each specifying some Subscriber related data.
Here is subscriber Data Class Code in Kotlin
Last updated