class TeakNotification.Reward

Attributes

Name Type Description

status

int

Status of this reward.

json

JSONObject

Static Attributes

Name Type Description

UNKNOWN

final int

An unknown error occured while processing the reward.

GRANT_REWARD

final int

Valid reward claim, grant the user the reward.

SELF_CLICK

final int

The user has attempted to claim a reward from their own social post.

ALREADY_CLICKED

final int

The user has already been issued this reward.

TOO_MANY_CLICKS

final int

The reward has already been claimed its maximum number of times globally.

EXCEED_MAX_CLICKS_FOR_DAY

final int

The user has already claimed their maximum number of rewards of this type for the day.

EXPIRED

final int

This reward has expired and is no longer valid.

INVALID_POST

final int

Teak does not recognize this reward id.

Methods

toString

String toString();

Static Methods

rewardFromRewardId

Future<Reward> io.teak.sdk.TeakNotification.Reward.rewardFromRewardId(final String teakRewardId);

Return

A Future which resolves to the Reward for the given id. On an unexpected or unparseable response the reward will have Reward#UNKNOWN status rather than being null.

Parameters

Name Description

teakRewardId