Beispiel #1
0
 public static bool IsRewardGiven(Reward reward)
 {
     return(GetTimesGiven(reward) > 0);
 }
Beispiel #2
0
 public static void SetRewardStatus(Reward reward, bool give)
 {
     SetRewardStatus(reward, give, true);
 }
Beispiel #3
0
 public static void SetRewardStatus(Reward reward, bool give, bool notify)
 {
     instance._setTimesGiven(reward, give, notify);
 }
Beispiel #4
0
 public RewardGivenEvent(string rewardId, Object sender) : base(sender)
 {
     this.Reward = Reward.GetReward(rewardId);
 }
Beispiel #5
0
 public RewardGivenEvent(Reward reward, Object sender) : base(sender)
 {
     this.Reward = reward;
 }
Beispiel #6
0
 override protected DateTime _getLastGivenTime(Reward reward)
 {
     return(SoomlaWpCore.data.RewardStorage.GetLastGivenTime(reward.ID));
 }
Beispiel #7
0
 public RewardGivenEvent(Reward reward) : this(reward, null)
 {
 }
Beispiel #8
0
 override protected int _getTimesGiven(Reward reward)
 {
     return(SoomlaWpCore.data.RewardStorage.GetTimesGiven(reward.ID));
 }
Beispiel #9
0
 override protected void _setTimesGiven(Reward reward, bool up, bool notify)
 {
     SoomlaWpCore.data.RewardStorage.SetTimesGiven(reward.ID, up, notify);
 }
Beispiel #10
0
 public static DateTime GetLastGivenTime(Reward reward)
 {
     return(instance._getLastGivenTime(reward));
 }
Beispiel #11
0
 public static int GetTimesGiven(Reward reward)
 {
     return(instance._getTimesGiven(reward));
 }
Beispiel #12
0
 override protected void _setTimesGiven(Reward reward, bool up, bool notify)
 {
     rewardStorage_SetTimesGiven(reward.ID, up, notify);
 }