mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-15 21:22:40 +00:00
fixed some bugs with saving app list to database
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
|
||||
@interface AppListResponse : NSObject <Response>
|
||||
|
||||
@property Host* host;
|
||||
|
||||
- (void)populateWithData:(NSData *)data;
|
||||
- (NSArray*) getAppList;
|
||||
- (BOOL) isStatusOk;
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user