Re: 2 questions - how does cutechat know who is online/offline & anyway to override profile image?

  •  11-14-2012, 10:17 AM

    Re: 2 questions - how does cutechat know who is online/offline & anyway to override profile image?

    Hi PeterGregory,

     

    You can use the code below to check the user is online or not.

     

    1. protected override void OnLoad(EventArgs e) 
    2.     CuteChat.ChatPortal portal = CuteChat.AppSystem.Instance.GetCurrentPortal(); 
    3.     lock (portal) 
    4.     { 
    5.         if (portal.IsMessengerStarted) 
    6.         { 
    7.             CuteChat.ChatPlaceUser user = portal.Messenger.FindUser("User:David"); 
    8.             if (user != null
    9.             { 
    10.                 //online  
    11.             } 
    12.             // CuteChat.ChatPlaceUser[] users=portal.Messenger.GetAllUsers(); 
    13.             // foreach(CuteChat.ChatPlaceUser user in users)  
    14.             //  
    15.  
    16.             // //user.Identity.UniqueId  
    17.             // } 
    18.  
    19.         } 
    20.     } 
    21.     base.OnLoad(e); 
     

    Regards,

     

    Ken

View Complete Thread