1 /* 2 * Copyright 2017 Google Inc. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package com.example.android.wearable.wear.messaging.util; 17 18 /** 19 * All Constants for interaction with the Mock Database, extras between activities, and actions for 20 * intents. 21 */ 22 public class Constants { 23 24 /* Constants for Extras to be passed along through bundles */ 25 public static final String EXTRA_CHAT = 26 "com.example.android.wearable.wear.messaging.extra.CHAT"; 27 public static final String EXTRA_MESSAGE = 28 "com.example.android.wearable.wear.messaging.extra.MESSAGE"; 29 public static final String EXTRA_REPLY = 30 "com.example.android.wearable.wear.messaging.extra.REPLY"; 31 32 /* Shared Preference keys for SharedPreferencesHelper */ 33 static final String PREFS_NAME = "com.example.android.wearable.wear.messaging"; 34 static final String PREFS_CHAT_ID_KEY = 35 "com.example.android.wearable.wear.messaging.prefs.CHAT_ID"; 36 static final String PREFS_USER_KEY = "com.example.android.wearable.wear.messaging.prefs.USER"; 37 static final String PREFS_CONTACTS_KEY = 38 "com.example.android.wearable.wear.messaging.prefs.CONTACTS"; 39 static final String PREFS_CHATS_KEY = "com.example.android.wearable.wear.messaging.prefs.CHATS"; 40 static final String PREFS_MESSAGE_PREFIX = "chat_message_"; 41 42 public static final String RESULT_CONTACTS_KEY = 43 "com.example.android.wear.samples.sup.result.CONTACTS_RESULT"; 44 45 /* Action constants for services/broadcast receiver intents */ 46 static final String ACTION_RECEIVE_MESSAGE = 47 "com.example.android.wearable.wear.messaging.action.RECEIVE_MESSAGE"; 48 public static final String ACTION_REPLY = 49 "com.example.android.wearable.wear.messaging.action.REPLY_MESSAGE"; 50 } 51