2018-11-21 01:38:43 -07:00
|
|
|
//
|
|
|
|
|
// MBIMDataResponse.m
|
|
|
|
|
// kordophoned
|
|
|
|
|
//
|
|
|
|
|
// Created by James Magahern on 11/20/18.
|
|
|
|
|
// Copyright © 2018 James Magahern. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import "MBIMDataResponse.h"
|
|
|
|
|
|
|
|
|
|
@implementation MBIMDataResponse {
|
|
|
|
|
NSString *_contentType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (instancetype)initWithData:(NSData *)data contentType:(NSString *)contentType
|
|
|
|
|
{
|
|
|
|
|
self = [super initWithData:data];
|
|
|
|
|
if (self) {
|
|
|
|
|
_contentType = contentType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (NSDictionary *)httpHeaders
|
|
|
|
|
{
|
|
|
|
|
return @{
|
2019-03-03 14:23:54 -08:00
|
|
|
@"Content-Type" : _contentType ?: @"application/octet-stream"
|
2018-11-21 01:38:43 -07:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@end
|