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> rewardFromRewardId(final String teakRewardId);

Return

A Future which will contain the reward that should be granted, or null if there is no associated reward.

Parameters

Name Description

teakRewardId