public bool Give() { if (!CanGive()) { SoomlaUtils.LogDebug(TAG, "(Give) Reward is not approved by Schedule. id: " + mID); return(false); } if (giveInner()) { RewardStorage.SetRewardStatus(mID, true); return(true); } return(false); }
public bool Take() { if (!RewardStorage.IsRewardGiven(mID)) { SoomlaUtils.LogDebug(TAG, "Reward not given. id: " + mID); return(false); } if (takeInner()) { RewardStorage.SetRewardStatus(mID, false); return(true); } return(false); }