Ejemplo n.º 1
0
 static TeamAPI()
 {
     TeamEventNotificationDelegate = new TeamEventDelegate(NotifyTeamEvent);
     TeamChangedCallback           = new TeamOperationDelegate(OnTeamChanged);
     QueryAllMyTeamsCompleted      = new QueryMyTeamsDelegate(OnQueryAllMyTeamsCompleted);
     QueryMyTeamsInfoCompleted     = new QueryMyTeamsDetailInfoDelegate(OnQueryMyTeamsInfoCompleted);
     QueryTeamMembersCompleted     = new QueryTeamMembersDelegate(OnQueryTeamMembersInfoCompleted);
     QuerySingleMemberCompleted    = new QuerySingleMemberDelegate(OnQuerySingleMemberCompleted);
     QueryCachedTeamInfoCompleted  = new QueryTeamInfoDelegate(OnQueryCachedTeamInfoCompleted);
     RegTeamEventCb();
 }
Ejemplo n.º 2
0
 public static void RegisterCallbacks()
 {
     _teamEventNotificationDelegate = new TeamEventDelegate(NotifyTeamEvent);
     _teamChangedCallback           = new TeamOperationDelegate(OnTeamChanged);
     _queryAllMyTeamsCompleted      = new QueryMyTeamsDelegate(OnQueryAllMyTeamsCompleted);
     _queryMyTeamsInfoCompleted     = new QueryMyTeamsDetailInfoDelegate(OnQueryMyTeamsInfoCompleted);
     _queryAllMyTeamsInfoCompleted  = new QueryMyTeamsDetailInfoDelegate(OnQueryAllMyTeamsInfoCompleted);
     _queryTeamMembersCompleted     = new QueryTeamMembersDelegate(OnQueryTeamMembersInfoCompleted);
     _querySingleMemberCompleted    = new QuerySingleMemberDelegate(OnQuerySingleMemberCompleted);
     _queryCachedTeamInfoCompleted  = new QueryTeamInfoDelegate(OnQueryCachedTeamInfoCompleted);
     TeamNativeMethods.nim_team_reg_team_event_cb(null, _teamEventNotificationDelegate, IntPtr.Zero);
 }
Ejemplo n.º 3
0
 public static extern void nim_team_query_all_my_teams_async([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string json_extension, QueryMyTeamsDelegate cb, IntPtr user_data);