Re: Adding contacts and seeing messenger status programatically

  •  08-01-2011, 12:03 PM

    Re: Adding contacts and seeing messenger status programatically

    public AppChatIdentity GetLoggedInUserIdentity() //Gets CuteChat Identity of logged in user

    {

    var userManager =newUserManager();

    var userName = userManager.GetUserInfo(UserID).UserId;

    return new AppChatIdentity(userName,false,"User:"+ userName,HttpContext.Current.Request.UserHostAddress);

    } 

    public void AddUserToContactList(string userLogginID) //Add parameter user logged in user's contact list

    {

    ChatSystem.Instance.GetCurrentPortal().DataManager.AddContact(GetLoggedInUserIdentity(), userLogginID);

    }

View Complete Thread