Ejemplo n.º 1
0
        /// <summary>
        /// Notifies an account's characters list querying error.
        /// </summary>
        /// <param name="account"></param>
        /// <param name="result"></param>
        internal void NotifyKeyLevelError(Account account, APIResult <SerializableAccountBalanceList> result)
        {
            var notification = new APIErrorNotification(account, result);

            notification.Description = "An error occured while checking the API key level for account " + account.ToString() + ".";
            notification.Behaviour   = NotificationBehaviour.Overwrite;
            notification.Priority    = NotificationPriority.Error;
            Notify(notification);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Notifies an account has no character training.
        /// </summary>
        /// <param name="account"></param>
        internal void NotifyAccountNotInTraining(Account account)
        {
            var notification = new Notification(NotificationCategory.AccountNotInTraining, account);

            notification.Description = "This account has no characters in training: " + account.ToString() + ".";
            notification.Behaviour   = NotificationBehaviour.Overwrite;
            notification.Priority    = NotificationPriority.Warning;
            Notify(notification);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Notifies an account's characters list querying error.
        /// </summary>
        /// <param name="account"></param>
        /// <param name="result"></param>
        internal void NotifyCharacterListError(Account account, APIResult <SerializableCharacterList> result)
        {
            var notification = new APIErrorNotification(account, result);

            notification.Description = "An error occured while querying the character list for account " + account.ToString() + ".";
            notification.Behaviour   = NotificationBehaviour.Overwrite;
            notification.Priority    = NotificationPriority.Error;
            Notify(notification);
        }