|
|
@@ -349,7 +349,7 @@
|
|
|
@"paging_type": _pagingType ? _pagingType : ksEmptyString};
|
|
|
|
|
|
// NSString *path = [NSString stringWithFormat:API_GET_DEVICE_LIST];
|
|
|
- NSString *path = [[JDFacade facade] getUrlWithCustAndGroupID:API_GET_DEVICE_LIST aditional:nil];
|
|
|
+ NSString *path = [[JDFacade facade] getUrlWithCustAndGroupID:API_GET_DEVICE_LIST aditional:@""];
|
|
|
|
|
|
[[RequestHandler handler] sendAsyncRequestAPIPath:path method:ksHTTPRequestGET parameters:parameter
|
|
|
modelClass:[DeviceListModel class] showLoadingView:showLoadingView completion:^(id responseObject) {
|
|
|
@@ -619,6 +619,40 @@
|
|
|
[self toggleOptions:sender];
|
|
|
}
|
|
|
|
|
|
+#pragma mark - SocketService
|
|
|
+- (void) socketDidReceiveMessage:(id)message info:(NSDictionary *)info
|
|
|
+{
|
|
|
+ SocketModel *result = (SocketModel *)message;
|
|
|
+ NSLog(@"Result Info : %@", result);
|
|
|
+ SWITCH(result.messageType)
|
|
|
+ {
|
|
|
+
|
|
|
+ CASE (@"node.register")
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ CASE (@"node.delete")
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ CASE(@"nodes.reload")
|
|
|
+ {
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+ DEFAULT
|
|
|
+ {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+- (void) socketDidFailWithError:(NSError *)error {
|
|
|
+ [[JDFacade facade] loadIndicator:NO allowUserInteraction:YES];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
#pragma mark - MemoryWarning
|
|
|
|
|
|
- (void)viewWillDisappear:(BOOL)animated {
|