Package rsb.plugin

Class AccountManager

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class AccountManager extends JDialog implements ActionListener
Author:
GigiaJ
See Also:
  • Constructor Details

    • AccountManager

      public AccountManager()
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • showGUI

      public void showGUI()
      Creates and displays the main GUI This GUI has the list and the main * buttons
    • getAccountNames

      public static String[] getAccountNames()
      Access the list of names for loaded accounts
      Returns:
      Array of the names.
    • getInstance

      public static AccountManager getInstance()
    • getPassword

      public static String getPassword(String name)
      Access the account password of the given string
      Parameters:
      name - The name of the account
      Returns:
      Password or an empty string
    • getPin

      public static String getPin(String name)
      Access the account pin of the given string
      Parameters:
      name - The name of the account
      Returns:
      Pin or an empty string
    • getReward

      public static String getReward(String name)
      Access the account desired reward of the given string
      Parameters:
      name - The name of the account
      Returns:
      The desired reward
    • isMember

      public static boolean isMember(String name)
      Access the account state of the given string
      Parameters:
      name - Name of the account
      Returns:
      true if the account is member, false if it isn't
    • isTakingBreaks

      public static boolean isTakingBreaks(String name)
      Access the account state of the given string
      Parameters:
      name - Name of the account
      Returns:
      true if the account is member, false if it isn't