1 package org.iotivity.base.examples.simpleserver;
3 import org.iotivity.base.OcPlatform;
5 * StringConstants contains the simpleserver specific constant values. To add another supported
6 * Resource or Interface type to this app, begin by adding the new strings here, and then
7 * find the places throughout the app where Resource-specific case switches occur, and add
8 * the newly-supported type there.
10 public interface StringConstants {
11 public static final String RESOURCE_URI0 = "/a/light";
12 public static final String RESOURCE_URI1 = "/a/light2";
13 public static final String RESOURCE_TYPENAME = "core.light";
14 public static final String OIC_SERVER_JSON_DB_FILE = "oic_svr_db_server.json";
15 public static final String RESOURCE_INTERFACE = OcPlatform.DEFAULT_INTERFACE; //resource interface
16 public static final String CREATED_URI = "createduri";
17 public static final String STATE = "state";
18 public static final String NAME = "name";
19 public static final String POWER = "power";
20 public static final String MESSAGE = "message";
21 public static final int ERROR_CODE = 200;