|
MessengerYouLike
|
|
This Method Allows Users to Set the Status (Online,Busy etc)
public BeginSetUserStatus(IMClient.Status Status);
Public Sub BeginSetUserStatus(ByVal Status As IMClient.Status)
|
Parameters |
Description |
|
ByVal Status As IMClient.Status |
This method Allows users to Set there Status Based on IMSDK.IMClient.Status
all Online Friends will be notified of this Status
When Logged in user Status Changes the Event IMSDK.IMClient.OnUserStatusChanged is Fired
When All Online Friends of This user are Notified they Get an event IMSDK.IMClient.OnFriendStatusChanged
[Visual Basic] 'Create a new IMClient Dim MC as new IMSDK.IMClient 'Call the Listen Sub MC.Listen() 'Now Try to login MC.BeginLogin(TxtUsername.Text,TxtPassword.Text) 'if username and password is valid then Private Sub MC_OnLoggedin(ByVal UserObject As IMSDK.User) Handles MC.OnLoggedin Debug.WriteLine("Username logged in : " & MCUser.Username & " , " & MCUser.Password) End Sub 'if username or password is invalid then Private Sub MC_OnUsernameOrPasswordInvalid(ByVal Username As String, ByVal Password As String) Handles MC.OnUsernameOrPasswordInvalid Debug.WriteLine("Username password invalid : " & Username & " , " & Password) End Sub 'Set The User Status MC.BeginSetUserStatus(Cbstatus.SelectedIndex) 'When All Online Friend Notified Then Event is raised Private Sub MC_OnUserStatusChanged() Handles MC.OnUserStatusChanged Debug.WriteLine("On User Status Changed : " & MCUser.Status.ToString) End Sub