Beispiel #1
0
 /// <summary>
 /// 批量更新用户的积分
 /// <para>可能抛出的错误:</para>
 /// <para>UserPointOverMaxValueError 积分超出上限</para>
 /// <para>UserPointOverMinValueError 积分超出下限</para>
 /// </summary>
 /// <param name="actionType"></param>
 /// <param name="beforeUpdate"></param>
 /// <returns></returns>
 public bool UpdateUsersPoint(T1 actionType, PointActionManager.TryUpdateUserPointCallback2 beforeUpdate)
 {
     return(PointActionManager.UpdateUserPoint <T1>(Type, actionType, true, beforeUpdate));
 }
Beispiel #2
0
 /// <summary>
 /// 更新用户积分
 /// <para>可能抛出的错误:</para>
 /// <para>UserPointOverMaxValueError 积分超出上限</para>
 /// <para>UserPointOverMinValueError 积分超出下限</para>
 /// </summary>
 /// <param name="userID"></param>
 /// <param name="actionType">动作枚举</param>
 /// <param name="count">更新次数 如:批量删除了3篇日志,这里应该为3</param>
 /// <param name="isNormal">如果为false则取积分的相反值(通常发生在类似帖子由正常变成未审核,此时为false)</param>
 /// <param name="beforeUpdate"></param>
 /// <returns></returns>
 internal bool UpdateUserPoint(int userID, T1 actionType, int count, bool isNormal, int nodeID, PointActionManager.TryUpdateUserPointCallback beforeUpdate)
 {
     return(PointActionManager.UpdateUserPoint <T1>(userID, Type, actionType, count, isNormal, nodeID, beforeUpdate));
 }
Beispiel #3
0
 /// <summary>
 /// 批量更新用户的积分
 /// <para>可能抛出的错误:</para>
 /// <para>UserPointOverMaxValueError 积分超出上限</para>
 /// <para>UserPointOverMinValueError 积分超出下限</para>
 /// </summary>
 /// <param name="userIDs">key:用户ID;value:更新倍数</param>
 /// <param name="actionType"></param>
 /// <param name="isNormal">如果为false则取积分的相反值(通常发生在类似帖子由正常变成未审核,此时为false)</param>
 /// <param name="beforeUpdate"></param>
 /// <returns></returns>
 public bool UpdateUsersPoint(Dictionary <int, int> userIDs, T1 actionType, bool isNormal, int nodeId, PointActionManager.TryUpdateUserPointCallback beforeUpdate)
 {
     return(PointActionManager.UpdateUserPoint <T1>(userIDs, Type, actionType, isNormal, nodeId, beforeUpdate));
 }
Beispiel #4
0
 /// <summary>
 /// 更新用户积分
 /// <para>可能抛出的错误:</para>
 /// <para>UserPointOverMaxValueError 积分超出上限</para>
 /// <para>UserPointOverMinValueError 积分超出下限</para>
 /// </summary>
 /// <param name="userID"></param>
 /// <param name="actionType">动作枚举</param>
 /// <param name="count">更新次数 如:批量删除了3篇日志,这里应该为3</param>
 /// <param name="beforeUpdate"></param>
 /// <returns></returns>
 public bool UpdateUserPoint(int userID, T1 actionType, int count, PointActionManager.TryUpdateUserPointCallback beforeUpdate)
 {
     return(PointActionManager.UpdateUserPoint <T1>(userID, Type, actionType, count, true, 0, beforeUpdate));
 }
Beispiel #5
0
 /// <summary>
 /// 批量更新用户的积分
 /// <para>可能抛出的错误:</para>
 /// <para>UserPointOverMaxValueError 积分超出上限</para>
 /// <para>UserPointOverMinValueError 积分超出下限</para>
 /// </summary>
 /// <param name="userIDs">key:用户ID;value:更新倍数</param>
 /// <param name="actionType"></param>
 /// <param name="beforeUpdate"></param>
 /// <returns></returns>
 public bool UpdateUsersPoint(Dictionary <int, int> userIDs, T1 actionType, PointActionManager.TryUpdateUserPointCallback beforeUpdate)
 {
     return(PointActionManager.UpdateUserPoint <T1>(userIDs, Type, actionType, true, 0, beforeUpdate));
 }