Imported Upstream version 0.9.2
[platform/upstream/iotivity.git] / android / examples / fridgeserver / src / main / java / org / iotivity / base / examples / fridgeserver / StringConstants.java
1 package org.iotivity.base.examples.fridgeserver;\r
2 \r
3 import org.iotivity.base.OcPlatform;\r
4 \r
5 /**\r
6  * StringConstant contains the fridgeserver specific constant values.  To add another supported\r
7  * Resource or Interface type to this app, begin by adding the new strings here, and then\r
8  * find the places throughout the app where Resource-specific case switches occur, and add\r
9  * the newly-supported type there.\r
10  */\r
11 public interface StringConstants {\r
12     public static final String DEVICE_URI = "/device";\r
13     public static final String LIGHT_URI = "/light";\r
14     public static final String DOOR_URI = "/door/";\r
15     public static final String DEVICE_NAME = "device_name";\r
16     public static final String RESOURCE_TYPENAME = "intel.fridge";\r
17     public static final String RESOURCE_TYPEDOOR = "intel.fridge.door";\r
18     public static final String RESOURCE_TYPELIGHT = "intel.fridge.light";\r
19     public static final String API_VERSION = "v.1.2";\r
20     public static final String CLIENT_TOKEN = "AaBbYyZz";\r
21     public static final String SIDE = "side";\r
22     public static final String OPEN = "open";\r
23     public static final String MESSAGE = "message";\r
24     public static final String LEFT = "left";\r
25     public static final String RIGHT = "right";\r
26     public static final String RANDOM = "random";\r
27     public static final String ON = "on";\r
28     public static final String INTENT = "org.iotivity.base.examples.fridgeserver";\r
29     public static final String RESOURCE_INTERFACE = OcPlatform.DEFAULT_INTERFACE;\r
30 \r
31     public static final int API_VERSION_KEY = 2048;\r
32     public static final int CLIENT_VERSION_KEY = 3000;\r
33     public static final int OK = 200;\r
34 \r
35     public static final boolean ENABLE_PRINTING = true; // change to false to disable printing\r
36                                                         // of messages on the console and the screen\r
37 }\r