mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Objective-C
		
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Objective-C
		
	
| //
 | |
| //  Copyright (c) 2019 Open Whisper Systems. All rights reserved.
 | |
| //
 | |
| 
 | |
| #import <YapDatabase/YapDatabaseTransaction.h>
 | |
| 
 | |
| @class ECKeyPair;
 | |
| @class PreKeyRecord;
 | |
| @class PreKeyBundle;
 | |
| @class SignedPreKeyRecord;
 | |
| 
 | |
| NS_ASSUME_NONNULL_BEGIN
 | |
| 
 | |
| @interface YapDatabaseReadTransaction (OWS)
 | |
| 
 | |
| - (BOOL)boolForKey:(NSString *)key inCollection:(NSString *)collection defaultValue:(BOOL)defaultValue;
 | |
| - (int)intForKey:(NSString *)key inCollection:(NSString *)collection;
 | |
| - (nullable NSDate *)dateForKey:(NSString *)key inCollection:(NSString *)collection;
 | |
| - (nullable NSDictionary *)dictionaryForKey:(NSString *)key inCollection:(NSString *)collection;
 | |
| - (nullable NSString *)stringForKey:(NSString *)key inCollection:(NSString *)collection;
 | |
| - (nullable NSData *)dataForKey:(NSString *)key inCollection:(NSString *)collection;
 | |
| - (nullable ECKeyPair *)keyPairForKey:(NSString *)key inCollection:(NSString *)collection;
 | |
| 
 | |
| @end
 | |
| 
 | |
| #pragma mark -
 | |
| 
 | |
| @interface YapDatabaseReadWriteTransaction (OWS)
 | |
| 
 | |
| #pragma mark - Debug
 | |
| 
 | |
| #if DEBUG
 | |
| - (void)snapshotCollection:(NSString *)collection snapshotFilePath:(NSString *)snapshotFilePath;
 | |
| - (void)restoreSnapshotOfCollection:(NSString *)collection snapshotFilePath:(NSString *)snapshotFilePath;
 | |
| #endif
 | |
| 
 | |
| - (void)setBool:(BOOL)value forKey:(NSString *)key inCollection:(NSString *)collection;
 | |
| - (void)setDate:(NSDate *)value forKey:(NSString *)key inCollection:(NSString *)collection;
 | |
| 
 | |
| @end
 | |
| 
 | |
| NS_ASSUME_NONNULL_END
 |