123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- package kr.co.icontrols.wallpadcall.declare;
- import com.artncore.commons.define;
- public class Declare {
- // 미리 정의해야할 변수를 정의한다.
- public static class BR {
- // BR 등록
- public static String ACNAME_MAIN_NOTI = "kr.co.icontrols.wallpad.BR_MAIN_NOTI";
- public static String APP_FINISH = "kr.co.icontrols.wallpad.BR_APP_FINISH";
- public static String NOTIFY_ACNAME = "WALLPAD_NOTIFY";
- public static String WALLPAD_ALERT = "WALLPAD_ALERT";
- public static String EVENT_DEVICE_CONTROL = "EVENT_DEVICE_CONTROL";
- public static String NOTIFY_ACNAME_SUBWALLPAD = "SUBWALLPAD_NOTIFY";
- public static String ACNAME_RECORD_NOTI = "kr.co.icontrols.wallpad.BR_RECORD_NOTI";
- public static String NOTIFY_CHANGE_LOBBY_FILTER = "NOTIFY_CHANGE_LOBBY_FILTER";
- public static String NOTIFY_CHANGE_FRONT_FILTER = "NOTIFY_CHANGE_FRONT_FILTER";
- public static String VISITOR_REMOTE_CALL = "kr.co.icontrols.wallpad.BR_REMOTE_CALL";
- public static String EVENT_SUBDEVICE_VOLUMESET_SEND = "kr.co.icontrols.wallpadcall.subphone.BR_SubDeviceVolume";
- public final static String BR_ACTION_BASE = "kr.co.icontrols.wallpadcall.BR_";
- public final static String BR_HEATING = BR_ACTION_BASE + "HEATINGV2_CHANGE";
- public final static String BR_VENTI = BR_ACTION_BASE + "VENTI_CHANGE";
- public final static String BR_ELECTRICRANGE = BR_ACTION_BASE + "ELECTRICRANGE_CHANGE";
- public final static String BR_EVENT_BATHPHONE_VOLUMESET_SEND = "BATHPHONE_VOLUMESET_SEND";
- public final static String BR_EVENT_KITCHENTV_VOLUMESET_SEND = "KITCHENTV_VOLUMESET_SEND";
- public final static String BR_EVENT_SEND_SUBDEVICE_VOLUMESET = "SEND_SUBDEVICE_VOLUMESET";
- public final static String BR_SHOW_REMOTEVIEW_TRUE = "BR_SHOW_REMOTEVIEW_TRUE";
- public final static String BR_SHOW_REMOTEVIEW_FALSE = "BR_SHOW_REMOTEVIEW_FALSE";
- // yjyoon
- public static final String BR_REQUEST_RECORD_STOP = "kr.co.icontrols.wallpad.BR_RECORDSTOP";
- /**
- * Jeff, 2019.12.25
- * WallPadMain에서 WallPadCall의 Live 상태를 파악하기 위한 BR
- * WallPadMain에서 BR_REQUEST_WALLPADCALL_LIVE을 보내면 WallPadCall은 BR_ACK_WALLPADCALL_LIVE로 응답한다.
- */
- public static final String BR_REQUEST_WALLPADCALL_LIVE = "kr.co.icontrols.wallpad.BR_REQUEST_WALLPADCALL_LIVE";
- public static final String BR_ACK_WALLPADCALL_LIVE = "kr.co.icontrols.wallpad.BR_ACK_WALLPADCALL_LIVE";
- public static final String BR_BLOCK_SIPCALL = "kr.co.icontrols.wallpad.BR_BLOCK_SIPCALL";
- // BR 메시지
- /** 메인 앱과 공통으로 쓰고 있는 변수 */
- public static int NOTIFY_ALARM_FIRED = 4;
- public static int APK_EXIT_MAIN_CHECK = 1008;
- public static int NOTI_CALLAPP_FINISHING = 1018;
- public static int REQ_UPLOAD_MISSEDVISITORPIC = 1019;
- public static int NOTIFY_ALARM_FREED = 1042;
- // public static int NOTI_START_STRANGER_RECORD = 1043;
- // public static int NOTI_STOP_STRANGER_RECORD = 1044;
- public static String HEATING_ROOM_NUM = "HEATING_ROOM_NUM"; // 난방
- public static String HEATING_STATUS = "HEATING_STATUS";
- public static String HEATING_SET_TEMP = "HEATING_SET_TEMP";
- public static String HEATING_CONTENT = "HEATING_CONTENT";
- public static String RELIEFCALL_FILTER = "RELIEFCALL_FILTER";
- // 무선리모컨용 메시지
- public static String WIRELESSREMOTECTRL = "WIRELESSREMOTECTRL";
- public static String CMD_REG_REQUEST = "CMD_REG_REQUEST";
- public static String CMD_REG_REPLY = "CMD_REG_REPLY";
- public static String CMD_REG_REPLY_SUCCESS = "CMD_REG_REPLY_SUCCESS";
- public static String CMD_REG_REPLY_FAIL = "CMD_REG_REPLY_FAIL";
- }
- public static class IGW300CMD {
- public static final int FRONT_PWR_ON = 4001;
- public static final int FRONT_PWR_OFF = 4002;
- public static final int FRONT_BELL_ON = 4003;
- public static final int FRONT_BELL_OFF = 4004;
- public static final int VIDEO_FRONT = 5001;
- public static final int VIDEO_MOIP = 5002;
- public static final int AUDIO_OFF = 6001;
- public static final int AUDIO_PSTN_WALLPAD = 6002;
- public static final int AUDIO_PSTN_SUBPHONE = 6003;
- public static final int AUDIO_FRONT_WALLPAD = 6004;
- public static final int AUDIO_FRONT_SUBPHONE = 6005;
- public static final int AUDIO_MOIP_SUBPHONE = 6006;
- public static final int AUDIO_PSTN_REJECT = 6007;
- }
- public static class DEVICEINFO {
- // 디바이스의 정보를 미리 정의한다.
- public final static DeviceType Type = DeviceType.RESIDENCE;
- public final static int SCREEN_SIZE_FULL_W = 1280; // 제품 해상도 (가로)
- public final static int SCREEN_SIZE_FULL_H = 800; // 제품 해상도 (세로)
- public final static int SCREEN_SIZE_MAIN_W = 1280; // 메인영역 해상도 (가로)
- public final static int SCREEN_SIZE_MAIN_H = 690; // 메인영역 해상도 (세로)
- public final static int SCREEN_SIZE_TOP_W = 1280; // 탑영역 해상도 (가로)
- public final static int SCREEN_SIZE_TOP_H = 110; // 탑영역 해상도 (세로)
- public final static int SCREEN_SIZE_POPUP_W = 594; // 팝업영역 해상도 (가로)
- public final static int SCREEN_SIZE_POPUP_H = 472; // 팝업영역 해상도 (세로)
- public final static int SCREEN_SIZE_POPUP_MULTICALL_W = 594; // 팝업영역 해상도 (가로)
- public final static int SCREEN_SIZE_POPUP_MULTICALL_H = 559; // 팝업영역 해상도 (세로)
- }
- public class BTN {
- public final static int IGW300_PSTN_RING_START = 220;
- public final static int IGW300_PSTN_RING_END = 231;
- public final static int TALK = 222;
- public final static int DOOR_OPEN = 223;
- public final static int FRONT = 224;
- public final static int PLAY_DECODED_VIDEO = 231;
- public final static int PLAY_DECODED_VIDEO_V40 = 281;
- public final static int PSTN_RING_V40 = 264;
- public final static int EMERGENCY_V40 = 265;
- public final static int TALK_V40 = 266;
- public final static int DOOR_OPEN_V40 = 267;
- public final static int FRONT_V40 = 268;
- public final static int ARS_NO_0 = 7;
- public final static int ARS_NO_1 = 8;
- public final static int ARS_NO_2 = 9;
- public final static int ARS_NO_3 = 10;
- public final static int ARS_NO_4 = 11;
- public final static int ARS_NO_5 = 12;
- public final static int ARS_NO_6 = 13;
- public final static int ARS_NO_7 = 14;
- public final static int ARS_NO_8 = 15;
- public final static int ARS_NO_9 = 16;
- public final static int ARS_STAR = 249;
- public final static int ARS_SHARP = 248;
- public final static int ARS_STAR_V40 = 279;
- public final static int ARS_SHARP_V40 = 280;
- }
- public static class DEVICENAME {
- public static String strType_Front = "Front";
- public static String strType_Front_Stranger = "FrontStranger";
- public static String strType_Resi = "Resi";
- public static String strType_RentResi = "RentResi";
- public static String strType_Lobby = "Lobby";
- public static String strType_Guard = "Guard";
- public static String strType_Ihub = "Ihub";
- }
- public enum DeviceType {
- RESIDENCE,
- RENTRESIDENCE,
- LOBBY,
- GUARD,
- IHUB,
- }
- public static class CALLTRIGGER {
- public static String CALLOWNER = "CALLOWNER";
- public static String CALLSTATUSTYPE = "CALLSTATUSTYPE";
- public static String CALLEVENTTYPE = "CALLEVENTTYPE";
- public static String CALLTYPE = "CALLTYPE";
- public static String REMOTEINFO = "REMOTEINFO";
- public enum SOURCE {
- USER,
- CALL_RECEIVE,
- SUBPHONE
- }
- public enum TYPE {
- MENU,
- FRONT,
- LOBBY,
- GUARD,
- RESIDENCE,
- PSTN
- }
- }
- public static class SERVER_IP {
- public static String MAIN_SERVER = "10.0.1.1";
- public static String MANAGE_PC = "10.0.1.10";
- }
- public static class DBInfo {
- public static String DATABASE_FILENAME_CONFIG = "DEVICE_CONFIG.DB";
- public static String DATABASE_FILENAME_HISTORY_ALARM = "HISTORY_ALARM.DB";
- public static String DATABASE_FILENAME_HISTORY_CALL = "HISTORY_CALL.DB";
- public static String DATABASE_FILENAME_HISTORY_VISITORPICTURE = "HISTORY_VISITORPICTURE.DB";
- public static String DATABASE_FILENAME_REMOTECALL_USER = "REMOTE_CALL_USER.DB";
- public static String DIRECTORY_URI_VISITORPICTURE = define.VISITOR_PICTURE_LOCATION;
- public static String DIRECTORY_URI_DECRYPTED_VISITORPICTURE = define.VISITOR_PICTURE_LOCATION + "Decrypt";
- public static String TABLE_NAME_CONFIG = "CONFIG";
- public static String TABLE_NAME_HISTORY_ALARM = "HISTORY_ALARM";
- public static String TABLE_NAME_HISTORY_CALL = "HISTORY_CALL";
- public static String TABLE_NAME_HISTORY_VISITORPICTURE = "HISTORY_VISITORPICTURE";
- public static String TABLE_NAME_REMOTE_CALL_USER = "REMOTE_CALL_USER";
- public static String[] VALUE_NAME_DEFAULT = {"KEY", "VALUE"};
- public static String[] VALUE_NAME_HISTORY_ALARM = {"NAME", "ALARMTYPE", "REMOTE_IP", "CHECKED", "ETC"};
- public static String[] VALUE_NAME_HISTORY_CALL = {"NAME", "CALLRESULT", "REMOTE_IP", "SIPID", "CHECKED", "ETC"};
- public static String[] VALUE_NAME_HISTORY_VISITORPICTURE = {"NAME", "SIPID", "CHECKED", "THIEF", "URI", "ETC"};
- public static String[] VALUE_NAME_HISTORY_USER = {"PHONE_KEY", "NAME", "MONITOR_AUTH", "LOBBY_OPEN", "DOOR_OPEN", "HOME_VIEWER"};
- }
- public static class Alarm {
- public class Mode {
- public static final String Fired = "fired";
- public static final String Stopped = "stopped";
- public static final String Return = "return";
- }
- public class Cause {
- public static final String normal = "normal";
- public static final String fire = "fire";
- public static final String gas = "gas";
- public static final String bugout = "bugout";
- public static final String bugin = "bugin";
- public static final String magnetic = "magnetic";
- public static final String emergency = "emergency";
- public static final String emergency_BT = "emergency_BT";
- public static final String emergency_IO = "emergency_IO";
- public static final String emergency_Comm = "emergency_Comm";
- public static final String fire_IO = "fire_IO";
- public static final String fire_Comm = "fire_Comm";
- public static final String gas_IO = "gas_IO";
- public static final String gas_Comm = "gas_Comm";
- public static final String ladder_Open = "ladder_Open";
- public static final String ladder_Close = "ladder_Close";
- public static final String upladder_Open = "upladder_Open";
- public static final String upladder_Close = "upladder_Close";
- public static final String residentsafety = "residentsafety";
- }
- }
- public static class AUTOFINISHTIME {
- }
- public static class VISITORREMOTECALL {
- public static String INTERNAL_SERVER_IP ="10.2.110.110";
- public static int INTERNAL_SERVER_PORT = 8000;
- public static final String MOBILE_AUDIO_TO_LOBBY = "MOBILE_AUDIO_TO_LOBBY";
- public static final int BSSSIPStun_ICONTROLS_RECEIVE_MOBILE_AUDIO_LOBBY = 60;
- public static final String MOBILE_AUDIO_TO_GUARD = "MOBILE_AUDIO_TO_GURAD";
- public static final int BSSSIPStun_ICONTROLS_RECEIVE_MOBILE_AUDIO_GUARD = 70;
- }
- public static class RELIEFCALL {
- public static final String RELIEFCALL_CERTIFYNAME = "HDC_IControls";
- public static final int RELIEFCALL_BUFFERSIZE_LOBBY = 768;
- public static final int RELIEFCALL_BUFFERSIZE_FRONT = 1024;
- }
- public static final boolean ENABLED_DOOR_PHONE_POWER_CONTROLL_BY_CALL_APP = true; //true;
- }
|