/* * This file is part of FanshaweConnect. * * Copyright 2013 Gabriel Castro (c) * * FanshaweConnect is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * FanshaweConnect is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with FanshaweConnect. If not, see <http://www.gnu.org/licenses/>. */ package ca.GabrielCastro.fanshawelogin; import ca.GabrielCastro.fanshaweconnect.BuildConfig; /** * many constants used by the application */ public interface CONSTANTS { public static final String PREFS_NAME = "FanshaweAutoLogOn"; public static final String KEY_USERNAME = "userKey"; public static final String KEY_PASSWD = "passKey"; public static final String KEY_FIRST_NAME = "first_name"; public static final String KEY_LAST_NAME = "last_name"; String KEY_AUTO_CONNECT = "auto_connect_wifi"; public static final byte DEBUG_ALL_HTTP = 0x01 << 0; public static final byte DEBUG_ALL_CON_STATE_CHANGE = 0x01 << 1; public static final byte DEBUG_ALL_LOGONS = 0x01 << 2; public static final byte DEBUG_THREAD_LONGER = 0x01 << 3; public static final byte DEBUG_FORCE_INIT = 0x01 << 4; public static final byte DEBUG_NOTE_ALL = 0x01 << 5; String SECOND_URL = "https://www.fanshaweonline.ca/d2l/lp/homepage/LegacyWidgetViewer.d2l" + "?ou=29533" + "&WidgetPath=%2fd2l%2flms%2fwidgets%2flinks%2fuser_links.d2l" + "&WidgetId=13" + "&d2l_headingLevel=3" + "&d2l_body_type=3"; public static byte DEBUG_LEVEL = !BuildConfig.DEBUG ? (byte) 0 : (DEBUG_ALL_HTTP | DEBUG_ALL_CON_STATE_CHANGE | DEBUG_ALL_LOGONS | DEBUG_THREAD_LONGER | DEBUG_NOTE_ALL); }