Advertisement
minafaw3

app constant

Nov 28th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.26 KB | None | 0 0
  1. package com.tech4life.dogville.Controller.Constants;
  2.  
  3. /**
  4. * Created by karma on 27/05/2015.
  5. */
  6. public class AppConstants {
  7.  
  8. public static final String NAME = "name";
  9. public static final String DETAILS = "details";
  10. public static final String DETAILS2 = "details2" ;
  11.  
  12. //login activity constants
  13. public static final String USERNAME = "UserName";
  14.  
  15.  
  16. public static final String REQUEST = "request";
  17.  
  18.  
  19. // Puppy Order Fields
  20. public static final String PUPPY_NAME = "puppyName";
  21. public static final String PUPPY_DESCRIPTION ="puppyDescription" ;
  22. public static final String PUPPY_IMAGE = "puppyImage" ;
  23. public static final String PUPPY_GENDER = "puppyGender";
  24. public static final String PUPPY_USERID = "UserID";
  25. public static final String PRODUCT_MESSAGE_TAG = "productMessage" ;
  26. public static final String PRODUCT_ID = "productid" ;
  27. public static final String TIP_QUESTION_TAG = "question" ;
  28. public static final String USERID = "userID";
  29.  
  30. // Type Models
  31. public static final String TYPE_NAME = "TypeName";
  32. public static final String TYPE_ID = "TypeId";
  33. // Using Local Server Locally
  34. public static String WEBSERVICE_IP = "http://192.168.1.29:1818/";
  35. public static String WEBSERVICEURL = "VPMobileService/service.asmx";
  36.  
  37. // Common Request
  38. public static final String DEVICE_IMEI_NUMBER = "DeviceIMEINo";
  39. public static final String CULTURE = "Culture";
  40.  
  41. public static final String CHANNELTYPE = "ChannelType";
  42.  
  43. // Common Response
  44. public static final String IS_SUCCESS = "IsSuccess";
  45. public static final String RESULT_MESSAGE = "ResultMessage";
  46. public static final String RESULT_MESSAGE_TYPE = "ResultMessageType";
  47. public static final String RESPONSE_REF_NO = "ResponseRefNo";
  48. public static final String CRM_REF_NO = "CRMRefNo";
  49.  
  50. // Login Request
  51.  
  52. public static final String LOGIN = "Login";
  53. public static final String LOGIN_REQUEST_OBJECT = "WSFirstLoginRequest";
  54. public static final String LOGIN_RESULT_OBJECT = "LoginResult";
  55.  
  56. // Login Response
  57. public static final String USER_ID = "userid";
  58. public static final String USER_MOBILE = "UserMobile";
  59. public static final String HELP_TEXT = "HelpText";
  60. public static final String ANOTHER_HELP_TEXT = "AnotherHelpText";
  61. public static final String CIFNUMBER ="CifNo";
  62.  
  63. //Registeration Request
  64. public static final String REGISTRATION = "Registeration";
  65. public static final String REGISTRATION_REQUEST_OBJECT = "RegisterationRequest";
  66. public static final String REGISTRATION_RESULT_OBJECT = "RegisterationResult";
  67.  
  68. //Param
  69. public static final String FIRST_NAME = "FirstName";
  70. public static final String LAST_NAME = "LastName";
  71. public static final String GENDER = "Gender";
  72. public static final String PASSWORD = "Password";
  73. public static final String PHONE = "Phone";
  74. public static final String EMAIL = "Email";
  75.  
  76.  
  77. public static final String ALERT = "Alert";
  78. public static final String EMPTY_MESSAGE = "Please check empty fields ";
  79.  
  80. // url constants
  81. public static final String BASE_URL = "http://dogville.somee.com/UserService.svc/";
  82. public static final String LOGIN_URL = "login";
  83. public static final String SINGUP_URL = "Register";
  84. //// TODO: 24/11/2015
  85. public static final String PUPPIES_URL = "productsbyCategory?categoryid=";
  86.  
  87. public static final String SECTION = "Section";
  88. public static final String MEAL_URL = "http://openexchangerates.org/meals.json";
  89. public static final String USERS_URL = "http://dogville.somee.com/UserService.svc/users";
  90. public static final String ERROR_LOADING = " Connection Error";
  91. public static final String PRODUCTS_JSON = "{\"Products\":[{\"ID\":1,\"Name\":\"dog name\",\"Kind\":\"dog\",\"Description1\":\"Age: 6 monthes\",\"Description2\":\"gender: male\",\"Description3\":\"Desc3\",\"Description4\":\"Desc4\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic1.png\",\"Price\":145,\"MostView\":\"1\"},{\"ID\":2,\"Name\":\"food name\",\"Kind\":\"food\",\"Description1\":\"food desc1\",\"Description2\":\"food desc2\",\"Description3\":\"food desc3\",\"Description4\":\"food desc4\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic2.png\",\"Price\":140,\"IsRecommeded\":\"1\"},{\"ID\":3,\"Name\":\"dog name\",\"Kind\":\"dog\",\"Description1\":\"Desc2\",\"Description2\":\"Desc3\",\"Description3\":\"Desc4\",\"Description4\":\"Desc5\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic1.png\",\"Price\":135,\"IsRecommeded\":\"0\"},{\"ID\":4,\"Name\":\"food name\",\"Kind\":\"food\",\"Description1\":\"food desc2\",\"Description2\":\"food desc3\",\"Description3\":\"food desc4\",\"Description4\":\"food desc5\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic2.png\",\"Price\":130,\"IsRecommeded\":\"1\"},{\"ID\":5,\"Name\":\"dog name\",\"Kind\":\"dog\",\"Description1\":\"Desc3\",\"Description2\":\"Desc4\",\"Description3\":\"Desc5\",\"Description4\":\"Desc6\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic1.png\",\"Price\":125,\"IsRecommeded\":\"0\"},{\"ID\":6,\"Name\":\"food name\",\"Kind\":\"food\",\"Description1\":\"food desc3\",\"Description2\":\"food desc4\",\"Description3\":\"food desc5\",\"Description4\":\"food desc6\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic2.png\",\"Price\":120,\"IsRecommeded\":\"1\"},{\"ID\":7,\"Name\":\"dog name\",\"Kind\":\"dog\",\"Description1\":\"Desc4\",\"Description2\":\"Desc5\",\"Description3\":\"Desc6\",\"Description4\":\"Desc7\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic1.png\",\"Price\":115,\"IsRecommeded\":\"0\"},{\"ID\":8,\"Name\":\"food name\",\"Kind\":\"food\",\"Description1\":\"food desc4\",\"Description2\":\"food desc5\",\"Description3\":\"food desc6\",\"Description4\":\"food desc7\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic2.png\",\"Price\":110,\"IsRecommeded\":\"1\"},{\"ID\":9,\"Name\":\"dog name\",\"Kind\":\"dog\",\"Description1\":\"Desc5\",\"Description2\":\"Desc6\",\"Description3\":\"Desc7\",\"Description4\":\"Desc8\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic1.png\",\"Price\":115,\"IsRecommeded\":\"0\"},{\"ID\":10,\"Name\":\"food name\",\"Kind\":\"food\",\"Description1\":\"food desc5\",\"Description2\":\"food desc6\",\"Description3\":\"food desc7\",\"Description4\":\"food desc8\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic2.png\",\"Price\":120,\"IsRecommeded\":\"0\"},{\"ID\":11,\"Name\":\"dog name\",\"Kind\":\"dog\",\"Description1\":\"Desc6\",\"Description2\":\"Desc7\",\"Description3\":\"Desc8\",\"Description4\":\"Desc9\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic1.png\",\"Price\":125,\"IsRecommeded\":\"1\"},{\"ID\":12,\"Name\":\"food name\",\"Kind\":\"food\",\"Description1\":\"food desc6\",\"Description2\":\"food desc7\",\"Description3\":\"food desc8\",\"Description4\":\"food desc9\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic2.png\",\"Price\":130,\"IsRecommeded\":\"1\"},{\"ID\":13,\"Name\":\"dog name\",\"Kind\":\"dog\",\"Description1\":\"Desc7\",\"Description2\":\"Desc8\",\"Description3\":\"Desc9\",\"Description4\":\"Desc10\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic1.png\",\"Price\":135,\"IsRecommeded\":\"0\"},{\"ID\":14,\"Name\":\"food name\",\"Kind\":\"food\",\"Description1\":\"food desc7\",\"Description2\":\"food desc8\",\"Description3\":\"food desc9\",\"Description4\":\"food desc10\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic2.png\",\"Price\":140,\"IsRecommeded\":\"0\"},{\"ID\":15,\"Name\":\"dog name\",\"Kind\":\"dog\",\"Description1\":\"Desc8\",\"Description2\":\"Desc9\",\"Description3\":\"Desc10\",\"Description4\":\"Desc11\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic1.png\",\"Price\":145,\"IsRecommeded\":\"1\"},{\"ID\":16,\"Name\":\"food name\",\"Kind\":\"food\",\"Description1\":\"food desc8\",\"Description2\":\"food desc9\",\"Description3\":\"food desc10\",\"Description4\":\"food desc11\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic2.png\",\"Price\":140,\"IsRecommeded\":\"1\"},{\"ID\":17,\"Name\":\"dog name\",\"Kind\":\"dog\",\"Description1\":\"Desc9\",\"Description2\":\"Desc10\",\"Description3\":\"Desc11\",\"Description4\":\"Desc12\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic1.png\",\"Price\":135,\"IsRecommeded\":\"0\"},{\"ID\":18,\"Name\":\"food name\",\"Kind\":\"food\",\"Description1\":\"food desc9\",\"Description2\":\"food desc10\",\"Description3\":\"food desc11\",\"Description4\":\"food desc12\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic2.png\",\"Price\":130,\"IsRecommeded\":\"0\"},{\"ID\":19,\"Name\":\"dog name\",\"Kind\":\"dog\",\"Description1\":\"Desc10\",\"Description2\":\"Desc11\",\"Description3\":\"Desc12\",\"Description4\":\"Desc13\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic1.png\",\"Price\":125,\"IsRecommeded\":\"1\"},{\"ID\":20,\"Name\":\"food name\",\"Kind\":\"food\",\"Description1\":\"food desc10\",\"Description2\":\"food desc11\",\"Description3\":\"food desc12\",\"Description4\":\"food desc13\",\"ImageURL\":\"http://tech4lifeegypt.com/Dogville/pic2.png\",\"Price\":120,\"IsRecommeded\":\"0\"}]}";
  92.  
  93. public static final String Dogs_URL = "http://dogville.somee.com/UserService.svc/allPuppies";
  94. public static final String PRODUCTS_URL = "http://dogville.somee.com/UserService.svc/Products";
  95. public static final String MESSAGE = "Message" ;
  96.  
  97. public static final String HOME_ACCESSORY = "homeAccessory";
  98. public static final String HOME_PUPPIES = "homePuppies";
  99. public static final String HOME_FOOD = "homeFood";
  100. public static final String PUPPY_ORDER = "puppyOrder";
  101. public static final String PRODUCT_MESSAGE = "productMessage";
  102. public static final String PRODUCT_TYPES = "productTypes";
  103. public static final String PRODUCTS_BY_TYPE = "productByType";
  104. public static final String TIP_QUESTION = "tipQuestion";
  105. public static final String ORDER = "order";
  106. // constants for ui view layers
  107. public static String PRODUCTS = "Products";
  108. public static String ACCESSORIES = "Accessories";
  109. public static String FOODS = "Foods";
  110. public static String DOGS = "Dogs";
  111.  
  112.  
  113. public static String EMPTY_FIELD = "Please find empty field";
  114. public static String INVALID_EMAIL = "Please Enter valid E-mail";
  115.  
  116.  
  117. public static String SharedPreferenceDataStoreKey ="pref";
  118. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement