|
MessengerYouLike
|
|
This Method Allows Users to accept incoming Friend add Invitations
public BeginFriendAuthorizationAccepted(String FriendUsername, String GroupUID);
Public Sub BeginFriendAuthorizationAccepted(ByVal FriendUsername As String, Optional ByVal GroupUID As String = "-1")
|
Parameters |
Description |
|
ByVal FriendUsername As String |
Username of Friend being added |
|
Optional ByVal GroupUID As String = "-1" |
Group ID To Which This Contact should Be added |
When Any Contact Adds a User then a event IMSDK.IMClient.OnFriendAskingPrimssion is fired this Method Allows user to accept the invitation , user can Also Specify the GroupUID where this Friend Should be added or leave it Empty to Assign to no group
[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 'Accept the user invitation Private Sub MC_OnFriendAskingPrimssion(ByVal FriendUsername As String, ByVal Message As String) Handles MC.OnFriendAskingPrimssion MC.BeginFriendAuthorizationAccepted(FriendUsername) End Sub