public static bool IsRewardGiven(Reward reward) { return(GetTimesGiven(reward) > 0); }
public static void SetRewardStatus(Reward reward, bool give) { SetRewardStatus(reward, give, true); }
public static void SetRewardStatus(Reward reward, bool give, bool notify) { instance._setTimesGiven(reward, give, notify); }
public RewardGivenEvent(string rewardId, Object sender) : base(sender) { this.Reward = Reward.GetReward(rewardId); }
public RewardGivenEvent(Reward reward, Object sender) : base(sender) { this.Reward = reward; }
override protected DateTime _getLastGivenTime(Reward reward) { return(SoomlaWpCore.data.RewardStorage.GetLastGivenTime(reward.ID)); }
public RewardGivenEvent(Reward reward) : this(reward, null) { }
override protected int _getTimesGiven(Reward reward) { return(SoomlaWpCore.data.RewardStorage.GetTimesGiven(reward.ID)); }
override protected void _setTimesGiven(Reward reward, bool up, bool notify) { SoomlaWpCore.data.RewardStorage.SetTimesGiven(reward.ID, up, notify); }
public static DateTime GetLastGivenTime(Reward reward) { return(instance._getLastGivenTime(reward)); }
public static int GetTimesGiven(Reward reward) { return(instance._getTimesGiven(reward)); }
override protected void _setTimesGiven(Reward reward, bool up, bool notify) { rewardStorage_SetTimesGiven(reward.ID, up, notify); }