You are here: MessengerYouLike.IMSDK > IMSDK Reference > IMSDK Namespace > Classes > IMClient Class > IMClient Methods > IMClient.BeginMoveFriend Method
MessengerYouLike
IMClient.BeginMoveFriend Method

This Method Allows Users to Move a Friend From One Group to another

C#
public BeginMoveFriend(String FriendUsername, String MoveGroupUID);
Visual Basic
Public Sub BeginMoveFriend(ByVal FriendUsername As String, ByVal MoveGroupUID As String)
Parameters 
Description 
ByVal FriendUsername As String 
Username of Contact to Which they Want to Move 
ByVal MoveGroupUID As String 
ID of the Group to Which friend is Moving to 

User can Move any of there Contact from one group to another, they need to Supply the GroupUID of the group to which they want a friend to be moved to 

 

you can set MoveGroupUID to empty string if you do not want to assigned the friend to any 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
 
 
 
 
'Move a friend to some other Group
  MC.BeginMoveFriend(FriendUsername, TxtGroupUID.text)
 
 
 
 
'Then Event
 Private Sub MC_OnMoveFriendCompleted() Handles MC.OnMoveFriendCompleted
     Debug.WriteLine("On Move Friend Completed")
 End Sub

 

Copyright (c) 2007. All rights reserved.