Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }