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