fixed some bugs with saving app list to database

This commit is contained in:
Diego Waxemberg
2015-07-10 22:19:25 -07:00
parent 642085ca32
commit 37f25c1f97
4 changed files with 26 additions and 12 deletions
+2
View File
@@ -10,6 +10,8 @@
@interface AppListResponse : NSObject <Response>
@property Host* host;
- (void)populateWithData:(NSData *)data;
- (NSArray*) getAppList;
- (BOOL) isStatusOk;
+2 -1
View File
@@ -14,7 +14,7 @@
@implementation AppListResponse {
NSMutableArray* _appList;
}
@synthesize data, statusCode, statusMessage;
@synthesize data, statusCode, statusMessage, host;
static const char* TAG_APP = "App";
static const char* TAG_APP_TITLE = "AppTitle";
@@ -98,6 +98,7 @@ static const char* TAG_APP_IS_RUNNING = "IsRunning";
App* app = [dataMan createApp];
app.name = appName;
app.id = appId;
app.host = host;
app.isRunning = appIsRunning;
if (app.id != nil) {
[_appList addObject:app];