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)
15 #import <Foundation/Foundation.h>
20 SU_EXPORT @interface SUAppcastItem
: NSObject
21 @
property (copy
, readonly
) NSString
*title
;
22 @
property (copy
, readonly
) NSString
*dateString
;
23 @
property (copy
, readonly
) NSString
*itemDescription
;
24 @
property (strong
, readonly
) NSURL
*releaseNotesURL
;
25 @
property (strong
, readonly
) SUSignatures
*signatures
;
26 @
property (copy
, readonly
) NSString
*minimumSystemVersion
;
27 @
property (copy
, readonly
) NSString
*maximumSystemVersion
;
28 @
property (strong
, readonly
) NSURL
*fileURL
;
29 @
property (nonatomic
, readonly
) uint64_t contentLength
;
30 @
property (copy
, readonly
) NSString
*versionString
;
31 @
property (copy
, readonly
) NSString
*osString
;
32 @
property (copy
, readonly
) NSString
*displayVersionString
;
33 @
property (copy
, readonly
) NSDictionary
*deltaUpdates
;
34 @
property (strong
, readonly
) NSURL
*infoURL
;
36 // Initializes with data from a dictionary provided by the RSS class.
37 - (instancetype
)initWithDictionary
:(NSDictionary
*)dict
;
38 - (instancetype
)initWithDictionary
:(NSDictionary
*)dict failureReason
:(NSString
**)error
;
40 @
property (getter
=isDeltaUpdate
, readonly
) BOOL deltaUpdate
;
41 @
property (getter
=isCriticalUpdate
, readonly
) BOOL criticalUpdate
;
42 @
property (getter
=isMacOsUpdate
, readonly
) BOOL macOsUpdate
;
43 @
property (getter
=isInformationOnlyUpdate
, readonly
) BOOL informationOnlyUpdate
;
45 // Returns the dictionary provided in initWithDictionary; this might be useful later for extensions.
46 @
property (readonly
, copy
) NSDictionary
*propertiesDictionary
;