MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPDataSetCacheItem.h
Go to the documentation of this file.
1//
2// MPDataSetCacheItem.h
3// MapsIndoors
4//
5// Created by Daniel Nielsen on 03/02/2020.
6// Copyright © 2020 MapsPeople A/S. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import "MPDataSetEnums.h"
11#import "MPSolution.h"
12
13NS_ASSUME_NONNULL_BEGIN
14
15
19@interface MPDataSetCacheItem : NSObject
20
25- (instancetype)initWithId:(NSString*)itemId;
26
30@property (nonatomic, readonly, strong) NSString* cachingItemId;
31
35@property (nonatomic, readonly, strong, nullable) NSString* name;
36
40@property (nonatomic, readonly, strong, nullable) NSString* language;
41
45@property (nonatomic, readonly) MPDataSetCachingStrategy cachingStrategy;
46
50@property (nonatomic, readonly) MPDataSetCacheScope cachingScope;
51
55@property (nonatomic, readonly) BOOL isCached;
56
60//@property (nonatomic, readonly) BOOL isScheduledForSync;
61
65@property (nonatomic, readonly) BOOL isSyncing;
66
70@property (nonatomic, readonly, strong, nullable) NSDate* cachedTimestamp;
71
75@property (nonatomic, readonly) NSUInteger cachedSize;
76
81@property (nonatomic, readonly, strong, nullable) NSDate* syncTimestamp;
82
86@property (nonatomic, readonly, strong, nullable) NSError* syncResult;
87
91@property (nonatomic, readonly) NSUInteger syncSize;
92
93@end
94
95NS_ASSUME_NONNULL_END
MPDataSetCachingStrategy
Definition MPDataSetEnums.h:39
MPDataSetCacheScope
Definition MPDataSetEnums.h:15
Definition MPDataSetCacheItem.h:20
NSError * syncResult
Definition MPDataSetCacheItem.h:86
NSDate * syncTimestamp
Definition MPDataSetCacheItem.h:81
NSUInteger cachedSize
Definition MPDataSetCacheItem.h:75
NSString * language
Definition MPDataSetCacheItem.h:40
MPDataSetCachingStrategy cachingStrategy
Definition MPDataSetCacheItem.h:45
NSString * name
Definition MPDataSetCacheItem.h:35
NSDate * cachedTimestamp
Definition MPDataSetCacheItem.h:70
BOOL isCached
Definition MPDataSetCacheItem.h:55
NSString * cachingItemId
Definition MPDataSetCacheItem.h:30
MPDataSetCacheScope cachingScope
Definition MPDataSetCacheItem.h:50
BOOL isSyncing
Definition MPDataSetCacheItem.h:65
NSUInteger syncSize
Definition MPDataSetCacheItem.h:91