blob: 57310436b4a85001ccc9310d71820796e2b8429c [file] [log] [blame]
/*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.emergency;
/**
* Contains the keys of the preferences used in this app.
*/
public interface PreferenceKeys {
/** Key for emergency contacts preference */
public static final String KEY_EMERGENCY_CONTACTS = "emergency_contacts";
/** Key for the add contact preference */
public static final String KEY_ADD_CONTACT = "add_contact";
/** Key to store and read the name of the user. */
public static final String KEY_NAME = "name";
/** Key to store and read the date of birth of the user. */
public static final String KEY_DATE_OF_BIRTH = "date_of_birth";
/** Key to store and read the address of the user. */
public static final String KEY_ADDRESS = "address";
/** Key to store and read the blood type of the user. */
public static final String KEY_BLOOD_TYPE = "blood_type";
/** Key to store and read the allergies of the user. */
public static final String KEY_ALLERGIES = "allergies";
/** Key to store and read the medications of the user. */
public static final String KEY_MEDICATIONS = "medications";
/** Key to store and read the medical conditions of the user. */
public static final String KEY_MEDICAL_CONDITIONS = "medical_conditions";
/** Key to store and read the organ donor choice of the user. */
public static final String KEY_ORGAN_DONOR = "organ_donor";
/** Keys for all editable emergency info preferences */
public static final String[] KEYS_EDIT_EMERGENCY_INFO = {KEY_NAME, KEY_ADDRESS,
KEY_DATE_OF_BIRTH, KEY_BLOOD_TYPE, KEY_ALLERGIES, KEY_MEDICATIONS,
KEY_MEDICAL_CONDITIONS, KEY_ORGAN_DONOR};
/** Keys for all viewable emergency info preferences */
public static final String[] KEYS_VIEW_EMERGENCY_INFO = {KEY_ADDRESS, KEY_BLOOD_TYPE,
KEY_ALLERGIES, KEY_MEDICATIONS, KEY_MEDICAL_CONDITIONS, KEY_ORGAN_DONOR};
}