mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-24 09:16:49 +00:00
Created http response class and added error checking
This commit is contained in:
26
Limelight/Network/HttpResponse.h
Normal file
26
Limelight/Network/HttpResponse.h
Normal file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// HttpResponse.h
|
||||
// Limelight
|
||||
//
|
||||
// Created by Diego Waxemberg on 1/30/15.
|
||||
// Copyright (c) 2015 Limelight Stream. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "Host.h"
|
||||
|
||||
@interface HttpResponse : NSObject
|
||||
|
||||
@property (nonatomic) NSInteger statusCode;
|
||||
@property (nonatomic) NSString* statusMessage;
|
||||
@property (nonatomic) NSData* responseData;
|
||||
|
||||
+ (HttpResponse*) responseWithData:(NSData*)xml;
|
||||
|
||||
- (NSString*) parseStringTag:(NSString*)tag;
|
||||
- (BOOL)parseIntTag:(NSString *)tag value:(NSInteger*)value;
|
||||
- (BOOL) isStatusOk;
|
||||
- (BOOL) populateHost:(Host*)host;
|
||||
- (NSArray*) getAppList;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user