@@ -104,7 +104,7 @@ public static IntPtr GetMemberList(int index, long groupUin, bool refresh /*= fa
104104 {
105105 Marshal . StructureToPtr (
106106 ( BotGroupMemberStruct ) members [ i ] ,
107- result . Events + i * Marshal . SizeOf < BotGroupStruct > ( ) ,
107+ result . Events + i * Marshal . SizeOf < BotGroupMemberStruct > ( ) ,
108108 false
109109 ) ;
110110 }
@@ -246,13 +246,15 @@ private static IntPtr GetGroupNotificationsStructPtr(List<BotGroupNotificationBa
246246 false
247247 ) ;
248248 break ;
249+
249250 case BotGroupNotificationType . SetAdmin :
250251 Marshal . StructureToPtr (
251252 ( BotGroupSetAdminNotificationStruct ) ( BotGroupSetAdminNotification ) notifications [ i ] ,
252253 result . Events + i * Marshal . SizeOf < BotGroupSetAdminNotificationStruct > ( ) ,
253254 false
254255 ) ;
255256 break ;
257+
256258 case BotGroupNotificationType . KickOther :
257259 case BotGroupNotificationType . KickSelf :
258260 Marshal . StructureToPtr (
@@ -261,20 +263,23 @@ private static IntPtr GetGroupNotificationsStructPtr(List<BotGroupNotificationBa
261263 false
262264 ) ;
263265 break ;
266+
264267 case BotGroupNotificationType . Exit :
265268 Marshal . StructureToPtr (
266269 ( BotGroupExitNotificationStruct ) ( BotGroupExitNotification ) notifications [ i ] ,
267270 result . Events + i * Marshal . SizeOf < BotGroupExitNotificationStruct > ( ) ,
268271 false
269272 ) ;
270273 break ;
274+
271275 case BotGroupNotificationType . UnsetAdmin :
272276 Marshal . StructureToPtr (
273277 ( BotGroupUnsetAdminNotificationStruct ) ( BotGroupUnsetAdminNotification ) notifications [ i ] ,
274278 result . Events + i * Marshal . SizeOf < BotGroupUnsetAdminNotificationStruct > ( ) ,
275279 false
276280 ) ;
277281 break ;
282+
278283 case BotGroupNotificationType . Invite :
279284 Marshal . StructureToPtr (
280285 ( BotGroupInviteNotificationStruct ) ( BotGroupInviteNotification ) notifications [ i ] ,
0 commit comments