Class ReferralData


  • public class ReferralData
    extends java.lang.Object
    Container for custom data attached to referral url and additional information about referrer (sender) user.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> getLinkParams()
      Gets the referral link parameters.
      java.util.Map<java.lang.String,​java.lang.String> getOriginalLinkParams()
      Gets the original referral link parameters.
      java.lang.String getReferrerChannelId()
      Gets the id of the channel that was used for the invite.
      java.lang.String getReferrerUserId()
      Gets the GetSocial id of the sender user.
      java.lang.String getToken()
      Get unique Smart Invite link token.
      boolean isFirstMatch()
      Method returns true if the app is installed for the first time on this device.
      boolean isFirstMatchLink()
      Method returns true if the app is opened for this link the first time on this device.
      boolean isGuaranteedMatch()
      If GetSocial is able to retrieve extra meta information (e.g.
      boolean isReinstall()
      Method returns true if the app is reinstalled on this device.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • getOriginalLinkParams

        public java.util.Map<java.lang.String,​java.lang.String> getOriginalLinkParams()
        Gets the original referral link parameters.
        Returns:
        Original Referral Link parameters that were sent as part of the invite without Smart Link overrides.
      • getLinkParams

        public java.util.Map<java.lang.String,​java.lang.String> getLinkParams()
        Gets the referral link parameters.
        Returns:
        Custom data that was sent as part of the invite including overrides passed as parameters to the Smart Link.
      • getReferrerUserId

        public java.lang.String getReferrerUserId()
        Gets the GetSocial id of the sender user.
        Returns:
        The GetSocial id of the sender of the smart invite.
      • getReferrerChannelId

        public java.lang.String getReferrerChannelId()
        Gets the id of the channel that was used for the invite.
        Returns:
        the id of the channel that was used for the invite.
      • getToken

        public java.lang.String getToken()
        Get unique Smart Invite link token. There is unique association between token and attached ReferralData.
        Returns:
        Unique Smart Invite link token.
      • isFirstMatch

        public boolean isFirstMatch()
        Method returns true if the app is installed for the first time on this device.
        Returns:
        True if the app is installed on this device for the first time, otherwise false.
      • isGuaranteedMatch

        public boolean isGuaranteedMatch()
        If GetSocial is able to retrieve extra meta information (e.g. from Google Play, Facebook or depplink) we provide 100% guarantee that received data corresponds to the user. In other cases we use fingerprinting to find a best match.
        Returns:
        true if GetSocial can give 100% guarantee that received referral data corresponds to the user, false in case of the best match.
      • isReinstall

        public boolean isReinstall()
        Method returns true if the app is reinstalled on this device.
        Returns:
        True if the app is reinstalled on this device, otherwise false.
      • isFirstMatchLink

        public boolean isFirstMatchLink()
        Method returns true if the app is opened for this link the first time on this device.
        Returns:
        True if the app is opened for this link the first time on this device, otherwise false.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object