class SpotifySpeech {

	@Intent()
	public String control(Map<String, EntityData> entites) {
		switch (entites.get("type").getString()) {
		case "back":
			this.playerLogic.back();
			break;
		case "skip":
			this.playerLogic.skip();
			break;
		case "pause":
		case "pass":
		case "stop":
			this.playerLogic.pause();
			break;
		case "resume":
			this.playerLogic.resume();
			break;
		default:
			return ERROR_MESSAGE;
		}
		return "OK";

	}

}