Declare.java 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. package kr.co.icontrols.wallpadcall.declare;
  2. import com.artncore.commons.define;
  3. public class Declare {
  4. // 미리 정의해야할 변수를 정의한다.
  5. public static class BR {
  6. // BR 등록
  7. public static String ACNAME_MAIN_NOTI = "kr.co.icontrols.wallpad.BR_MAIN_NOTI";
  8. public static String APP_FINISH = "kr.co.icontrols.wallpad.BR_APP_FINISH";
  9. public static String NOTIFY_ACNAME = "WALLPAD_NOTIFY";
  10. public static String WALLPAD_ALERT = "WALLPAD_ALERT";
  11. public static String EVENT_DEVICE_CONTROL = "EVENT_DEVICE_CONTROL";
  12. public static String NOTIFY_ACNAME_SUBWALLPAD = "SUBWALLPAD_NOTIFY";
  13. public static String ACNAME_RECORD_NOTI = "kr.co.icontrols.wallpad.BR_RECORD_NOTI";
  14. public static String NOTIFY_CHANGE_LOBBY_FILTER = "NOTIFY_CHANGE_LOBBY_FILTER";
  15. public static String NOTIFY_CHANGE_FRONT_FILTER = "NOTIFY_CHANGE_FRONT_FILTER";
  16. public static String VISITOR_REMOTE_CALL = "kr.co.icontrols.wallpad.BR_REMOTE_CALL";
  17. public static String EVENT_SUBDEVICE_VOLUMESET_SEND = "kr.co.icontrols.wallpadcall.subphone.BR_SubDeviceVolume";
  18. public final static String BR_ACTION_BASE = "kr.co.icontrols.wallpadcall.BR_";
  19. public final static String BR_HEATING = BR_ACTION_BASE + "HEATINGV2_CHANGE";
  20. public final static String BR_VENTI = BR_ACTION_BASE + "VENTI_CHANGE";
  21. public final static String BR_ELECTRICRANGE = BR_ACTION_BASE + "ELECTRICRANGE_CHANGE";
  22. public final static String BR_EVENT_BATHPHONE_VOLUMESET_SEND = "BATHPHONE_VOLUMESET_SEND";
  23. public final static String BR_EVENT_KITCHENTV_VOLUMESET_SEND = "KITCHENTV_VOLUMESET_SEND";
  24. public final static String BR_EVENT_SEND_SUBDEVICE_VOLUMESET = "SEND_SUBDEVICE_VOLUMESET";
  25. public final static String BR_SHOW_REMOTEVIEW_TRUE = "BR_SHOW_REMOTEVIEW_TRUE";
  26. public final static String BR_SHOW_REMOTEVIEW_FALSE = "BR_SHOW_REMOTEVIEW_FALSE";
  27. // yjyoon
  28. public static final String BR_REQUEST_RECORD_STOP = "kr.co.icontrols.wallpad.BR_RECORDSTOP";
  29. /**
  30. * Jeff, 2019.12.25
  31. * WallPadMain에서 WallPadCall의 Live 상태를 파악하기 위한 BR
  32. * WallPadMain에서 BR_REQUEST_WALLPADCALL_LIVE을 보내면 WallPadCall은 BR_ACK_WALLPADCALL_LIVE로 응답한다.
  33. */
  34. public static final String BR_REQUEST_WALLPADCALL_LIVE = "kr.co.icontrols.wallpad.BR_REQUEST_WALLPADCALL_LIVE";
  35. public static final String BR_ACK_WALLPADCALL_LIVE = "kr.co.icontrols.wallpad.BR_ACK_WALLPADCALL_LIVE";
  36. public static final String BR_BLOCK_SIPCALL = "kr.co.icontrols.wallpad.BR_BLOCK_SIPCALL";
  37. // BR 메시지
  38. /** 메인 앱과 공통으로 쓰고 있는 변수 */
  39. public static int NOTIFY_ALARM_FIRED = 4;
  40. public static int APK_EXIT_MAIN_CHECK = 1008;
  41. public static int NOTI_CALLAPP_FINISHING = 1018;
  42. public static int REQ_UPLOAD_MISSEDVISITORPIC = 1019;
  43. public static int NOTIFY_ALARM_FREED = 1042;
  44. // public static int NOTI_START_STRANGER_RECORD = 1043;
  45. // public static int NOTI_STOP_STRANGER_RECORD = 1044;
  46. public static String HEATING_ROOM_NUM = "HEATING_ROOM_NUM"; // 난방
  47. public static String HEATING_STATUS = "HEATING_STATUS";
  48. public static String HEATING_SET_TEMP = "HEATING_SET_TEMP";
  49. public static String HEATING_CONTENT = "HEATING_CONTENT";
  50. public static String RELIEFCALL_FILTER = "RELIEFCALL_FILTER";
  51. // 무선리모컨용 메시지
  52. public static String WIRELESSREMOTECTRL = "WIRELESSREMOTECTRL";
  53. public static String CMD_REG_REQUEST = "CMD_REG_REQUEST";
  54. public static String CMD_REG_REPLY = "CMD_REG_REPLY";
  55. public static String CMD_REG_REPLY_SUCCESS = "CMD_REG_REPLY_SUCCESS";
  56. public static String CMD_REG_REPLY_FAIL = "CMD_REG_REPLY_FAIL";
  57. }
  58. public static class IGW300CMD {
  59. public static final int FRONT_PWR_ON = 4001;
  60. public static final int FRONT_PWR_OFF = 4002;
  61. public static final int FRONT_BELL_ON = 4003;
  62. public static final int FRONT_BELL_OFF = 4004;
  63. public static final int VIDEO_FRONT = 5001;
  64. public static final int VIDEO_MOIP = 5002;
  65. public static final int AUDIO_OFF = 6001;
  66. public static final int AUDIO_PSTN_WALLPAD = 6002;
  67. public static final int AUDIO_PSTN_SUBPHONE = 6003;
  68. public static final int AUDIO_FRONT_WALLPAD = 6004;
  69. public static final int AUDIO_FRONT_SUBPHONE = 6005;
  70. public static final int AUDIO_MOIP_SUBPHONE = 6006;
  71. public static final int AUDIO_PSTN_REJECT = 6007;
  72. }
  73. public static class DEVICEINFO {
  74. // 디바이스의 정보를 미리 정의한다.
  75. public final static DeviceType Type = DeviceType.RESIDENCE;
  76. public final static int SCREEN_SIZE_FULL_W = 1280; // 제품 해상도 (가로)
  77. public final static int SCREEN_SIZE_FULL_H = 800; // 제품 해상도 (세로)
  78. public final static int SCREEN_SIZE_MAIN_W = 1280; // 메인영역 해상도 (가로)
  79. public final static int SCREEN_SIZE_MAIN_H = 690; // 메인영역 해상도 (세로)
  80. public final static int SCREEN_SIZE_TOP_W = 1280; // 탑영역 해상도 (가로)
  81. public final static int SCREEN_SIZE_TOP_H = 110; // 탑영역 해상도 (세로)
  82. public final static int SCREEN_SIZE_POPUP_W = 594; // 팝업영역 해상도 (가로)
  83. public final static int SCREEN_SIZE_POPUP_H = 472; // 팝업영역 해상도 (세로)
  84. public final static int SCREEN_SIZE_POPUP_MULTICALL_W = 594; // 팝업영역 해상도 (가로)
  85. public final static int SCREEN_SIZE_POPUP_MULTICALL_H = 559; // 팝업영역 해상도 (세로)
  86. }
  87. public class BTN {
  88. public final static int IGW300_PSTN_RING_START = 220;
  89. public final static int IGW300_PSTN_RING_END = 231;
  90. public final static int TALK = 222;
  91. public final static int DOOR_OPEN = 223;
  92. public final static int FRONT = 224;
  93. public final static int PLAY_DECODED_VIDEO = 231;
  94. public final static int PLAY_DECODED_VIDEO_V40 = 281;
  95. public final static int PSTN_RING_V40 = 264;
  96. public final static int EMERGENCY_V40 = 265;
  97. public final static int TALK_V40 = 266;
  98. public final static int DOOR_OPEN_V40 = 267;
  99. public final static int FRONT_V40 = 268;
  100. public final static int ARS_NO_0 = 7;
  101. public final static int ARS_NO_1 = 8;
  102. public final static int ARS_NO_2 = 9;
  103. public final static int ARS_NO_3 = 10;
  104. public final static int ARS_NO_4 = 11;
  105. public final static int ARS_NO_5 = 12;
  106. public final static int ARS_NO_6 = 13;
  107. public final static int ARS_NO_7 = 14;
  108. public final static int ARS_NO_8 = 15;
  109. public final static int ARS_NO_9 = 16;
  110. public final static int ARS_STAR = 249;
  111. public final static int ARS_SHARP = 248;
  112. public final static int ARS_STAR_V40 = 279;
  113. public final static int ARS_SHARP_V40 = 280;
  114. }
  115. public static class DEVICENAME {
  116. public static String strType_Front = "Front";
  117. public static String strType_Front_Stranger = "FrontStranger";
  118. public static String strType_Resi = "Resi";
  119. public static String strType_RentResi = "RentResi";
  120. public static String strType_Lobby = "Lobby";
  121. public static String strType_Guard = "Guard";
  122. public static String strType_Ihub = "Ihub";
  123. }
  124. public enum DeviceType {
  125. RESIDENCE,
  126. RENTRESIDENCE,
  127. LOBBY,
  128. GUARD,
  129. IHUB,
  130. }
  131. public static class CALLTRIGGER {
  132. public static String CALLOWNER = "CALLOWNER";
  133. public static String CALLSTATUSTYPE = "CALLSTATUSTYPE";
  134. public static String CALLEVENTTYPE = "CALLEVENTTYPE";
  135. public static String CALLTYPE = "CALLTYPE";
  136. public static String REMOTEINFO = "REMOTEINFO";
  137. public enum SOURCE {
  138. USER,
  139. CALL_RECEIVE,
  140. SUBPHONE
  141. }
  142. public enum TYPE {
  143. MENU,
  144. FRONT,
  145. LOBBY,
  146. GUARD,
  147. RESIDENCE,
  148. PSTN
  149. }
  150. }
  151. public static class SERVER_IP {
  152. public static String MAIN_SERVER = "10.0.1.1";
  153. public static String MANAGE_PC = "10.0.1.10";
  154. }
  155. public static class DBInfo {
  156. public static String DATABASE_FILENAME_CONFIG = "DEVICE_CONFIG.DB";
  157. public static String DATABASE_FILENAME_HISTORY_ALARM = "HISTORY_ALARM.DB";
  158. public static String DATABASE_FILENAME_HISTORY_CALL = "HISTORY_CALL.DB";
  159. public static String DATABASE_FILENAME_HISTORY_VISITORPICTURE = "HISTORY_VISITORPICTURE.DB";
  160. public static String DATABASE_FILENAME_REMOTECALL_USER = "REMOTE_CALL_USER.DB";
  161. public static String DIRECTORY_URI_VISITORPICTURE = define.VISITOR_PICTURE_LOCATION;
  162. public static String DIRECTORY_URI_DECRYPTED_VISITORPICTURE = define.VISITOR_PICTURE_LOCATION + "Decrypt";
  163. public static String TABLE_NAME_CONFIG = "CONFIG";
  164. public static String TABLE_NAME_HISTORY_ALARM = "HISTORY_ALARM";
  165. public static String TABLE_NAME_HISTORY_CALL = "HISTORY_CALL";
  166. public static String TABLE_NAME_HISTORY_VISITORPICTURE = "HISTORY_VISITORPICTURE";
  167. public static String TABLE_NAME_REMOTE_CALL_USER = "REMOTE_CALL_USER";
  168. public static String[] VALUE_NAME_DEFAULT = {"KEY", "VALUE"};
  169. public static String[] VALUE_NAME_HISTORY_ALARM = {"NAME", "ALARMTYPE", "REMOTE_IP", "CHECKED", "ETC"};
  170. public static String[] VALUE_NAME_HISTORY_CALL = {"NAME", "CALLRESULT", "REMOTE_IP", "SIPID", "CHECKED", "ETC"};
  171. public static String[] VALUE_NAME_HISTORY_VISITORPICTURE = {"NAME", "SIPID", "CHECKED", "THIEF", "URI", "ETC"};
  172. public static String[] VALUE_NAME_HISTORY_USER = {"PHONE_KEY", "NAME", "MONITOR_AUTH", "LOBBY_OPEN", "DOOR_OPEN", "HOME_VIEWER"};
  173. }
  174. public static class Alarm {
  175. public class Mode {
  176. public static final String Fired = "fired";
  177. public static final String Stopped = "stopped";
  178. public static final String Return = "return";
  179. }
  180. public class Cause {
  181. public static final String normal = "normal";
  182. public static final String fire = "fire";
  183. public static final String gas = "gas";
  184. public static final String bugout = "bugout";
  185. public static final String bugin = "bugin";
  186. public static final String magnetic = "magnetic";
  187. public static final String emergency = "emergency";
  188. public static final String emergency_BT = "emergency_BT";
  189. public static final String emergency_IO = "emergency_IO";
  190. public static final String emergency_Comm = "emergency_Comm";
  191. public static final String fire_IO = "fire_IO";
  192. public static final String fire_Comm = "fire_Comm";
  193. public static final String gas_IO = "gas_IO";
  194. public static final String gas_Comm = "gas_Comm";
  195. public static final String ladder_Open = "ladder_Open";
  196. public static final String ladder_Close = "ladder_Close";
  197. public static final String upladder_Open = "upladder_Open";
  198. public static final String upladder_Close = "upladder_Close";
  199. public static final String residentsafety = "residentsafety";
  200. }
  201. }
  202. public static class AUTOFINISHTIME {
  203. }
  204. public static class VISITORREMOTECALL {
  205. public static String INTERNAL_SERVER_IP ="10.2.110.110";
  206. public static int INTERNAL_SERVER_PORT = 8000;
  207. public static final String MOBILE_AUDIO_TO_LOBBY = "MOBILE_AUDIO_TO_LOBBY";
  208. public static final int BSSSIPStun_ICONTROLS_RECEIVE_MOBILE_AUDIO_LOBBY = 60;
  209. public static final String MOBILE_AUDIO_TO_GUARD = "MOBILE_AUDIO_TO_GURAD";
  210. public static final int BSSSIPStun_ICONTROLS_RECEIVE_MOBILE_AUDIO_GUARD = 70;
  211. }
  212. public static class RELIEFCALL {
  213. public static final String RELIEFCALL_CERTIFYNAME = "HDC_IControls";
  214. public static final int RELIEFCALL_BUFFERSIZE_LOBBY = 768;
  215. public static final int RELIEFCALL_BUFFERSIZE_FRONT = 1024;
  216. }
  217. public static final boolean ENABLED_DOOR_PHONE_POWER_CONTROLL_BY_CALL_APP = true; //true;
  218. }