Browse Source

- 오류수정

KaRam Kim 8 years ago
parent
commit
3f6002bf51
2 changed files with 8 additions and 3 deletions
  1. 2 0
      OneCable/Classes/Common.h
  2. 6 3
      OneCable/Classes/Definitions.h

+ 2 - 0
OneCable/Classes/Common.h

@@ -172,6 +172,7 @@ static const int ddLogLevel = DDLogLevelError;
         #define NSLogFunc()
         #define NSLogFuncObj(x)
         #define NSLog(format, ...)
+        #define SHOW_DICTIONARY_INFO(dict)
 
     #else
 static const int ddLogLevel = DDLogLevelDebug;
@@ -183,6 +184,7 @@ static const int ddLogLevel = DDLogLevelDebug;
         #define NSLogFunc()         DDLogDebug(@"%s", __PRETTY_FUNCTION__)
         #define NSLogFuncObj(x)     DDLogDebug(@"%s, %@", __PRETTY_FUNCTION__, x)
         #define NSLog(format, ...)  DDLogDebug(format, ## __VA_ARGS__)
+        #define SHOW_DICTIONARY_INFO(dict) {NSLog(@"***** Displaying Dictionary Information *****"); for (NSString *key in dict.allKeys) NSLog(@"[%@] : %@", key,[dict objectForKey:key]); NSLog(@"***** Finished Dictionary Information *****");}
     #endif
 
 #endif

+ 6 - 3
OneCable/Classes/Definitions.h

@@ -130,7 +130,7 @@ static NSInteger kMaxTimeOut = 60;      //운영
 #define API_GET_DASHBOARD                   @"/customer/%@/group/%@/dashboard"         //대시보드 정보 조회
 #define API_GET_DASHBOARD_MODE_LIST         @"/modes"                   //대시보드 모드 조회
 //#define API_POST_DASHBOARD_MODE_CHANGE      @"/modes/%@/current_mode"   //대시보드 모드 변경
-#define API_POST_DASHBOARD_MODE_CHANGE      @"/customer/%@/group/%@/mode"   //대시보드 모드 변경
+#define API_PUT_DASHBOARD_MODE_CHANGE      @"/customer/%@/group/%@/mode"   //대시보드 모드 변경
 #define API_GET_MODE_STATUS                 @"/modes/%@/status"         //홈모드 변경 결과 조회
 
 //30 - Things
@@ -183,7 +183,7 @@ static NSInteger kMaxTimeOut = 60;      //운영
 #define API_POST_RULE_MODIFY    @"/rules/%@"
 #define API_GET_RULE_CMDCLS     @"/rules/cmdcls/%@"
 #define API_GET_RULE_MOBILE     @"/rules/mobile_devices"
-#define API_GET_RULE_MEMBERS    @"/rules/mobile_members"
+#define API_GET_RULE_MEMBERS    @"/rules/mobile_members"3
 #define API_GET_ITEM_DEVICES    @"/customer/%@/group/%@/rule/device/item/%@"
 
 
@@ -193,9 +193,12 @@ static NSInteger kMaxTimeOut = 60;      //운영
 
 //50 - Scenes
 #define API_GET_SCENE           @"/scenes"
-#define API_GET_SCENE_DETAIL_HOMEMODE   @"/customer/%@/group/%@/mode/%@/rule"
 #define API_POST_SCENE_HOMEMODE @"/mode_scenes/%@"
 
+#define API_GET_DETAIL_HOMEMODE   @"/customer/%@/group/%@/mode/%@/rule" //모드의 규칙 상세 조회
+#define API_POST_MODIFY_HOMEMODE   @"/customer/%@/group/%@/mode/%@/rule" //모드의 규칙 등록 / 수정
+#define API_DELETE_DELETE_HOMEMODE   @"/customer/%@/group/%@/mode/%@/rule" //모드의 규칙 삭제
+
 #define API_POST_SCENE_EXECUTE  @"/scenes/%@/execution"
 #define API_POST_SCENE          @"/scenes"
 #define API_DELETE_SCENE        @"/scenes/%@"