// Path: src/skype/exceptions/CommandException.java
// public class CommandException extends Exception {
// 
// 	/** The Constant serialVersionUID. */
// 	private static final long serialVersionUID = 7581690869513491833L;
// 
// 	/**
// 	 * Instantiates a new command exception.
// 	 */
// 	public CommandException() {
// 	}
// 
// 	/**
// 	 * Instantiates a new command exception.
// 	 *
// 	 * @param message
// 	 *            the message
// 	 */
// 	public CommandException(String message) {
// 		super(message);
// 	}
// 
// 	/**
// 	 * Instantiates a new command exception.
// 	 *
// 	 * @param cause
// 	 *            the cause
// 	 */
// 	public CommandException(Throwable cause) {
// 		super(cause);
// 
// 	}
// 
// 	/**
// 	 * Instantiates a new command exception.
// 	 *
// 	 * @param message
// 	 *            the message
// 	 * @param cause
// 	 *            the cause
// 	 */
// 	public CommandException(String message, Throwable cause) {
// 		super(message, cause);
// 
// 	}
// 
// 	/**
// 	 * Instantiates a new command exception.
// 	 *
// 	 * @param message
// 	 *            the message
// 	 * @param cause
// 	 *            the cause
// 	 * @param enableSuppression
// 	 *            the enable suppression
// 	 * @param writableStackTrace
// 	 *            the writable stack trace
// 	 */
// 	public CommandException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
// 		super(message, cause, enableSuppression, writableStackTrace);
// 
// 	}
// 
// }
// 
// Path: src/skype/exceptions/NullOutputChatException.java
// public class NullOutputChatException extends CommandException {
// 
// 	/** The Constant serialVersionUID. */
// 	private static final long serialVersionUID = -2502967741322212915L;
// 
// 	/**
// 	 * Instantiates a new null output chat exception.
// 	 */
// 	public NullOutputChatException() {
// 
// 	}
// 
// 	/**
// 	 * Instantiates a new null output chat exception.
// 	 *
// 	 * @param message
// 	 *            the message
// 	 */
// 	public NullOutputChatException(String message) {
// 		super(message);
// 	}
// 
// 	/**
// 	 * Instantiates a new null output chat exception.
// 	 *
// 	 * @param cause
// 	 *            the cause
// 	 */
// 	public NullOutputChatException(Throwable cause) {
// 		super(cause);
// 	}
// 
// 	/**
// 	 * Instantiates a new null output chat exception.
// 	 *
// 	 * @param message
// 	 *            the message
// 	 * @param cause
// 	 *            the cause
// 	 */
// 	public NullOutputChatException(String message, Throwable cause) {
// 		super(message, cause);
// 	}
// 
// 	/**
// 	 * Instantiates a new null output chat exception.
// 	 *
// 	 * @param message
// 	 *            the message
// 	 * @param cause
// 	 *            the cause
// 	 * @param enableSuppression
// 	 *            the enable suppression
// 	 * @param writableStackTrace
// 	 *            the writable stack trace
// 	 */
// 	public NullOutputChatException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
// 		super(message, cause, enableSuppression, writableStackTrace);
// 	}
// 
// }
// 
// Path: src/skype/gui/popups/WarningPopup.java
// public class WarningPopup {
// 
// 	private final JOptionPane optionPane;
// 
// 	private final JDialog dialog = new JDialog(getMainFrame(), "Warning");
// 
// 	public WarningPopup(String message) {
// 		optionPane = new JOptionPane(message, JOptionPane.WARNING_MESSAGE);
// 
// 		dialog.setAlwaysOnTop(true);
// 		dialog.setLocationRelativeTo(getMainFrame());
// 		dialog.setContentPane(optionPane);
// 		dialog.pack();
// 		dialog.setVisible(true);
// 
// 		optionPane.addPropertyChangeListener(new PropertyChangeListener() {
// 			public void propertyChange(PropertyChangeEvent e) {
// 				String prop = e.getPropertyName();
// 
// 				if (dialog.isVisible() && (e.getSource() == optionPane) && (prop.equals(JOptionPane.VALUE_PROPERTY))) {
// 					dialog.setVisible(false);
// 					dialog.dispose();
// 				}
// 			}
// 		});
// 	}
// 
// }


import java.util.HashSet;
import com.skype.Chat;
import com.skype.SkypeException;
import skype.exceptions.CommandException;
import skype.exceptions.NullOutputChatException;
import skype.gui.popups.WarningPopup;
/*
 *    Copyright [2016] [Thanasis Argyroudis]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */
package skype.commands;




/**
 * The Class CommandShowAdmins. Shows all registered admins.
 *
 * @author Thanasis Argyroudis
 * @since 1.0
 */
public class CommandShowAdmins extends Command {

	private Chat outputChat = null;

	private HashSet<String> currentAdmins = null;

	public CommandShowAdmins() {
		super("showadmins", "Prints all bot's admins.", "Syntax: !showadmins");
	}

