You are here: MessengerYouLike.IMSDK > IMSDK Reference > IMSDK Namespace > Classes > Groups Class > Groups Classes > Groups.Group Class
MessengerYouLike
Groups.Group Class

This Class Exposes all the properties and methods of the Groups which are added to the IMClient

IMSDK.Groups.Group
C#
public class Group;
Visual Basic
Public Class Group
[Visual Basic]
 
'Create a new IMClient
Dim MC as new IMSDK.IMClient
 
 
 
'Create a new MCUser
 Public MCUser As New IMSDK.User
 
 
 
'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)
 
        MCUser = New IMSDK.User
        MCUser = UserObject
        Msgbox("Username is " & MCUser.Username)
 
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
 
 
 
 
   Function loadlv2() As Boolean
        FriendsTV.Nodes.Clear()
 
 
 
        For i As Integer = 0 To MCUser.Groups.Count - 1
            Dim nd2 As New TreeNode
            With nd2
 
                .ToolTipText = "Online = " & MCUser.Groups.Item(i).TotalOnlineFriends.ToString & _
               "Offline = " & MCUser.Groups.Item(i).TotalOfflineFriends.ToString & _
               "Busy = " & MCUser.Groups.Item(i).TotalBusyFriends.ToString & _
               "unauthorized = " & MCUser.Groups.Item(i).TotalUnAuthFriends
 
                .Text = MCUser.Groups.Item(i).GroupName & " ( " & MCUser.Groups.Item(i).TotalOnlineFriends.ToString & " / " & MCUser.Groups.Item(i).TotalFriends.ToString & " )"
                .Tag = MCUser.Groups.Item(i).UID
            End With
 
            FriendsTV.Nodes.Add(nd2)
 
            Dim fr As IMSDK.Friends = MCUser.Groups.Item(i).Friends
 
            For j As Integer = 0 To fr.Count - 1
                Dim nd3 As New TreeNode
 
                With nd3
                    .Text = fr.Item(j).FriendUsername & " - " & fr.Item(j).FriendStatus.ToString & " - " & fr.Item(j).FriendAuthStatus.ToString & " - " & fr.Item(j).Blocked.ToString & " - " & fr.Item(j).AmIBlocked.ToString
                    .Tag = fr.Item(j).FriendUsername
                End With
 
                FriendsTV.Nodes.Item(FriendsTV.Nodes.IndexOf(nd2)).Nodes.Add(nd3)
 
            Next j
 
        Next i
 
        FriendsTV.ExpandAll()
        FriendsTV.Visible = True
 
    End Function
Topics
Name 
Description 
 
 
Group Properties
 
Name 
Description 
 
This Property show the IMSDK.Friends added under this group  
 
This Property show the name of Current Group  
 
Total Count of Busy friends under this Group  
 
Total Count of friends whose IMSDK.IMClient.AuthorizationStatus is set to IMSDK.IMClient.AuthorizationStatus.TotalFriendRemovedThisContact under this group  
 
Total Count of friends under this Group  
 
Total Count of friends whose IMSDK.IMClient.Status is set to IMSDK.IMClient.Status.Offline under this group  
 
Total Count of friends whose IMSDK.IMClient.Status is set to IMSDK.IMClient.Status.Online under this group  
 
Total Count of friends whose IMSDK.IMClient.AuthorizationStatus is set to IMSDK.IMClient.AuthorizationStatus.Unauthorized under this group  
 
UID 
This Property shows the unique ID for this group
This property is different for each Logged in session means if the user logs out and logs in all groups will be assigned a new GUID  
Name 
Description 
 
 
 
Name 
Description 
 
This Property show the IMSDK.Friends added under this group  
 
This Property show the name of Current Group  
 
Total Count of Busy friends under this Group  
 
Total Count of friends whose IMSDK.IMClient.AuthorizationStatus is set to IMSDK.IMClient.AuthorizationStatus.TotalFriendRemovedThisContact under this group  
 
Total Count of friends under this Group  
 
Total Count of friends whose IMSDK.IMClient.Status is set to IMSDK.IMClient.Status.Offline under this group  
 
Total Count of friends whose IMSDK.IMClient.Status is set to IMSDK.IMClient.Status.Online under this group  
 
Total Count of friends whose IMSDK.IMClient.AuthorizationStatus is set to IMSDK.IMClient.AuthorizationStatus.Unauthorized under this group  
 
UID 
This Property shows the unique ID for this group
This property is different for each Logged in session means if the user logs out and logs in all groups will be assigned a new GUID  
You are here: MessengerYouLike.IMSDK > IMSDK Reference > IMSDK Namespace > Classes > Groups Class > Groups Classes > Groups.Group Class
Copyright (c) 2007. All rights reserved.