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