示例#1
0
        public static string PendingStatus(string username)
        {
            BLL.Users           api   = new BLL.Users();
            List <DAL.VwFriend> FList = api.ListPending(username);
            string rme = "";

            if (FList.Count > 0)
            {
                Presence p;
                for (int i = 0; i < FList.Count; i++)
                {
                    p      = new Presence();
                    p.Type = PresenceType.subscribe;
                    p.From = new agsXMPP.Jid(FList[i].FriendUserName + "@" + Config.AppSetting.domain);
                    p.To   = new agsXMPP.Jid(username + "@" + Config.AppSetting.domain);
                    rme   += p.ToString();
                }
            }
            return(rme);
        }