-
public interface SegmentCreated by Aleksei Cherniaev on 14/06/2023.
-
-
Method Summary
Modifier and Type Method Description abstract UnitsetCustomAttributes(Map<String, Object> attributes)Supported value types are bool, int, long, double, string, Json-object. abstract UnitputCustomAttribute(String attribute, Object value)Supported value types are bool, int, long, double, string, Json-object. abstract Map<String, Object>getCustomAttributes()Retrieves all custom attributes. abstract StringgetSegmentUid()Snowflake ID abstract IntegergetAge()abstract UnitsetAge(Integer age)abstract GendergetGender()abstract UnitsetGender(Gender gender)abstract IntegergetLevel()How many levels user has passed (for games mostly) abstract UnitsetLevel(Integer level)How many levels user has passed (for games mostly) abstract DoublegetTotalInAppAmount()Total amount of in-app purchases made by user abstract UnitsetTotalInAppAmount(Double totalInAppAmount)Total amount of in-app purchases made by user abstract BooleangetIsPaying()Indicates whether or not user made at least one in-app purchase abstract UnitsetIsPaying(Boolean isPaying)Indicates whether or not user made at least one in-app purchase -
-
Method Detail
-
setCustomAttributes
abstract Unit setCustomAttributes(Map<String, Object> attributes)
Supported value types are bool, int, long, double, string, Json-object. This method replaces all current values.
-
putCustomAttribute
abstract Unit putCustomAttribute(String attribute, Object value)
Supported value types are bool, int, long, double, string, Json-object. This method add new or update existing attribute without replacing others. If value is null, then the existing attribute will be removed.
-
getCustomAttributes
abstract Map<String, Object> getCustomAttributes()
Retrieves all custom attributes.
-
getSegmentUid
abstract String getSegmentUid()
Snowflake ID
-
getTotalInAppAmount
abstract Double getTotalInAppAmount()
Total amount of in-app purchases made by user
-
setTotalInAppAmount
abstract Unit setTotalInAppAmount(Double totalInAppAmount)
Total amount of in-app purchases made by user
-
getIsPaying
abstract Boolean getIsPaying()
Indicates whether or not user made at least one in-app purchase
-
setIsPaying
abstract Unit setIsPaying(Boolean isPaying)
Indicates whether or not user made at least one in-app purchase
-
-
-
-