示例#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);
 }