Newer
Older
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
38
39
//
// HCPContentManifest.h
//
// Created by Nikolay Demyankov on 10.08.15.
//
#import <Foundation/Foundation.h>
#import "HCPJsonConvertable.h"
#import "HCPManifestDiff.h"
/**
* Model for content manifest.
* Content manifest is a configuration file, that holds the list of all web project files with they hashes.
* Used to determine which files has been removed from the project, which are added or updated.
*/
@interface HCPContentManifest : NSObject<HCPJsonConvertable>
/**
* List of web project files.
* Objects in the array are the instances of the HCPManifestFile class.
*
* @see HCPManifestFile
*/
@property (nonatomic, readonly, strong) NSArray *files;
/**
* Find differences between this manifest and the new one.
* Current object is considered as an old manifest.
*
* @param comparedManifest new manifest, relative to which we will calculate the difference
*
* @return calculated difference between manifests
* @see HCPManifestFile
* @see HCPManifestDiff
*/
- (HCPManifestDiff *)calculateDifference:(HCPContentManifest *)comparedManifest;
@end