Consts.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. package com.edufound.reader.util;
  2. import android.app.Application;
  3. import com.edufound.reader.bean.UserBean;
  4. public class Consts {
  5. private static Application mApplicAtion;
  6. private static int[] screenSize;
  7. private static UserBean mConstsUserBean;
  8. private static boolean isDebug = false;
  9. private static String privService = "http://m-xyyf-web.ai160.com/res/protocol/private.htm";
  10. private static String agreementServices = "http://m-xyyf-web.ai160.com/res/protocol/service.htm";
  11. private static final String FinalApiUrl = "http://reader-api.efunbox.cn";
  12. private static String UMENG_CHANNEL = null;
  13. private static String UID = "";
  14. public static String getUID() {
  15. return UID;
  16. }
  17. public static void setUID(String UID) {
  18. Consts.UID = UID;
  19. }
  20. public static Application getmApplicAtion() {
  21. return mApplicAtion;
  22. }
  23. public static void setmApplicAtion(Application mApplicAtion) {
  24. Consts.mApplicAtion = mApplicAtion;
  25. }
  26. public static int[] getScreenSize() {
  27. return screenSize;
  28. }
  29. public static void setScreenSize(int[] screenSize) {
  30. Consts.screenSize = screenSize;
  31. }
  32. public static UserBean getmConstsUserBean() {
  33. return mConstsUserBean;
  34. }
  35. public static void setmConstsUserBean(UserBean mConstsUserBean) {
  36. Consts.mConstsUserBean = mConstsUserBean;
  37. }
  38. public static String getPrivServiceUrl() {
  39. return privService;
  40. }
  41. public static String getAgreementServicesUrl() {
  42. return agreementServices;
  43. }
  44. public static boolean isIsDebug() {
  45. return isDebug;
  46. }
  47. public static void setIsDebug(boolean isDebug) {
  48. Consts.isDebug = isDebug;
  49. }
  50. public static String getFinalApi() {
  51. return FinalApiUrl;
  52. }
  53. public static String getUmengChannel() {
  54. return UMENG_CHANNEL;
  55. }
  56. public static void setUmengChannel(String umengChannel) {
  57. UMENG_CHANNEL = umengChannel;
  58. }
  59. }