Parse and remember the IsHdrSupported app attribute

This commit is contained in:
Cameron Gutman
2018-06-02 12:32:12 -07:00
parent 2cec53ab6b
commit 59506a2364
5 changed files with 15 additions and 3 deletions
+1
View File
@@ -14,6 +14,7 @@
@property (nullable, nonatomic, retain) NSString *id;
@property (nullable, nonatomic, retain) NSData *image;
@property (nullable, nonatomic, retain) NSString *name;
@property (nonatomic) BOOL hdrSupported;
@property (nullable, nonatomic, retain) TemporaryHost *host;
NS_ASSUME_NONNULL_BEGIN
+2
View File
@@ -16,6 +16,7 @@
self.id = app.id;
self.image = app.image;
self.name = app.name;
self.hdrSupported = app.hdrSupported;
self.host = tempHost;
return self;
@@ -24,6 +25,7 @@
- (void) propagateChangesToParent:(App*)parent withHost:(Host*)host {
parent.id = self.id;
parent.name = self.name;
parent.hdrSupported = self.hdrSupported;
parent.host = host;
}