Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.99 KB | None | 0 0
  1. package ru.ifsoft.secrethub.constants;
  2.  
  3. public interface Constants {
  4.  
  5. public static final Boolean EMOJI_KEYBOARD = true; // false = Do not display your own Emoji keyboard | true = allow display your own Emoji keyboard
  6.  
  7. public static final String APP_TEMP_FOLDER = "network"; //directory for temporary storage of images from the camera
  8.  
  9. public static final String WEB_SITE = "http://secrethub.org/"; //web site url address
  10.  
  11. public static final String CLIENT_ID = "1"; //Client ID | For identify the application | Example: 12567
  12.  
  13. public static final String API_DOMAIN = "http://secrethub.org/"; //url address to which the application sends requests
  14.  
  15. public static final String API_FILE_EXTENSION = ".inc.php";
  16. public static final String API_VERSION = "v1";
  17.  
  18. public static final String METHOD_ACCOUNT_LOGIN = API_DOMAIN + "api/" + API_VERSION + "/method/account.signIn" + API_FILE_EXTENSION;
  19. public static final String METHOD_ACCOUNT_SIGNUP = API_DOMAIN + "api/" + API_VERSION + "/method/account.signUp" + API_FILE_EXTENSION;
  20. public static final String METHOD_ACCOUNT_AUTHORIZE = API_DOMAIN + "api/" + API_VERSION + "/method/account.authorize" + API_FILE_EXTENSION;
  21. public static final String METHOD_ACCOUNT_SET_GCM_TOKEN = API_DOMAIN + "api/" + API_VERSION + "/method/account.setGcmToken" + API_FILE_EXTENSION;
  22. public static final String METHOD_ACCOUNT_LOGINBYFACEBOOK = API_DOMAIN + "api/" + API_VERSION + "/method/account.signInByFacebook" + API_FILE_EXTENSION;
  23. public static final String METHOD_ACCOUNT_RECOVERY = API_DOMAIN + "api/" + API_VERSION + "/method/account.recovery" + API_FILE_EXTENSION;
  24. public static final String METHOD_ACCOUNT_SETPASSWORD = API_DOMAIN + "api/" + API_VERSION + "/method/account.setPassword" + API_FILE_EXTENSION;
  25. public static final String METHOD_ACCOUNT_DEACTIVATE = API_DOMAIN + "api/" + API_VERSION + "/method/account.deactivate" + API_FILE_EXTENSION;
  26. public static final String METHOD_ACCOUNT_CONNECT_TO_FACEBOOK = API_DOMAIN + "api/" + API_VERSION + "/method/account.connectToFacebook" + API_FILE_EXTENSION;
  27. public static final String METHOD_ACCOUNT_DISCONNECT_FROM_FACEBOOK = API_DOMAIN + "api/" + API_VERSION + "/method/account.disconnectFromFacebook" + API_FILE_EXTENSION;
  28. public static final String METHOD_ACCOUNT_LOGOUT = API_DOMAIN + "api/" + API_VERSION + "/method/account.logOut" + API_FILE_EXTENSION;
  29. public static final String METHOD_ACCOUNT_SET_ALLOW_MESSAGES = API_DOMAIN + "api/" + API_VERSION + "/method/account.setAllowMessages" + API_FILE_EXTENSION;
  30. public static final String METHOD_ACCOUNT_SET_GEO_LOCATION = API_DOMAIN + "api/" + API_VERSION + "/method/account.setGeoLocation" + API_FILE_EXTENSION;
  31.  
  32. public static final String METHOD_ACCOUNT_GET_SETTINGS = API_DOMAIN + "api/" + API_VERSION + "/method/account.getSettings" + API_FILE_EXTENSION;
  33.  
  34. public static final String METHOD_SUPPORT_SEND_TICKET = API_DOMAIN + "api/" + API_VERSION + "/method/support.sendTicket" + API_FILE_EXTENSION;
  35.  
  36. public static final String METHOD_SETTINGS_LIKES_GCM = API_DOMAIN + "api/" + API_VERSION + "/method/account.setAllowLikesGCM" + API_FILE_EXTENSION;
  37. public static final String METHOD_SETTINGS_COMMENTS_GCM = API_DOMAIN + "api/" + API_VERSION + "/method/account.setAllowCommentsGCM" + API_FILE_EXTENSION;
  38. public static final String METHOD_SETTINGS_MESSAGES_GCM = API_DOMAIN + "api/" + API_VERSION + "/method/account.setAllowMessagesGCM" + API_FILE_EXTENSION;
  39. public static final String METHOD_SETTINGS_COMMENT_REPLY_GCM = API_DOMAIN + "api/" + API_VERSION + "/method/account.setAllowCommentReplyGCM" + API_FILE_EXTENSION;
  40.  
  41. public static final String METHOD_PROFILE_FOLLOW = API_DOMAIN + "api/" + API_VERSION + "/method/profile.follow" + API_FILE_EXTENSION;
  42. public static final String METHOD_PROFILE_UPLOADPHOTO = API_DOMAIN + "api/" + API_VERSION + "/method/profile.uploadPhoto" + API_FILE_EXTENSION;
  43.  
  44.  
  45. public static final String METHOD_BLACKLIST_ADD = API_DOMAIN + "api/" + API_VERSION + "/method/blacklist.add" + API_FILE_EXTENSION;
  46. public static final String METHOD_BLACKLIST_REMOVE = API_DOMAIN + "api/" + API_VERSION + "/method/blacklist.remove" + API_FILE_EXTENSION;
  47.  
  48. public static final String METHOD_NOTIFICATIONS_GET = API_DOMAIN + "api/" + API_VERSION + "/method/notifications.get" + API_FILE_EXTENSION;
  49. public static final String METHOD_HASHTAGS_GET = API_DOMAIN + "api/" + API_VERSION + "/method/hashtags.get" + API_FILE_EXTENSION;
  50. public static final String METHOD_FEEDS_GET = API_DOMAIN + "api/" + API_VERSION + "/method/feeds.get" + API_FILE_EXTENSION;
  51. public static final String METHOD_ITEM_GET = API_DOMAIN + "api/" + API_VERSION + "/method/item.get" + API_FILE_EXTENSION;
  52. public static final String METHOD_STREAM_GET = API_DOMAIN + "api/" + API_VERSION + "/method/stream.get" + API_FILE_EXTENSION;
  53. public static final String METHOD_POPULAR_GET = API_DOMAIN + "api/" + API_VERSION + "/method/popular.get" + API_FILE_EXTENSION;
  54. public static final String METHOD_NEARBY_GET = API_DOMAIN + "api/" + API_VERSION + "/method/nearby.get" + API_FILE_EXTENSION;
  55.  
  56. public static final String METHOD_APP_CHECKUSERNAME = API_DOMAIN + "api/" + API_VERSION + "/method/app.checkUsername" + API_FILE_EXTENSION;
  57. public static final String METHOD_APP_TERMS = API_DOMAIN + "api/" + API_VERSION + "/method/app.terms" + API_FILE_EXTENSION;
  58. public static final String METHOD_APP_THANKS = API_DOMAIN + "api/" + API_VERSION + "/method/app.thanks" + API_FILE_EXTENSION;
  59.  
  60. public static final String METHOD_ITEMS_REMOVE = API_DOMAIN + "api/" + API_VERSION + "/method/items.remove" + API_FILE_EXTENSION;
  61. public static final String METHOD_ITEMS_UPLOAD_IMG = API_DOMAIN + "api/" + API_VERSION + "/method/items.uploadImg" + API_FILE_EXTENSION;
  62. public static final String METHOD_ITEMS_NEW = API_DOMAIN + "api/" + API_VERSION + "/method/items.new" + API_FILE_EXTENSION;
  63. public static final String METHOD_ITEMS_REPORT = API_DOMAIN + "api/" + API_VERSION + "/method/items.report" + API_FILE_EXTENSION;
  64. public static final String METHOD_ITEMS_LIKE = API_DOMAIN + "api/" + API_VERSION + "/method/items.like" + API_FILE_EXTENSION;
  65.  
  66. public static final String METHOD_FAVORITES_GET = API_DOMAIN + "api/" + API_VERSION + "/method/favorites.get" + API_FILE_EXTENSION;
  67.  
  68. public static final String METHOD_COMMENTS_REMOVE = API_DOMAIN + "api/" + API_VERSION + "/method/comments.remove" + API_FILE_EXTENSION;
  69. public static final String METHOD_COMMENTS_NEW = API_DOMAIN + "api/" + API_VERSION + "/method/comments.new" + API_FILE_EXTENSION;
  70.  
  71. public static final String METHOD_CHAT_NEW = API_DOMAIN + "api/" + API_VERSION + "/method/chat.new" + API_FILE_EXTENSION;
  72. public static final String METHOD_CHAT_GET = API_DOMAIN + "api/" + API_VERSION + "/method/chat.get" + API_FILE_EXTENSION;
  73. public static final String METHOD_CHAT_REMOVE = API_DOMAIN + "api/" + API_VERSION + "/method/chat.remove" + API_FILE_EXTENSION;
  74. public static final String METHOD_CHAT_GET_PREVIOUS = API_DOMAIN + "api/" + API_VERSION + "/method/chat.getPrevious" + API_FILE_EXTENSION;
  75. public static final String METHOD_CHAT_GET_NEXT = API_DOMAIN + "api/" + API_VERSION + "/method/chat.getNext" + API_FILE_EXTENSION;
  76. public static final String METHOD_CONVERSATIONS_GET = API_DOMAIN + "api/" + API_VERSION + "/method/conversations.get" + API_FILE_EXTENSION;
  77. public static final String METHOD_DIALOGS_GET = API_DOMAIN + "api/" + API_VERSION + "/method/dialogs.get" + API_FILE_EXTENSION;
  78.  
  79. public static final String METHOD_CHAT_UPDATE = API_DOMAIN + "api/" + API_VERSION + "/method/chat.update" + API_FILE_EXTENSION;
  80.  
  81. public static final String METHOD_MSG_NEW = API_DOMAIN + "api/" + API_VERSION + "/method/msg.new" + API_FILE_EXTENSION;
  82. public static final String METHOD_MSG_UPLOAD_IMG = API_DOMAIN + "api/" + API_VERSION + "/method/msg.uploadImg" + API_FILE_EXTENSION;
  83.  
  84. public static final int MY_PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE_PHOTO = 1; //WRITE_EXTERNAL_STORAGE
  85. public static final int MY_PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE_COVER = 2; //WRITE_EXTERNAL_STORAGE
  86. public static final int MY_PERMISSIONS_REQUEST_ACCESS_LOCATION = 3; //ACCESS_COARSE_LOCATION
  87. public static final int MY_PERMISSIONS_REQUEST_WRITE_EXTERNAL_STORAGE = 4; //WRITE_EXTERNAL_STORAGE
  88.  
  89. public static final int DISTANCE_CONST_1 = 50; // Miles
  90. public static final int DISTANCE_CONST_2 = 100; // Miles
  91. public static final int DISTANCE_CONST_3 = 250; // Miles
  92. public static final int DISTANCE_CONST_4 = 500; // Miles
  93. public static final int DISTANCE_CONST_5 = 1000; // Miles
  94.  
  95. public static final int POPULAR_CONST_1 = 0; // All Time
  96. public static final int POPULAR_CONST_2 = 1; // Day
  97. public static final int POPULAR_CONST_3 = 2; // Week
  98. public static final int POPULAR_CONST_4 = 3; // Month
  99.  
  100. public static final int LIST_ITEMS = 20;
  101.  
  102. public static final int ENABLED = 1;
  103. public static final int DISABLED = 0;
  104.  
  105. public static final int GCM_ENABLED = 1;
  106. public static final int GCM_DISABLED = 0;
  107.  
  108. public static final int ADMOB_ENABLED = 1;
  109. public static final int ADMOB_DISABLED = 0;
  110.  
  111. public static final int COMMENTS_ENABLED = 1;
  112. public static final int COMMENTS_DISABLED = 0;
  113.  
  114. public static final int MESSAGES_ENABLED = 1;
  115. public static final int MESSAGES_DISABLED = 0;
  116.  
  117. public static final int ERROR_SUCCESS = 0;
  118.  
  119. public static final int SEX_UNKNOWN = 0;
  120. public static final int SEX_MALE = 1;
  121. public static final int SEX_FEMALE = 2;
  122.  
  123. public static final int NOTIFY_TYPE_LIKE = 0;
  124. public static final int NOTIFY_TYPE_FOLLOWER = 1;
  125. public static final int NOTIFY_TYPE_MESSAGE = 2;
  126. public static final int NOTIFY_TYPE_COMMENT = 3;
  127. public static final int NOTIFY_TYPE_COMMENT_REPLY = 4;
  128. public static final int NOTIFY_TYPE_GIFT = 6;
  129.  
  130. public static final int GCM_NOTIFY_CONFIG = 0;
  131. public static final int GCM_NOTIFY_SYSTEM = 1;
  132. public static final int GCM_NOTIFY_CUSTOM = 2;
  133. public static final int GCM_NOTIFY_LIKE = 3;
  134. public static final int GCM_NOTIFY_ANSWER = 4;
  135. public static final int GCM_NOTIFY_QUESTION = 5;
  136. public static final int GCM_NOTIFY_COMMENT = 6;
  137. public static final int GCM_NOTIFY_FOLLOWER = 7;
  138. public static final int GCM_NOTIFY_PERSONAL = 8;
  139. public static final int GCM_NOTIFY_MESSAGE = 9;
  140. public static final int GCM_NOTIFY_COMMENT_REPLY = 10;
  141. public static final int GCM_NOTIFY_GIFT = 14;
  142.  
  143.  
  144. public static final int ERROR_LOGIN_TAKEN = 300;
  145. public static final int ERROR_EMAIL_TAKEN = 301;
  146. public static final int ERROR_FACEBOOK_ID_TAKEN = 302;
  147.  
  148. public static final int ACCOUNT_STATE_ENABLED = 0;
  149. public static final int ACCOUNT_STATE_DISABLED = 1;
  150. public static final int ACCOUNT_STATE_BLOCKED = 2;
  151. public static final int ACCOUNT_STATE_DEACTIVATED = 3;
  152.  
  153. public static final int ACCOUNT_TYPE_USER = 0;
  154. public static final int ACCOUNT_TYPE_GROUP = 1;
  155.  
  156. public static final int ERROR_UNKNOWN = 100;
  157. public static final int ERROR_ACCESS_TOKEN = 101;
  158.  
  159. public static final int ERROR_ACCOUNT_ID = 400;
  160.  
  161. public static final int UPLOAD_TYPE_PHOTO = 0;
  162. public static final int UPLOAD_TYPE_COVER = 1;
  163.  
  164. public static final int ACTION_NEW = 1;
  165. public static final int ACTION_EDIT = 2;
  166. public static final int SELECT_POST_IMG = 3;
  167. public static final int VIEW_CHAT = 4;
  168. public static final int CREATE_POST_IMG = 5;
  169. public static final int SELECT_CHAT_IMG = 6;
  170. public static final int CREATE_CHAT_IMG = 7;
  171. public static final int FEED_NEW_POST = 8;
  172. public static final int FRIENDS_SEARCH = 9;
  173. public static final int ITEM_EDIT = 10;
  174. public static final int STREAM_NEW_POST = 11;
  175. public static final int ITEM_REPOST = 12;
  176.  
  177. public static final String TAG = "TAG";
  178.  
  179. public static final String HASHTAGS_COLOR = "#5BCFF2";
  180. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement