-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBugSplatAttachment.h
37 lines (28 loc) · 1.16 KB
/
BugSplatAttachment.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// BugSplatAttachment.h
//
// Copyright © BugSplat, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface BugSplatAttachment : NSObject
/**
The filename the attachment should get
*/
@property (nonatomic, readonly, strong, nonnull) NSString *filename;
/**
The attachment data as NSData object
*/
@property (nonatomic, readonly, strong, nonnull) NSData *attachmentData;
/**
The content type of your data as MIME type
*/
@property (nonatomic, readonly, strong, nonnull) NSString *contentType;
/**
Create an BugSplatAttachment instance with a given filename and NSData object
@param filename The filename the attachment should get. If nil will get a automatically generated filename
@param attachmentData The attachment data as NSData. The instance will be ignore if this is set to nil!
@param contentType The content type of your data as MIME type. If nil will be set to "application/octet-stream"
@return An instsance of BugSplatAttachment
*/
- (nonnull instancetype)initWithFilename:(nonnull NSString *)filename attachmentData:(nonnull NSData *)attachmentData contentType:(nonnull NSString *)contentType;
@end