/// <summary> /// Adds a buddy request. /// </summary> /// <param name="toUserID"> /// the to user id. /// </param> /// <returns> /// The name of the second user + whether this request is approved or not. (This request /// is approved without the target user's approval if the target user has sent a buddy request /// to current user too or if the current user is already in the target user's buddy list. /// </returns> public string[] AddRequest(int toUserID) { this.ClearCache(toUserID); return(LegacyDb.buddy_addrequest( YafContext.Current.PageUserID, toUserID, YafContext.Current.BoardSettings.EnableDisplayName)); }
/// <summary> /// Adds a buddy request. /// </summary> /// <param name="toUserID"> /// the to user id. /// </param> /// <returns> /// The name of the second user + whether this request is approved or not. (This request /// is approved without the target user's approval if the target user has sent a buddy request /// to current user too or if the current user is already in the target user's buddy list. /// </returns> public string[] AddRequest(int toUserID) { this.ClearCache(toUserID); return(LegacyDb.buddy_addrequest(YafContext.Current.PageUserID, toUserID)); }