All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.tinymediamanager.jsonrpc.api.call.Input Maven / Gradle / Ivy

Go to download

This library is the result of freezy's Kodi JSON introspection, merged with dereulenspiegel's adoption without android, and patched to Kodi 16 Jarvis.

The newest version!
/*
 *      Copyright (C) 2005-2013 Team XBMC
 *      http://xbmc.org
 *
 *  This Program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2, or (at your option)
 *  any later version.
 *
 *  This Program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with XBMC Remote; see the file license.  If not, write to
 *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
 *  http://www.gnu.org/copyleft/gpl.html
 *
 */
package org.tinymediamanager.jsonrpc.api.call;

import org.codehaus.jackson.JsonNode;
import org.tinymediamanager.jsonrpc.api.AbstractCall;
import org.tinymediamanager.jsonrpc.api.model.InputModel;

public final class Input {

  /**
   * Goes back in GUI.
   * 

* This class represents the API method Input.Back *

* This class was generated automatically from XBMC's JSON-RPC introspect. */ public static class Back extends AbstractCall { public final static String API_TYPE = "Input.Back"; /** * Goes back in GUI. */ public Back() { super(); } @Override protected String parseOne(JsonNode node) { return node.getTextValue(); } @Override public String getName() { return API_TYPE; } @Override protected boolean returnsList() { return false; } } /** * Shows the context menu. *

* This class represents the API method Input.ContextMenu *

* This class was generated automatically from XBMC's JSON-RPC introspect. */ public static class ContextMenu extends AbstractCall { public final static String API_TYPE = "Input.ContextMenu"; /** * Shows the context menu. */ public ContextMenu() { super(); } @Override protected String parseOne(JsonNode node) { return node.getTextValue(); } @Override public String getName() { return API_TYPE; } @Override protected boolean returnsList() { return false; } } /** * Navigate down in GUI. *

* This class represents the API method Input.Down *

* This class was generated automatically from XBMC's JSON-RPC introspect. */ public static class Down extends AbstractCall { public final static String API_TYPE = "Input.Down"; /** * Navigate down in GUI. */ public Down() { super(); } @Override protected String parseOne(JsonNode node) { return node.getTextValue(); } @Override public String getName() { return API_TYPE; } @Override protected boolean returnsList() { return false; } } /** * Execute a specific action. *

* This class represents the API method Input.ExecuteAction *

* This class was generated automatically from XBMC's JSON-RPC introspect. */ public static class ExecuteAction extends AbstractCall { public final static String API_TYPE = "Input.ExecuteAction"; /** * Execute a specific action. * * @param action * One of: left, right, up, down, pageup, pagedown, select, * highlight, parentdir, parentfolder, back, menu, previousmenu, info, * pause, stop, skipnext, skipprevious, fullscreen, aspectratio, * stepforward, stepback, bigstepforward, bigstepback, chapterorbigstepforward, * chapterorbigstepback, osd, showsubtitles, nextsubtitle, cyclesubtitle, codecinfo * , nextpicture, previouspicture, zoomout, zoomin, playlist, queue, * zoomnormal, zoomlevel1, zoomlevel2, zoomlevel3, zoomlevel4, zoomlevel5, * zoomlevel6, zoomlevel7, zoomlevel8, zoomlevel9, nextcalibration, * resetcalibration, analogmove, analogmovex, analogmovey, rotate, rotateccw, * close, subtitledelayminus, subtitledelay, subtitledelayplus, audiodelayminus, * audiodelay, audiodelayplus, subtitleshiftup, subtitleshiftdown, subtitlealign, * audionextlanguage, verticalshiftup, verticalshiftdown, nextresolution, audiotoggledigital * , number0, number1, number2, number3, number4, number5, number6, * number7, number8, number9, smallstepback, fastforward, rewind, play, * playpause, switchplayer, delete, copy, move, screenshot, rename, * togglewatched, scanitem, reloadkeymaps, volumeup, volumedown, mute, * backspace, scrollup, scrolldown, analogfastforward, analogrewind, moveitemup, * moveitemdown, contextmenu, shift, symbols, cursorleft, cursorright, * showtime, analogseekforward, analogseekback, showpreset, nextpreset, * previouspreset, lockpreset, randompreset, increasevisrating, decreasevisrating, * showvideomenu, enter, increaserating, decreaserating, togglefullscreen, * nextscene, previousscene, nextletter, prevletter, jumpsms2, jumpsms3, * jumpsms4, jumpsms5, jumpsms6, jumpsms7, jumpsms8, jumpsms9, filter, * filterclear, filtersms2, filtersms3, filtersms4, filtersms5, filtersms6, * filtersms7, filtersms8, filtersms9, firstpage, lastpage, guiprofile, * red, green, yellow, blue, increasepar, decreasepar, volampup, * volampdown, volumeamplification, createbookmark, createepisodebookmark, settingsreset, * settingslevelchange, stereomode, nextstereomode, previousstereomode, togglestereomode, * stereomodetomono, channelup, channeldown, previouschannelgroup, nextchannelgroup, * playpvr, playpvrtv, playpvrradio, record, leftclick, rightclick, * middleclick, doubleclick, longclick, wheelup, wheeldown, mousedrag, * mousemove, tap, longpress, pangesture, zoomgesture, rotategesture, * swipeleft, swiperight, swipeup, swipedown, error, noop. See constants at * {@link InputModel.Action}. */ public ExecuteAction(String action) { super(); addParameter("action", action); } @Override protected String parseOne(JsonNode node) { return node.getTextValue(); } @Override public String getName() { return API_TYPE; } @Override protected boolean returnsList() { return false; } } /** * Goes to home window in GUI. *

* This class represents the API method Input.Home *

* This class was generated automatically from XBMC's JSON-RPC introspect. */ public static class Home extends AbstractCall { public final static String API_TYPE = "Input.Home"; /** * Goes to home window in GUI. */ public Home() { super(); } @Override protected String parseOne(JsonNode node) { return node.getTextValue(); } @Override public String getName() { return API_TYPE; } @Override protected boolean returnsList() { return false; } } /** * Shows the information dialog. *

* This class represents the API method Input.Info *

* This class was generated automatically from XBMC's JSON-RPC introspect. */ public static class Info extends AbstractCall { public final static String API_TYPE = "Input.Info"; /** * Shows the information dialog. */ public Info() { super(); } @Override protected String parseOne(JsonNode node) { return node.getTextValue(); } @Override public String getName() { return API_TYPE; } @Override protected boolean returnsList() { return false; } } /** * Navigate left in GUI. *

* This class represents the API method Input.Left *

* This class was generated automatically from XBMC's JSON-RPC introspect. */ public static class Left extends AbstractCall { public final static String API_TYPE = "Input.Left"; /** * Navigate left in GUI. */ public Left() { super(); } @Override protected String parseOne(JsonNode node) { return node.getTextValue(); } @Override public String getName() { return API_TYPE; } @Override protected boolean returnsList() { return false; } } /** * Navigate right in GUI. *

* This class represents the API method Input.Right *

* This class was generated automatically from XBMC's JSON-RPC introspect. */ public static class Right extends AbstractCall { public final static String API_TYPE = "Input.Right"; /** * Navigate right in GUI. */ public Right() { super(); } @Override protected String parseOne(JsonNode node) { return node.getTextValue(); } @Override public String getName() { return API_TYPE; } @Override protected boolean returnsList() { return false; } } /** * Select current item in GUI. *

* This class represents the API method Input.Select *

* This class was generated automatically from XBMC's JSON-RPC introspect. */ public static class Select extends AbstractCall { public final static String API_TYPE = "Input.Select"; /** * Select current item in GUI. */ public Select() { super(); } @Override protected String parseOne(JsonNode node) { return node.getTextValue(); } @Override public String getName() { return API_TYPE; } @Override protected boolean returnsList() { return false; } } /** * Send a generic (unicode) text. *

* This class represents the API method Input.SendText *

* This class was generated automatically from XBMC's JSON-RPC introspect. */ public static class SendText extends AbstractCall { public final static String API_TYPE = "Input.SendText"; /** * Send a generic (unicode) text. * * @param text * Unicode text. * @param done * Whether this is the whole input or not (closes an open input dialog if true). */ public SendText(String text, Boolean done) { super(); addParameter("text", text); addParameter("done", done); } /** * Send a generic (unicode) text. * * @param text * Unicode text. */ public SendText(String text) { super(); addParameter("text", text); } @Override protected String parseOne(JsonNode node) { return node.getTextValue(); } @Override public String getName() { return API_TYPE; } @Override protected boolean returnsList() { return false; } } /** * Show codec information of the playing item. *

* This class represents the API method Input.ShowCodec *

* This class was generated automatically from XBMC's JSON-RPC introspect. */ public static class ShowCodec extends AbstractCall { public final static String API_TYPE = "Input.ShowCodec"; /** * Show codec information of the playing item. */ public ShowCodec() { super(); } @Override protected String parseOne(JsonNode node) { return node.getTextValue(); } @Override public String getName() { return API_TYPE; } @Override protected boolean returnsList() { return false; } } /** * Show the on-screen display for the current player. *

* This class represents the API method Input.ShowOSD *

* This class was generated automatically from XBMC's JSON-RPC introspect. */ public static class ShowOSD extends AbstractCall { public final static String API_TYPE = "Input.ShowOSD"; /** * Show the on-screen display for the current player. */ public ShowOSD() { super(); } @Override protected String parseOne(JsonNode node) { return node.getTextValue(); } @Override public String getName() { return API_TYPE; } @Override protected boolean returnsList() { return false; } } /** * Navigate up in GUI. *

* This class represents the API method Input.Up *

* This class was generated automatically from XBMC's JSON-RPC introspect. */ public static class Up extends AbstractCall { public final static String API_TYPE = "Input.Up"; /** * Navigate up in GUI. */ public Up() { super(); } @Override protected String parseOne(JsonNode node) { return node.getTextValue(); } @Override public String getName() { return API_TYPE; } @Override protected boolean returnsList() { return false; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy