当前位置: 首页>>代码示例>>Java>>正文


Java SkypeException.getMessage方法代码示例

本文整理汇总了Java中com.skype.SkypeException.getMessage方法的典型用法代码示例。如果您正苦于以下问题:Java SkypeException.getMessage方法的具体用法?Java SkypeException.getMessage怎么用?Java SkypeException.getMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.skype.SkypeException的用法示例。


在下文中一共展示了SkypeException.getMessage方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: execute

import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws CommandException {
	if (outputChat == null)
		throw new NullOutputChatException("Empty output chat.");

	try {

		if (id.equals("")) {
			outputChat.send(getSyntax());
			return;
		}

		if (currentAdmins.add(id))
			outputChat.send("Admin successfully added");
		else
			outputChat.send("All ready exists.");
	} catch (SkypeException e) {
		new WarningPopup(e.getMessage());
	}

}
 
开发者ID:Cuniq,项目名称:SkypeBot,代码行数:22,代码来源:CommandAddAdmin.java

示例2: execute

import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws NullOutputChatException {

	if (outputChat == null)
		throw new NullOutputChatException("Empty output chat.");

	try {

		if (userInfo != null)
			outputChat.send(printInfo());
		else
			outputChat.send(getSyntax());

	} catch (SkypeException e) {
		new WarningPopup(e.getMessage());
	}
}
 
开发者ID:Cuniq,项目名称:SkypeBot,代码行数:18,代码来源:CommandInfo.java

示例3: execute

import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws CommandException {
	if (outputChat == null)
		throw new NullOutputChatException("Empty output chat.");

	try {
		String result = commandInformations
			.get(commandNameToFindHelp.toLowerCase());

		if (result == null)
			outputChat.send(getSyntax());
		else
			outputChat.send(result);

	} catch (SkypeException e) {
		new WarningPopup(e.getMessage());
	}
}
 
开发者ID:Cuniq,项目名称:SkypeBot,代码行数:19,代码来源:CommandHelp.java

示例4: execute

import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws CommandException {
	try{
		if(!canBeExecuted()){
			return;
		}

		if (currentAdmins.remove(userToRemovedID))
			outputChat.send("Admin removed.");
		else
			outputChat.send("Can not find that user.");

	} catch (SkypeException e) {
		new WarningPopup(e.getMessage());
	}

}
 
开发者ID:Cuniq,项目名称:SkypeBot,代码行数:18,代码来源:CommandRemoveAdmin.java

示例5: printToChat

import com.skype.SkypeException; //导入方法依赖的package包/类
private void printToChat(String message) {
	try {
		outputChat.send(message);
	} catch (SkypeException e) {
		new WarningPopup(e.getMessage());
	}
}
 
开发者ID:Cuniq,项目名称:SkypeBot,代码行数:8,代码来源:CommandChoosePoll.java

示例6: execute

import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws CommandException {
	if (outputChat == null)
		throw new NullOutputChatException();
	
	try {
		for (String admin : currentAdmins) {
			outputChat.send(admin + "\r\n");
		}
	} catch (SkypeException e) {
		new WarningPopup(e.getMessage());
	}

}
 
开发者ID:Cuniq,项目名称:SkypeBot,代码行数:15,代码来源:CommandShowAdmins.java

示例7: execute

import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws CommandException {
	if (outputChat == null)
		throw new NullOutputChatException("Empty output chat.");

	try {
		for (String command : commandsName) {
			outputChat.send(command);
		}
	} catch (SkypeException e) {
		new WarningPopup(e.getMessage());
	}
}
 
开发者ID:Cuniq,项目名称:SkypeBot,代码行数:14,代码来源:CommandGetAllCommands.java

示例8: execute

import com.skype.SkypeException; //导入方法依赖的package包/类
@Override
public void execute() throws NullOutputChatException {
	try {

		if (!canBeExecuted())
			return;

		for (int i = 0; i < timesToBeRepeated; i++)
			outputChat.send(text);

	} catch (SkypeException e) {
		new WarningPopup(e.getMessage());
	}
}
 
开发者ID:Cuniq,项目名称:SkypeBot,代码行数:15,代码来源:CommandSpam.java

示例9: defineOutputChat

import com.skype.SkypeException; //导入方法依赖的package包/类
private void defineOutputChat() {
	try {
		if (receiver != null)
			outputChat = receiver.chat();
	} catch (SkypeException e) {
		new WarningPopup(e.getMessage());
	}

}
 
开发者ID:Cuniq,项目名称:SkypeBot,代码行数:10,代码来源:CommandSpam.java

示例10: clearMessages

import com.skype.SkypeException; //导入方法依赖的package包/类
/**
 * This method is responsible for removing messages which are no longer editable.
 */
private void clearMessages() {
	Set<ChatMessage> keys = messages.keySet();

	for (ChatMessage message : keys) {
		try {

			if (!message.isEditable())
				messages.remove(message);

		} catch (SkypeException e) {
			new WarningPopup(e.getMessage());
		}
	}
}
 
开发者ID:Cuniq,项目名称:SkypeBot,代码行数:18,代码来源:HourlyNonEditableMessageCleaner.java

示例11: initiateUserInformations

import com.skype.SkypeException; //导入方法依赖的package包/类
/**
 * Initiates each user's informations.
 */
private void initiateUserInformations() {
	try {

		users = new ConcurrentHashMap<String, UserInformation>(
				group.getAllMembers().length + 1);

		for (User u : group.getAllMembers()) {
			users.put(u.getId(), new UserInformation(u));
		}

	} catch (SkypeException e) {
		new WarningPopup(e.getMessage());
	}
}
 
开发者ID:Cuniq,项目名称:SkypeBot,代码行数:18,代码来源:GroupChatListener.java


注:本文中的com.skype.SkypeException.getMessage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。