//
//  CMPDataStorageProtocol.h
//  GDPR
//
//  Created by Smaato Inc on 23.04.18.
//  Copyright © 2018 Smaato Inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CMPTypes.h"

@protocol CMPDataStorageProtocol
@required

/**
 The consent string passed as a websafe base64-encoded string.
 */
@property (nonatomic, retain) NSString *consentString;

/**
 Enum that indicates    'SubjectToGDPR_Unknown'- value -1, unset.
                        'SubjectToGDPR_No' – value 0, not subject to GDPR
                        'SubjectToGDPR_Yes' – value 1, subject to GDPR,
 */
@property (nonatomic, assign) SubjectToGDPR subjectToGDPR;

/**
 String that contains the consent information for all vendors
 */
@property (nonatomic, retain) NSString *parsedVendorConsents;

/**
 String that contains the consent information for all purposes
 */
@property (nonatomic, retain) NSString *parsedPurposeConsents;

/**
 Boolean that indicates if a CMP implementing the iAB specification is present in the application
 */
@property (nonatomic, assign) BOOL cmpPresent;

/**
Clears the stored TCFv1 values in the UserDefaults
*/
- (void)clearData;

@end
