예제 #1
0
        /// <summary>
        /// Called when all characters, exposed throu the API key, 'skill in training' check has been updated.
        /// </summary>
        /// <param name="apiKey">The API key.</param>
        internal static void OnCharactersSkillInTrainingUpdated(APIKey apiKey)
        {
            if (Closed)
                return;

            Trace(apiKey.ToString());
            CharactersSkillInTrainingUpdated?.ThreadSafeInvoke(null, EventArgs.Empty);
        }
예제 #2
0
        /// <summary>
        /// Called when the API key info updated.
        /// </summary>
        /// <param name="apiKey">The API key.</param>
        internal static void OnAPIKeyInfoUpdated(APIKey apiKey)
        {
            if (Closed)
                return;

            Trace(apiKey.ToString());
            Settings.Save();
            APIKeyInfoUpdated?.ThreadSafeInvoke(null, EventArgs.Empty);
        }
예제 #3
0
        /// <summary>
        /// Called when the character list updated.
        /// </summary>
        /// <param name="apiKey">The API key.</param>
        internal static void OnCharacterListUpdated(APIKey apiKey)
        {
            if (Closed)
                return;

            Trace(apiKey.ToString());
            Settings.Save();
            CharacterListUpdated?.ThreadSafeInvoke(null, new APIKeyInfoChangedEventArgs(apiKey));
        }
예제 #4
0
        /// <summary>
        /// Called when an account status has been updated.
        /// </summary>
        /// <param name="apiKey">The API key.</param>
        internal static void OnAccountStatusUpdated(APIKey apiKey)
        {
            if (Closed)
                return;

            Trace(apiKey.ToString());
            AccountStatusUpdated?.ThreadSafeInvoke(null, EventArgs.Empty);
        }