Upgrade to Sparkle 1.21.3.
[macgdbp.git] / Sparkle.framework / Versions / A / Headers / SPUDownloadData.h
1 //
2 // SPUDownloadData.h
3 // Sparkle
4 //
5 // Created by Mayur Pawashe on 8/10/16.
6 // Copyright © 2016 Sparkle Project. All rights reserved.
7 //
8
9 #if __has_feature(modules)
10 @import Foundation;
11 #else
12 #import <Foundation/Foundation.h>
13 #endif
14
15 #import "SUExport.h"
16
17 NS_ASSUME_NONNULL_BEGIN
18
19 /*!
20 * A class for containing downloaded data along with some information about it.
21 */
22 SU_EXPORT @interface SPUDownloadData : NSObject <NSSecureCoding>
23
24 - (instancetype)initWithData:(NSData *)data textEncodingName:(NSString * _Nullable)textEncodingName MIMEType:(NSString * _Nullable)MIMEType;
25
26 /*!
27 * The raw data that was downloaded.
28 */
29 @property (nonatomic, readonly) NSData *data;
30
31 /*!
32 * The IANA charset encoding name if available. Eg: "utf-8"
33 */
34 @property (nonatomic, readonly, nullable, copy) NSString *textEncodingName;
35
36 /*!
37 * The MIME type if available. Eg: "text/plain"
38 */
39 @property (nonatomic, readonly, nullable, copy) NSString *MIMEType;
40
41 @end
42
43 NS_ASSUME_NONNULL_END