	public CommandShowAdmins(CommandData data) {
		this();
// Path: src/skype/exceptions/CommandException.java
// public class CommandException extends Exception {
// 
// 	/** The Constant serialVersionUID. */
// 	private static final long serialVersionUID = 7581690869513491833L;
// 
// 	/**
// 	 * Instantiates a new command exception.
// 	 */
// 	public CommandException() {
// 	}
// 
// 	/**
// 	 * Instantiates a new command exception.
// 	 *
// 	 * @param message
// 	 *            the message
// 	 */
// 	public CommandException(String message) {
// 		super(message);
// 	}
// 
// 	/**
// 	 * Instantiates a new command exception.
// 	 *
// 	 * @param cause
// 	 *            the cause
// 	 */
// 	public CommandException(Throwable cause) {
// 		super(cause);
// 
// 	}
// 
// 	/**
// 	 * Instantiates a new command exception.
// 	 *
// 	 * @param message
// 	 *            the message
// 	 * @param cause
// 	 *            the cause
// 	 */
// 	public CommandException(String message, Throwable cause) {
// 		super(message, cause);
// 
// 	}
// 
// 	/**
// 	 * Instantiates a new command exception.
// 	 *
// 	 * @param message
// 	 *            the message
// 	 * @param cause
// 	 *            the cause
// 	 * @param enableSuppression
// 	 *            the enable suppression
// 	 * @param writableStackTrace
// 	 *            the writable stack trace
// 	 */
// 	public CommandException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
// 		super(message, cause, enableSuppression, writableStackTrace);
// 
// 	}
// 
// }
// 
// Path: src/skype/exceptions/NullOutputChatException.java
// public class NullOutputChatException extends CommandException {
// 
// 	/** The Constant serialVersionUID. */
// 	private static final long serialVersionUID = -2502967741322212915L;
// 
// 	/**
// 	 * Instantiates a new null output chat exception.
// 	 */
// 	public NullOutputChatException() {
// 
// 	}
// 
// 	/**
// 	 * Instantiates a new null output chat exception.
// 	 *
// 	 * @param message
// 	 *            the message
// 	 */
// 	public NullOutputChatException(String message) {
// 		super(message);
// 	}
// 
// 	/**
// 	 * Instantiates a new null output chat exception.
// 	 *
// 	 * @param cause
// 	 *            the cause
// 	 */
// 	public NullOutputChatException(Throwable cause) {
// 		super(cause);
// 	}
// 
// 	/**
// 	 * Instantiates a new null output chat exception.
// 	 *
// 	 * @param message
// 	 *            the message
// 	 * @param cause
// 	 *            the cause
// 	 */
// 	public NullOutputChatException(String message, Throwable cause) {
// 		super(message, cause);
// 	}
// 
// 	/**
// 	 * Instantiates a new null output chat exception.
// 	 *
// 	 * @param message
// 	 *            the message
// 	 * @param cause
// 	 *            the cause
// 	 * @param enableSuppression
// 	 *            the enable suppression
// 	 * @param writableStackTrace
// 	 *            the writable stack trace
// 	 */
// 	public NullOutputChatException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
// 		super(message, cause, enableSuppression, writableStackTrace);
// 	}
// 
// }
// 
// Path: src/skype/gui/popups/WarningPopup.java
// public class WarningPopup {
// 
// 	private final JOptionPane optionPane;
// 
// 	private final JDialog dialog = new JDialog(getMainFrame(), "Warning");
// 
// 	public WarningPopup(String message) {
// 		optionPane = new JOptionPane(message, JOptionPane.WARNING_MESSAGE);
// 
// 		dialog.setAlwaysOnTop(true);
// 		dialog.setLocationRelativeTo(getMainFrame());
// 		dialog.setContentPane(optionPane);
// 		dialog.pack();
// 		dialog.setVisible(true);
// 
// 		optionPane.addPropertyChangeListener(new PropertyChangeListener() {
// 			public void propertyChange(PropertyChangeEvent e) {
// 				String prop = e.getPropertyName();
// 
// 				if (dialog.isVisible() && (e.getSource() == optionPane) && (prop.equals(JOptionPane.VALUE_PROPERTY))) {
// 					dialog.setVisible(false);
// 					dialog.dispose();
// 				}
// 			}
// 		});
// 	}
// 
// }


// Path: src/skype/commands/CommandShowAdmins.java
import java.util.HashSet;
import com.skype.Chat;
import com.skype.SkypeException;
import skype.exceptions.CommandException;
import skype.exceptions.NullOutputChatException;
import skype.gui.popups.WarningPopup;

/*
 *    Copyright [2016] [Thanasis Argyroudis]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */
package skype.commands;




/**
 * The Class CommandShowAdmins. Shows all registered admins.
 *
 * @author Thanasis Argyroudis
 * @since 1.0
 */
public class CommandShowAdmins extends Command {

	private Chat outputChat = null;

	private HashSet<String> currentAdmins = null;

	public CommandShowAdmins() {
		super("showadmins", "Prints all bot's admins.", "Syntax: !showadmins");
	}

	public CommandShowAdmins(CommandData data) {
		this();
		initializeCommand(data);