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