5 // Created by Andy Matuschak on 3/12/06.
6 // Copyright 2006 Andy Matuschak. All rights reserved.
9 #ifndef SUAPPCASTITEM_H
10 #define SUAPPCASTITEM_H
12 #if __has_feature(modules)
13 #if __has_warning("-Watimport-in-framework-header")
14 #pragma clang diagnostic ignored "-Watimport-in-framework-header"
18 #import <Foundation/Foundation.h>
23 SU_EXPORT @interface SUAppcastItem
: NSObject
24 @
property (copy
, readonly
) NSString
*title
;
25 @
property (copy
, readonly
) NSString
*dateString
;
26 @
property (copy
, readonly
) NSDate
*date
;
27 @
property (copy
, readonly
) NSString
*itemDescription
;
28 @
property (strong
, readonly
) NSURL
*releaseNotesURL
;
29 @
property (strong
, readonly
) SUSignatures
*signatures
;
30 @
property (copy
, readonly
) NSString
*minimumSystemVersion
;
31 @
property (copy
, readonly
) NSString
*maximumSystemVersion
;
32 @
property (strong
, readonly
) NSURL
*fileURL
;
33 @
property (nonatomic
, readonly
) uint64_t contentLength
;
34 @
property (copy
, readonly
) NSString
*versionString
;
35 @
property (copy
, readonly
) NSString
*osString
;
36 @
property (copy
, readonly
) NSString
*displayVersionString
;
37 @
property (copy
, readonly
) NSDictionary
*deltaUpdates
;
38 @
property (strong
, readonly
) NSURL
*infoURL
;
39 @
property (copy
, readonly
) NSNumber
* phasedRolloutInterval
;
40 @
property (copy
, readonly
) NSString
*minimumAutoupdateVersion
;
42 // Initializes with data from a dictionary provided by the RSS class.
43 - (instancetype
)initWithDictionary
:(NSDictionary
*)dict
;
44 - (instancetype
)initWithDictionary
:(NSDictionary
*)dict failureReason
:(NSString
**)error
;
46 @
property (getter
=isDeltaUpdate
, readonly
) BOOL deltaUpdate
;
47 @
property (getter
=isCriticalUpdate
, readonly
) BOOL criticalUpdate
;
48 @
property (getter
=isMacOsUpdate
, readonly
) BOOL macOsUpdate
;
49 @
property (getter
=isInformationOnlyUpdate
, readonly
) BOOL informationOnlyUpdate
;
51 // Returns the dictionary provided in initWithDictionary; this might be useful later for extensions.
52 @
property (readonly
, copy
) NSDictionary
*propertiesDictionary
;