session-ios/Signal/src/textsecure/Network/API/Requests/TSUploadAttachment.m
2015-01-04 11:30:26 +01:00

32 lines
772 B
Objective-C

//
// TSUploadAttachment.m
// TextSecureiOS
//
// Created by Christine Corbett Moran on 12/3/13.
// Copyright (c) 2013 Open Whisper Systems. All rights reserved.
//
#import "TSUploadAttachment.h"
#import "TSAttachmentStream.h"
#import <AFNetworking/AFHTTPRequestOperation.h>
@interface TSUploadAttachment ()
@property(nonatomic,strong) TSAttachment* attachment;
@end
@implementation TSUploadAttachment
-(TSRequest*) initWithAttachment:(TSAttachmentStream*)attachment{
// self = [super initWithURL:attachment.attachmentURL];
// self.HTTPMethod = @"PUT";
// self.attachment = attachment;
//
// [self setHTTPBody:[self.attachment getData]];
// [self setAllHTTPHeaderFields: @{@"Content-Type": @"application/octet-stream"}];
//
// return self;
}
@end