mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-27 14:30:11 +00:00
Basic database access is working
This commit is contained in:
1 parent
fe616d86c5
commit
3076e29335
13 files changed
+274
-118
No files matched your search
@@ -7,9 +7,30 @@
|
||||
//
|
||||
|
||||
#import "TemporaryApp.h"
|
||||
#import "App.h"
|
||||
|
||||
@implementation TemporaryApp
|
||||
|
||||
- (id) initFromApp:(App*)app withTempHost:(TemporaryHost*)tempHost {
|
||||
self = [self init];
|
||||
|
||||
self.parent = app;
|
||||
|
||||
self.id = app.id;
|
||||
self.image = app.image;
|
||||
self.name = app.name;
|
||||
self.host = tempHost;
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) propagateChangesToParent {
|
||||
self.parent.id = self.id;
|
||||
self.parent.image = self.image;
|
||||
self.parent.name = self.name;
|
||||
self.parent.host = self.host.parent;
|
||||
}
|
||||
|
||||
- (NSComparisonResult)compareName:(TemporaryApp *)other {
|
||||
return [self.name caseInsensitiveCompare:other.name];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user