Esempio n. 1
0
 private void OnGroupChanged(GroupChangedNotification e)
 {
     switch (e.Type)
     {
         case GroupChangedNotification.ChangesType.ParticipantsAdded:
             //fired when:
             //XXX added ZZZ to the group (you are part of that group)
             //XXX added you to the group
             //XXX created the group with you
             break;
         case GroupChangedNotification.ChangesType.ParticipantsLeft:
             //fired when:
             //XXX kicked ZZZ
             //XXX kicked you
             break;
         case GroupChangedNotification.ChangesType.NewName:
             break;
         case GroupChangedNotification.ChangesType.NewAvatar:
             break;
         default:
             throw new ArgumentOutOfRangeException();
     }
 }
Esempio n. 2
0
	    private static void GroupChatsServiceOnGroupChanged(GroupChangedNotification e)
        {
            Out.WriteLine("     GroupChangedNotification: {0}, Name:{1}", e.Type, e.Name);
	    }