Beispiel #1
0
 static UserAPI()
 {
     SyncMutedAndBlacklistCompleted = new SyncMutedAndBlacklistDelegate(OnGetUserRelationshipCompleted);
     UserNameCardChanged            = new UserNameCardChangedDelegate(OnUserNameCardChanged);
     GetUserNameCardCompleted       = new GetUserNameCardDelegate(OnGetUserNameCardCompleted);
     UpdateNameCardCompleted        = new UpdateUserNameCardDelegate(OnNameCardUpdated);
     RegSpecialRelationshipChangedCb();
     RegUserNameCardChangedCb();
 }
Beispiel #2
0
 internal static void RegisterCallbacks()
 {
     _syncMutedAndBlacklistCompleted = OnGetUserRelationshipCompleted;
     _userNameCardChanged            = OnUserNameCardChanged;
     _getUserNameCardCompleted       = OnGetUserNameCardCompleted;
     _updateNameCardCompleted        = OnNameCardUpdated;
     RegSpecialRelationshipChangedCb();
     RegUserNameCardChangedCb();
 }
Beispiel #3
0
 public static extern void nim_user_update_my_user_name_card([MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringMarshaler))] string info_json, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(Utf8StringMarshaler))] string json_extension, UpdateUserNameCardDelegate cb, IntPtr user_data);