1 package com.smartdevicelink.proxy.rpc.enums;
\r
4 * Defines the possible result codes returned by SMARTDEVICELINK to the application in a
\r
5 * Response to a requested operation
\r
8 * @since SmartDeviceLink 1.0
\r
10 public enum Result {
\r
12 * The request succeeded
\r
16 * The data sent is invalid. For example:<br/>
\r
18 * <li>Invalid Json syntax</li>
\r
19 * <li>Parameters out of bounds (number or enum range)</li>
\r
20 * <li>Mandatory parameters not provided</li>
\r
21 * <li>Parameter provided with wrong type</li>
\r
22 * <li>Invalid characters</li>
\r
23 * <li>Empty string</li>
\r
28 * The request is not supported by SMARTDEVICELINK
\r
30 UNSUPPORTED_REQUEST,
\r
32 * The system could not process the request because the necessary memory
\r
33 * couldn't be allocated
\r
37 * There are too many requests pending (means that the response has not been
\r
38 * delivered yet). There is a limit of 1000 pending requests at a time
\r
40 TOO_MANY_PENDING_REQUESTS,
\r
42 * One of the provided IDs is not valid. For example:<br/>
\r
44 * <li>CorrelationID</li>
\r
45 * <li>CommandID</li>
\r
51 * The provided name or synonym is a duplicate of some already-defined name
\r
56 * Specified application name is already associated with an active interface
\r
57 * registration. Attempts at doing a second <i>
\r
58 * {@linkplain com.smartdevicelink.proxy.rpc.RegisterAppInterface}</i> on a
\r
59 * given protocol session will also cause this
\r
61 TOO_MANY_APPLICATIONS,
\r
63 * SMARTDEVICELINK does not support the interface version requested by the mobile
\r
66 APPLICATION_REGISTERED_ALREADY,
\r
68 * The requested language is currently not supported. Might be because of a
\r
69 * mismatch of the currently active language
\r
71 UNSUPPORTED_VERSION,
\r
73 * The request cannot be executed because no application interface has been
\r
74 * registered via <i>
\r
75 * {@linkplain com.smartdevicelink.proxy.rpc.RegisterAppInterface}</i>
\r
79 * The request cannot be executed because no application interface has been
\r
80 * registered via <i>
\r
81 * {@linkplain com.smartdevicelink.proxy.rpc.RegisterAppInterface}</i>
\r
83 APPLICATION_NOT_REGISTERED,
\r
85 * The data may not be changed, because it is currently in use. For example,
\r
86 * when trying to delete a Choice Set that is currently involved in an
\r
91 * There is already an existing subscription for this item
\r
93 VEHICLE_DATA_NOT_ALLOWED,
\r
94 VEHICLE_DATA_NOT_AVAILABLE,
\r
96 * The requested operation was rejected. No attempt was made to perform the
\r
101 * The requested operation was aborted due to some pre-empting event (e.g.
\r
102 * button push, <i>{@linkplain com.smartdevicelink.proxy.rpc.Alert}</i>
\r
103 * pre-empts <i>{@linkplain com.smartdevicelink.proxy.rpc.Speak}</i>, etc.)
\r
107 * The requested operation was ignored because it was determined to be
\r
108 * redundant (e.g. pause media clock when already paused)
\r
112 * A button that was requested for subscription is not supported on the
\r
113 * currently connected SMARTDEVICELINK platform. See DisplayCapabilities for further
\r
114 * information on supported buttons on the currently connected SMARTDEVICELINK platform
\r
116 UNSUPPORTED_RESOURCE,
\r
127 public static Result valueForString(String value) {
\r
128 return valueOf(value);
\r