mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
Refactored http communications to be more abstract and OOP
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// AppAssetResponse.m
|
||||
// Limelight
|
||||
//
|
||||
// Created by Diego Waxemberg on 2/1/15.
|
||||
// Copyright (c) 2015 Limelight Stream. All rights reserved.
|
||||
//
|
||||
|
||||
#import "AppAssetResponse.h"
|
||||
|
||||
@implementation AppAssetResponse
|
||||
@synthesize data, statusCode, statusMessage;
|
||||
|
||||
- (void)populateWithData:(NSData *)imageData {
|
||||
self.data = imageData;
|
||||
self.statusMessage = @"App asset has no status message";
|
||||
self.statusCode = -1;
|
||||
}
|
||||
|
||||
- (UIImage*) getImage {
|
||||
UIImage* appImage = [[UIImage alloc] initWithData:self.data];
|
||||
return appImage;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user