Consts.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. package com.edufound.reader.util;
  2. import android.app.Application;
  3. import com.edufound.reader.bean.BaiDuUserInfo;
  4. import com.edufound.reader.bean.UserBean;
  5. import java.io.File;
  6. import java.util.Map;
  7. public class Consts {
  8. private static Application mApplicAtion;
  9. private static int[] screenSize;
  10. private static UserBean mConstsUserBean;
  11. private static BaiDuUserInfo mConstsBaiDuUserBean;
  12. private static boolean isDebug = false;
  13. private static String privService = "http://m-xyyf-web.ai160.com/res/protocol/private.htm";
  14. private static String agreementServices = "http://m-xyyf-web.ai160.com/res/protocol/service.htm";
  15. private static final String FinalApiUrl = "http://reader-api.efunbox.cn";
  16. private static String UMENG_CHANNEL = null;
  17. private static String UID = "";
  18. private static boolean isNeedRemoveBR = false;
  19. private static String recordUpLoadFileUrl = "";
  20. private static File mRecordSaveFile = null;
  21. private static Boolean isNeedLogin = false;
  22. public static Boolean getIsNeedLogin() {
  23. return isNeedLogin;
  24. }
  25. public static void setIsNeedLogin(Boolean isNeedLogin) {
  26. Consts.isNeedLogin = isNeedLogin;
  27. }
  28. public static File getmRecordSaveFile() {
  29. return mRecordSaveFile;
  30. }
  31. public static void setmRecordSaveFile(File mRecordSaveFile) {
  32. Consts.mRecordSaveFile = mRecordSaveFile;
  33. }
  34. public static String getRecordUpLoadFileUrl() {
  35. return recordUpLoadFileUrl;
  36. }
  37. public static void setRecordUpLoadFileUrl(String recordUpLoadFileUrl) {
  38. Consts.recordUpLoadFileUrl = recordUpLoadFileUrl;
  39. }
  40. public static boolean isIsNeedRemoveBR() {
  41. return isNeedRemoveBR;
  42. }
  43. public static void setIsNeedRemoveBR(boolean isNeedRemoveBR) {
  44. Consts.isNeedRemoveBR = isNeedRemoveBR;
  45. }
  46. public static String getUID() {
  47. return UID;
  48. }
  49. public static void setUID(String UID) {
  50. Consts.UID = UID;
  51. }
  52. public static Application getmApplicAtion() {
  53. return mApplicAtion;
  54. }
  55. public static void setmApplicAtion(Application mApplicAtion) {
  56. Consts.mApplicAtion = mApplicAtion;
  57. }
  58. public static int[] getScreenSize() {
  59. return screenSize;
  60. }
  61. public static void setScreenSize(int[] screenSize) {
  62. Consts.screenSize = screenSize;
  63. }
  64. public static UserBean getmConstsUserBean() {
  65. return mConstsUserBean;
  66. }
  67. public static void setmConstsUserBean(UserBean mConstsUserBean) {
  68. Consts.mConstsUserBean = mConstsUserBean;
  69. }
  70. public static String getPrivServiceUrl() {
  71. return privService;
  72. }
  73. public static String getAgreementServicesUrl() {
  74. return agreementServices;
  75. }
  76. public static boolean isIsDebug() {
  77. return isDebug;
  78. }
  79. public static void setIsDebug(boolean isDebug) {
  80. Consts.isDebug = isDebug;
  81. }
  82. public static String getFinalApi() {
  83. return FinalApiUrl;
  84. }
  85. public static String getUmengChannel() {
  86. return UMENG_CHANNEL;
  87. }
  88. public static void setUmengChannel(String umengChannel) {
  89. UMENG_CHANNEL = umengChannel;
  90. }
  91. public static BaiDuUserInfo getmConstsBaiDuUserBean() {
  92. return mConstsBaiDuUserBean;
  93. }
  94. public static void setmConstsBaiDuUserBean(BaiDuUserInfo mConstsBaiDuUserBean) {
  95. Consts.mConstsBaiDuUserBean = mConstsBaiDuUserBean;
  96. }
  97. }