コード例 #1
0
ファイル: YafBuddy.cs プロジェクト: wqshabib/YAFNET
 /// <summary>
 /// Approves a buddy request.
 /// </summary>
 /// <param name="toUserID">
 /// the to user id.
 /// </param>
 /// <param name="mutual">
 /// should the second user be added to current user's buddy list too?
 /// </param>
 /// <returns>
 /// The name of the second user.
 /// </returns>
 public string ApproveRequest(int toUserID, bool mutual)
 {
     this.ClearCache(toUserID);
     return(LegacyDb.buddy_approveRequest(
                toUserID,
                YafContext.Current.PageUserID,
                mutual,
                YafContext.Current.BoardSettings.EnableDisplayName));
 }
コード例 #2
0
ファイル: YafBuddy.cs プロジェクト: aghajani/YAFNET
 /// <summary>
 /// Approves a buddy request.
 /// </summary>
 /// <param name="toUserID">
 /// the to user id.
 /// </param>
 /// <param name="mutual">
 /// should the second user be added to current user's buddy list too?
 /// </param>
 /// <returns>
 /// The name of the second user.
 /// </returns>
 public string ApproveRequest(int toUserID, bool mutual)
 {
     this.ClearCache(toUserID);
     return(LegacyDb.buddy_approveRequest(toUserID, YafContext.Current.PageUserID, mutual));
 }