Definitions.h 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. //
  2. // Definitions.h
  3. // kneet2
  4. //
  5. // Created by Created by Jason Lee on 10/1/15.
  6. // Copyright (c) 2015 ntels. All rights reserved.
  7. //
  8. #ifndef kneet2_Definitions_h
  9. #define kneet2_Definitions_h
  10. /*
  11. // kneet 3.0 운영
  12. final static int KEY_URL_KNEET_V3 = 1;
  13. final static String URL_KNEET_V3 = "http://52.163.90.87:5017";
  14. final static String SMART_URL_KNEET_V3 = "http://52.163.90.87:5017";
  15. final static String SERVICE_ID_KNEET_V3 = "30001";
  16. final static String PROJECT_ID_KNEET_V3 = "439012691127";
  17. final static String APP_START_ID_KNEET_V3 = "ntels_kneet_v3";
  18. final static String URL_SERVICE_HUB_WEBSOCKET_V3 = "ws://13.76.96.27:8081";
  19. final static String URL_SERVICE_HUB_REST_V3 = "http://13.76.96.27:8080";
  20. final static String URL_CLOUD_GATEWAY_V3 = "http://13.76.96.27:7070";
  21. final static String VSAAS_SIP_URL_KNEET_V3 = "sip:23.98.73.196:6061;lr";
  22. final static String VSAAS_TURN_URL_KEET_V3 = "23.98.73.196";
  23. final static int VSAAS_TURN_PORT_KNEET_V3 = 3478;
  24. final static String VSAAS_SIP_DOMAIN_KNEET_V3 = "vsaas.com";
  25. final static String VSAAS_SIP_PASSWORD_KNEET_V3 = "qwer!@#$%1";
  26. */
  27. #ifndef PRODUCT_MODE
  28. static NSString *kAPIServer = @"http://61.40.220.23:7791"; //개발
  29. static NSString *kSocketServer = @"ws://61.40.220.23:7792"; //개발
  30. static NSString *kWebLinkServer = @"http://61.40.220.23:7794"; //개발
  31. #else //운영모드
  32. static NSString *kAPIServer = @"https://sp.kneet.io:7791"; //운영
  33. static NSString *kSocketServer = @"wss://sp.kneet.io:7792"; //운영
  34. static NSString *kWebLinkServer = @"https://sp.kneet.io:7794"; //운영
  35. #endif
  36. static NSString *kSocketBoradCast = @"SocketReceiveNoti";
  37. static NSString *kBLEConnect = @"BLEConnect";
  38. static NSString *kBLEDisConnect = @"BLEDisConnect";
  39. static NSInteger kMaxTimeOut = 60; //운영
  40. #define API_AUTHORIZATION_KEY @"Authorization"
  41. #define API_LANGUAGE_KEY @"lang"
  42. //Network Constants
  43. #define API_ROOT_PATH @"/ocs/v1"
  44. //1 - 공통
  45. #define API_POST_APP_VERSION @"/mobile_app/version"
  46. //#define API_GET_CODE_LIST @"/getCodeList"
  47. #define API_GET_MOBILE @"/mobile_device/%@"
  48. #define API_POST_MOBILE @"/mobile_device"
  49. #define API_POST_MOBILE_TOKEN @"/mobile_device/%@/push_token"
  50. //10 - 회원
  51. #define API_POST_SIGN_IN @"/member/login" //로그인 - 변경 - 필드추가
  52. #define API_GET_SIGN_IN_AUTO @"/member" //자동로그인 - 변경 - 필드 추가
  53. #define API_POST_SIGN_OUT @"/member/logout" //로그아웃
  54. //#define API_POST_SIGN_UP @"/customer/%@/group/%@/member" //회원가입
  55. #define API_TEMP_CUST_ID @"1001"
  56. #define API_TEMP_CUST_GROP_ID @"1001"
  57. //#define API_POST_MEMBER_UPDATE @"/member/%@/%@" //회원정보 수정
  58. #define API_PUT_MEMBER_UPDATE @"/customer/%@/group/%@/member/%@" //회원정보 수정
  59. #define API_POST_AUTH_MAIL @"/member/auth_mail" //이메일 인증 재발송
  60. #define API_POST_RESET_PWD @"/member/password" //비밀번호 재설정
  61. #define API_POST_EXIST_PWD @"/customer/%@/group/%@/member/%@/password/exist" //비밀번호 확인
  62. #define API_GET_MOBILE_DEVICES @"/member/devices" //단말 목록
  63. #define API_POST_NEW_MOBILE_DEVICE @"/member/new_mobile_device" //새 단말 인증
  64. #define API_POST_REPLACE_MOBILE_DEVICE @"/member/replace_device" //단말 교체
  65. #define API_DELETE_MOBILE_DEVICE @"/member/device" //단말 등록 해제
  66. #define API_POST_PUSH_SETTINGS @"/member/push_noti" //푸시 설정 변경
  67. #define API_POST_MEMBER_UPDATE_IMAGE @"/customer/%@/group/%@/member/%@/profile_image" //멤버프로필 이미지 수정
  68. #define API_GET_CHECK_PWD @"/member/%@" //비밀번호 확인
  69. //#define API_DELETE_ACCOUNT @"/member/%@" //계정삭제
  70. #define API_DELETE_ACCOUNT @"/customer/%@/group/%@/member/%@" //계정삭제
  71. #define API_GET_MEMBER_ICONS @"/member/icons" //멤버아이콘 리스트
  72. //#define API_POST_HOMEGROUP @"/member/homegrp" //홈 생성 - 폐기
  73. //#define API_POST_HOMEGROUP_RENAME @"/homegrp/name" //홈 이름 변경 - 폐기
  74. //#define API_POST_HOMEGROUP_LOCATION @"/homegrp/location" //홈 위치 변경 - 폐기
  75. //#define API_DELETE_HOMEGROUP @"/homegrp/%@" //홈그룹 삭제 - 폐기
  76. //#define API_GET_HOMEGROUP @"/homegrps" //홈그룹 리스트 - 폐기
  77. //#define API_POST_HOMEGROUP_LOCATION @"/member/homegrp/location" //홈 위치 등록
  78. //12 - 초대
  79. #define API_GET_HOMEGROUP_MEMBERS @"/customer/%@/group/%@/member" //홈그룹 멤버 목록
  80. #define API_POST_HOMEGROUP_MEMBER_INVITE @"/customer/%@/group/%@/invite" //홈멤버 초대
  81. #define API_POST_HOMEGROUP_INVITE_QUIZ @"/quiz" //홈멤버 초대시 퀴즈 목록
  82. //#define API_POST_HOMEGROUP_MEMBER_UPDATE @"/homegrp_members/%@" //홈멤버 업데이트 - 폐기
  83. //#define API_POST_HOMEGROUP_MEMBER_VALIDATE @"/homegrp_members/email_validation" //홈그룹 멤버 유효성체크 - 폐기
  84. #define API_DELETE_HOMEGROUP_MEMBER @"/customer/%@/group/%@/member" //홈멤버 삭제 - 삭제 / 초대취소
  85. #define API_DELETE_HOMEGROUP_MEMBER_SELF @"/customer/%@/group/%@/member/%@" //홈멤버 삭제 - 자진 탈퇴
  86. #define API_PUT_HOMEGROUP_MASTER_TRANSFER @"/customer/%@/group/%@/member/%@/master/grade" //마스터 권한 양도 변경 신청
  87. #define API_PUT_HOMEGROUP_GRADE @"/customer/%@/group/%@/member/%@/grade" //마스터 권한 양도 변경 수락 처리
  88. #define API_GET_HOMEGROUP_MEMBER_VALIDATE @"/customer/%@/group/%@/member/%@/phone/%@" //홈그룹 멤버 초대 유효성 체크
  89. #define API_POST_HOMEGROUP_UPDATE_IMAGE @"/homegrp/update_image" //홈그룹 이미지 수정
  90. #define API_GET_HOMEGROUP_MEMBER_INVITATIONS @"/homegrp_members/invitations" //홈그룹 초대 목록 조회
  91. #define API_POST_HOMEGROUP_MEMBER_INVITATIONS @"/homegrp_members/invitations" //홈그룹 초대 수락/거절
  92. //20 - dashboard
  93. #define API_GET_DASHBOARD @"/customer/%@/group/%@/dashboard" //대시보드 정보 조회
  94. #define API_GET_DASHBOARD_MODE_LIST @"customer/%@/group/%@/mode" //대시보드 모드 조회
  95. //#define API_POST_DASHBOARD_MODE_CHANGE @"/modes/%@/current_mode" //대시보드 모드 변경
  96. #define API_PUT_DASHBOARD_MODE_CHANGE @"/customer/%@/group/%@/mode" //대시보드 모드 변경
  97. #define API_GET_MODE_STATUS @"/modes/%@/status" //홈모드 변경 결과 조회
  98. //30 - Things
  99. #define API_GET_HOMEHUB_STATUS @"/devices/homehub/status" //홈허브 상태 조회
  100. //#define API_GET_GROUPS_DEVICES @"/groups/devices" //그룹 리스트 조회
  101. //#define API_POST_GROUP @"/groups" //그룹 생성
  102. //#define API_POST_GROUP_ADD @"/groups/devices/%@" //그룹에 장치 추가
  103. //#define API_POST_GROUP_UPDATE @"/groups/%@" //그룹 수정
  104. //#define API_DELETE_GROUP @"/groups/%@" //그룹 삭제
  105. //#define API_POST_GROUP_DELETE @"/groups/devices/%@" //그룹 내 디바이스 삭제
  106. #define API_PARAM_PAGING @"?paging_datetime=%@&paging_type=%@"
  107. #define API_GET_DEVICE_LIST @"/customer/%@/group/%@/device" //Device 목록 조회(홈허브 리스트)
  108. #define API_GET_NODE_LIST @"/customer/%@/group/%@/node" //노드 목록 조회(장치목록)
  109. #define API_GET_DEVICE_DETAIL @"/devices/%@"
  110. #define API_POST_NODE_COMMAND @"/devices/%@/nodes/%@/commands"
  111. #define API_PUT_DEVICE_INFO @"/customer/%@/group/%@/device" //Device/Node 속성 변경
  112. #define API_PUT_NODE_ORDER_RESET @"/customer/%@/group/%@/device/seq/init" //디바이스 노드 순서 초기화
  113. #define API_PUT_NODE_ORDER_CHANGE @"/customer/%@/group/%@/device/seq" //디바이스 노드 순서 변경
  114. #define API_GET_NODE_DETAIL @"/customer/%@/group/%@/device/%@/node/%@"
  115. #define API_GET_DEVICE_ICONS @"/devices/icons/%@" //디바이스 아이콘
  116. #define API_GET_DEVICE_UPDATE @"/devices/property/%@" //디바이스 수정
  117. #define API_DELETE_DEVICE @"/devices/%@" //디바이스 삭제
  118. #define API_GET_DEVICE_HOMEHUB_STATUS @"/devices/homehub/status" //홈허브 장치 상태 정보 조회
  119. #define API_GET_DEVICE_NODE_STATUS @"/devices/nodes?ids=%@" //복수 - 노드(커맨드클래스) 마지막 상태 값 조회
  120. #define API_GET_DEVICE_WARN_NODES @"/devices/warning_nodes" //경고 필요한 장치 조회
  121. #define API_GET_PARTNER_QR @"/devices/partner_device/ownership" //장치 유효성 검사
  122. #define API_POST_PARTNER_QR @"/devices/partner_device/ownership" //장치 소유권 등록/이전
  123. #define API_POST_DEVICE_INCLUSION @"/devices/%@/commands/status" //하위 장치 추가 제어 명령 실행 (인클루전)
  124. #define API_GET_DEVICE_COMMAND @"/devices/%@/commands/status" //장치 상태(Polling) 제어 명령 조회
  125. #define API_DELETE_DEVICE_EXCLUSION @"/devices/%@/commands/status" //하위 장치 삭제 제어 명령 실행 (익스클루전)
  126. #define API_GET_DEVICE_TYPES @"/devices/device_class/%@" //장치 유형 조회(Device Class)
  127. #define API_POST_DEVICE_TYPES @"/devices/device_class/%@" //장치 유형 변경(Device Class)
  128. //40 - Rules
  129. #define API_GET_RULE @"/customer/%@/group/%@/rule"
  130. #define API_GET_RULE_DETAIL @"/rules/%@"
  131. #define API_POST_RULE_STATUS @"/rules/%@/status"
  132. #define API_POST_RULE @"/rules"
  133. #define API_DELETE_RULE @"/rules/%@"
  134. #define API_POST_RULE_MODIFY @"/rules/%@"
  135. #define API_GET_RULE_CMDCLS @"/rules/cmdcls/%@"
  136. #define API_GET_RULE_MOBILE @"/rules/mobile_devices"
  137. #define API_GET_RULE_MEMBERS @"/rules/mobile_members"3
  138. #define API_GET_ITEM_DEVICES @"/customer/%@/group/%@/rule/device/item/%@"
  139. #define API_GET_PRERULE_LIST @"/predefined_rules"
  140. #define API_GET_PRERULE_DETAIL @"/predefined_rules/%@"
  141. #define API_GET_PRERULE_DEVICES @"/predefined_rules/%@/devices/%@"
  142. //50 - Scenes
  143. #define API_GET_SCENE @"/scenes"
  144. #define API_POST_SCENE_HOMEMODE @"/mode_scenes/%@"
  145. #define API_GET_DETAIL_HOMEMODE @"/customer/%@/group/%@/mode/%@/rule" //모드의 규칙 상세 조회
  146. #define API_POST_MODIFY_HOMEMODE @"/customer/%@/group/%@/mode/%@/rule" //모드의 규칙 등록 / 수정
  147. #define API_DELETE_DELETE_HOMEMODE @"/customer/%@/group/%@/mode/%@/rule" //모드의 규칙 삭제
  148. #define API_POST_SCENE_EXECUTE @"/scenes/%@/execution"
  149. #define API_POST_SCENE @"/scenes"
  150. #define API_DELETE_SCENE @"/scenes/%@"
  151. #define API_POST_SCENE_MODIFY @"/scenes/%@"
  152. #define API_GET_SCENE_CMDCLS @"/scenes/cmdcls"
  153. #define API_GET_PRESCENE_LIST @"/predefined_scenes"
  154. #define API_GET_PRESCENE_DETAIL @"/predefined_scenes/%@"
  155. #define API_GET_PRESCENE_DEVICES @"/predefined_scenes/%@/devices/%@"
  156. //60 - 기타
  157. #define API_GET_LOCATION_CODES @"/weather/location"
  158. #define URL_PATH_TERMS @"/document/terms.html" //http://61.40.220.23:7794/document/terms.html
  159. #define URL_PATH_POLICY @"/document/private-polish.html" //http://61.40.220.23:7794/document/private-polish.html
  160. #define URL_LOGO @"/images/logo.png"
  161. //70 - 공지사항
  162. #define API_GET_NOTICE_COUNT @"/notices/count" //공지 및 알림 카운트
  163. //#define API_GET_NOTICE @"/notices" //공지 목록 조회
  164. #define API_GET_NOTICE @"/customer/%@/group/%@/notices" //공지 목록 조회
  165. //80 - 메시지
  166. //#define API_GET_NOTICE_PERSONAL @"/notices/personal" //알림 목록 조회
  167. #define API_GET_NOTICE_PERSONAL @"/customer/%@/group/%@/messages" //알림 목록 조회
  168. //90 - FAQ
  169. #define API_GET_FAQ @"/faq" // FAQ 목록 조회
  170. #define API_GET_FAQ_DETAIL @"/faq/"
  171. //#define API_GET_FAQ @"/customer/%@/group/%@/faq" // FAQ 목록 조회
  172. //100 - 휴대폰 번호 변경
  173. #define API_PUT_CHANGE_PHONE_NUM @"/customer/%@/group/%@/member/%@/phone" // 휴대폰 번호 변경
  174. #define API_POST_REQUEST_AUTH_NUM @"/phone/request" // 휴대폰 번호 인증 요청
  175. //110 - 회원가입
  176. #define API_POST_RESPONSE_AUTH_NUM @"/phone/response" // 휴대폰 번호 인증 확인
  177. #define API_GET_ID_CHK @"/customer/%@/group/%@/member/%@/exist" // ID 중복 체크
  178. #define API_POST_QUIZ_SEND @"/customer/%@/group/%@/quiz/response" // 초대맴버 인증퀴즈 확인
  179. #define API_POST_REQUEST_QUIZ @"/customer/%@/group/%@/quiz/request" // 초대맴버 인증퀴즈 요청
  180. #define API_POST_MASTER_SIGN_UP @"/master" //마스터 회원가입
  181. #define API_POST_SIMPLE_SIGN_UP @"/member" //일반 회원가입
  182. #define API_POST_ID_FIND @"/customer/%@/member/find" //아이디 찾기
  183. #define API_POST_PW_FIND @"/customer/member/%@/password" //비밀번호 찾기
  184. //도움말 URL
  185. #define URL_HELP_MAIL @"mailto:help@allofthings.com"
  186. #define URL_PATH_HELP @"/html/page_app/app_help_01.html"
  187. //앱스토어 링크
  188. #define URL_APP_UPDATE @"https://itunes.apple.com/kr/app/geullobeol-seumateusiti/id1081298508?mt=8"
  189. //Global Menu Id
  190. //메뉴 이름, 메뉴 아이디, 부모-자식,
  191. typedef NS_ENUM(NSInteger, KNMenuId) {
  192. KNMenuIdNone = -1,
  193. KNMenuIdLogin = 0,
  194. KNMenuIdDashboard,
  195. KNMenuIdThings,
  196. KNMenuIdScenes,
  197. KNMenuIdRules,
  198. KNMenuIdManagement,
  199. KNMenuIdHomeLog,
  200. KNMenuIdHomeMember,
  201. KNMenuIdLogout,
  202. KNMenuIdSettings,
  203. KNMenuIdHelp,
  204. KNMenuIdTutorial
  205. };
  206. // MorePopup 버튼
  207. typedef enum MorePopupBtnType {
  208. none = 30001,
  209. masterChange,
  210. add,
  211. del,
  212. reload,
  213. } MorePopupBtnType;
  214. #define HOME_MODE_HOME @"HOME"
  215. #define HOME_MODE_AWAY @"AWAY"
  216. #define HOME_MODE_MORNING @"MORNING"
  217. #define HOME_MODE_NIGHT @"NIGHT"
  218. #define MOBILE_SERVICE_ID @"30001" //for OneCable
  219. #define MOBILE_DEVICE_TYPE @"MI" //디바이스 타입
  220. #define APPSTORE_TYPE @"A"
  221. #define KNEET_DEVICE_CHECKIN @"TRUE"
  222. #define KNEET_DEVICE_CHECKOUT @"FALSE"
  223. #define KNEET_DEVICE_INCLUSION @"INC"
  224. #define KNEET_DEVICE_EXCLUSION @"EXC"
  225. #define KNEET_DEVICE_WAITING @"WAT"
  226. #define KNEET_MEMBER_MASTER @"MAS"//@"MAS"
  227. #define KNEET_MEMBER_SIMPLE @"SIM"//@"SIM"
  228. #define KNEET_MEMBER_TYPE_HOME @"01" //멤버
  229. #define KNEET_MEMBER_TYPE_INV @"02" //초대중
  230. #define API_RESPONSE_UNAUTHORIZED_TOKEN @"401"
  231. #define API_RESPONSE_UNAUTHORIZED_EMAIL @"401-101"
  232. #define API_RESPONSE_UNAUTHORIZED_DEVICE @"401-103"
  233. #define API_RESPONSE_UNAUTHORIZED_HOME @"400-104"
  234. #define API_RESPONSE_MOBILES_OVER @"401-105"
  235. //UserDefaults - for app
  236. #define USDEF_APP_APPINIT @"KneetAppInit"
  237. #define USDEF_APP_AUTO_LOGIN @"KneetAppAutoLogin"
  238. #define USDEF_APP_SAVE_ID @"KneetAppSaveID"
  239. #define USDEF_APP_USERID_LIST @"KneetAppUserIdList"
  240. //#define USER_DEF_MOBILE_ID @"KneetMobileDeviceId"
  241. //#define USER_DEF_MOBILE_AUTHOR @"KneetMobileDeviceAuthorization"
  242. //#define USER_DEF_GEOFENCE @"KneetMobileDeviceGeoFence"
  243. //#define USER_DEF_GEOFENCE_SENSORS @"KneetMobileDeviceGeoFence"
  244. //#define USER_DEF_POPUP_URL @"KneetIntroPopUpURL"
  245. //#define USER_DEF_POPUP_SHOW @"KneetIntroPopUpShow"
  246. #define USDEF_APP_TMP_EMAIL @"KneetAppTempUserEmail"
  247. //UserDefaults - for session
  248. #define USDEF_SESSION_NEW_EMAIL @"KneetNewUserEmail"
  249. #define USDEF_SESSION_MODE_CHANGE @"KneetModeChange"
  250. #define USDEF_SESSION_AUTOTOKEN @"KneetSessionLoginAuthToken"
  251. #define USDEF_SESSION_NOTICE_READ_DATE @"KneetSessionNoticeReadDatetime"
  252. #define USDEF_SESSION_PUSH_READ_DATE @"KneetPushNoticeReadDatetime"
  253. #define USDEF_SESSION_LOGIN_ID @"KneetSessionLoginId"
  254. #define USDEF_SESSION_LOGIN_PWD @"KneetSessionLoginPwd"
  255. //Constants
  256. #define ksKneetRulesDisable @"X"
  257. #define ksYES @"Y"
  258. #define ksNO @"N"
  259. #define ksRetire @"R"
  260. #define ksTrue @"true"
  261. #define ksFalse @"false"
  262. #define ksControlLeft @"L"
  263. #define ksControlRight @"R"
  264. #define ksControlUp @"U"
  265. #define ksControlDown @"D"
  266. #define ksTimezoneKorea @"0024"
  267. #define ksDataTypeCodeInteger @"01" // integer
  268. #define ksDataTypeCodeFloat @"02" // float
  269. #define ksDataTypeCodeString @"03" // string
  270. #define ksDataTypeCodeBoolean @"04" // boolean
  271. #define ksDataTypeCodeDateTime @"05" // datetime
  272. #define ksDataTypeCodeTime @"06" // time
  273. #define ksDayOfWeekMON @"MON"
  274. #define ksDayOfWeekTUE @"TUE"
  275. #define ksDayOfWeekWED @"WED"
  276. #define ksDayOfWeekTHU @"THU"
  277. #define ksDayOfWeekFRI @"FRI"
  278. #define ksDayOfWeekSAT @"SAT"
  279. #define ksDayOfWeekSUN @"SUN"
  280. #define kdListPagginSize 15
  281. #define ksListPagingTypeUpward @"U"
  282. #define ksListPagingTypeDownward @"D"
  283. //Color Definition
  284. #define kUIBodyColor RGBCOLOR(243.0f, 243.0f, 243.0f) //전체 배경컬러
  285. #define kUIBgColor01 RGBCOLOR(241, 241, 241) //기본 버튼 배경컬러
  286. #define kUIBgColor02 RGBCOLOR(39.0f, 63.0f, 135.0f) //기본 버튼 press컬러
  287. #define kUIBgColor03 RGBCOLOR(116.0f, 147.0f, 204.0f) //슬라이드 인 메뉴 상단 컬러
  288. #define kUIBgColor04 [UIColor whiteColor] //화이트 배경
  289. #define kUIBgColor05 RGBCOLOR(187.0f, 187.0f, 187.0f) //취소 버튼 등 그레이컬러
  290. #define kUIBgColor06 RGBCOLOR(150.0f, 150.0f, 150.0f) //취소 버튼 press 컬러
  291. #define kUIBgColor07 RGBCOLOR(248.0f, 248.0f, 248.0f) //리스트 그레이 컬러
  292. #define kUILineColor RGBCOLOR(255.0f, 110.0f, 43.0f) //구분라인 1 - orange
  293. #define kUILineColor2 RGBCOLOR(187, 187, 187) //구분라인 2 - 박스 내,
  294. #define kUIFontColor01 setColor(@"#000000")
  295. //#define kUITextColor01 RGBCOLOR(51, 51, 51) //기본 컬러
  296. //#define kUITextColor02 RGBCOLOR(46, 141, 205) //포인트 컬러 - 블루
  297. //#define kUITextColor03 RGBCOLOR(170, 170, 170) //연한 컬러
  298. //#define kUITextColor04 [UIColor whiteColor] //화이트 컬러
  299. //#define kUITextGreenColor05 RGBCOLOR(0, 193 , 136 ) //녹색 컬러
  300. //#define kUITextBlackColor06 [UIColor blackColor] //블랙 컬러
  301. ////Size Definition
  302. //#define kUIFontSize01 14.0f //기본사이즈
  303. //#define kUIFontSize02 15.0f //리스트 타이틀 / input text
  304. //#define kUIFontSize03 29.0f //head size
  305. //#define kUIFontSize04 12.0f //설명 등 작은 사이즈
  306. //#define kUIFontSize05 17.0f //기본 버튼 / 팝업 타이틀 / things list value
  307. //#define kUIFontSize06 11.0f //예외 매우 작은 사이즈
  308. //#define kUIFontSize07 26.0f //things detail value 아주 큰 글씨
  309. //#define kUIFontSize08 36.0f //장치 상세
  310. #define kUITextColorCode06 @"#caced8"
  311. #define kUITextColor01 setColor(@"#000000") //기본 컬러 black
  312. #define kUITextColor02 setColor(@"#00C188") //포인트 컬러 - 녹색
  313. #define kUITextColor03 setColor(@"#888FA8") //연한 회색 컬러
  314. #define kUITextColor04 setColor(@"#039ADF") //포인트 컬러 - 블루
  315. #define kUITextColor05 setColor(@"#ffffff") //화이트 컬러
  316. #define kUITextColor06 setColor(@"#f4f5f6") //Disable 폰트 컬러
  317. #define kUITextColor07 setColor(@"#ed1c24") //경고 폰트 컬러
  318. #define kUITextColor08 setColor(@"#caced8") //Disable 폰트 컬러(진한)
  319. //#define kUITextGreenColor05 setColor(@"#00C188") //녹색 컬러
  320. //#define kUITextBlackColor06 setColor(@"#000000") //블랙 컬러
  321. //Size Definition
  322. #define kUIFontSize01 14.0f // -
  323. #define kUIFontSize02 18.0f // 본문 내 리스트 타이틀 ( 멤버초대 본문 내 타이틀 )
  324. #define kUIFontSize03 17.0f // Head Size ( 페이지 헤더 / 헤더 콤보박스)
  325. #define kUIFontSize04 16.0f // 기본 사이즈 ( 본문 텍스트 / 팝업 창 본문 텍스트 / 인풋 텍스트 )
  326. #define kUIFontSize05 22.0f // 페이지 내 강조 폰트 ( 열림 닫힘 , 마스터 표시 등 )
  327. #define kUIFontSize06 14.0f // 예외, 매우 작은 사이즈
  328. #define kUIFontSize07 34.0f // 매우 큰 사이즈 ( 장치 상태 표시 )
  329. #define kUIFontSize08 20.0f // 팝업창 타이틀
  330. #define kUIFontSize09 17.0f // 하단 기본 버튼 / 팝업창 하단 버튼
  331. //UI Constants
  332. #define kfNavigationBarHeight 75.0f
  333. #define kfMainTabBarHeight 70.0f
  334. #define kfBoxCap 1.0f
  335. #define kfPageBottomMargin 20.0f
  336. #define kfTransitionRightDur 0.3f
  337. //#define kfLabelSizeFont01 18.0f
  338. //#define kfLabelSizeFont03 15.0f
  339. //
  340. //#define kfScrollHeightForOlder 70.0f //스크롤뷰의 이전 조회 시 추가값.
  341. //메시지 정의
  342. #define MSG_ALERT_APP_UPDATE NSLocalizedString(@"새로운 업데이트 버전이 출시되었습니다.\n확인을 누르시면 업데이트 페이지로\n이동합니다.", @"새로운 업데이트 버전이 출시되었습니다.\n확인을 누르시면 업데이트 페이지로\n이동합니다.")
  343. #define MSG_ALERT_ERROR_CRITICAL NSLocalizedString(@"사용할수 없습니다.\n앱 종료 후 다시 시도하세요.", @"사용할수 없습니다.\n앱 종료 후 다시 시도하세요.")
  344. #define MSG_ALERT_SERVER_FAIL NSLocalizedString(@"서버에 연결할 수 없습니다.\n다시 시도하세요.", @"서버에 연결할 수 없습니다.\n다시 시도하세요.")
  345. #define MSG_CAMERA_DISABLE NSLocalizedString(@"[설정 > 개인정보보호 > 카메라]에서\n글로벌스마트시티 앱을 활성화 상태로 설정해주세요", @"[설정 > 개인정보보호 > 카메라]에서\n글로벌스마트시티 앱을 활성화 상태로 설정해주세요")
  346. #define MSG_NOT_WIFI_STREAM NSLocalizedString(@"WiFi 미연결 상태에서는\n데이터 통화료가 과도하게\n부과될 수 있으니 주의하세요", @"WiFi 미연결 상태에서는\n데이터 통화료가 과도하게\n부과될 수 있으니 주의하세요")
  347. //kneet2_Definitions_h
  348. #endif