newsmemory-ios-sdk/Frameworks/react-native-sqlite-storage.../ios-arm64/Headers/SQLiteResult.h

32 lines
1.1 KiB
C
Raw Normal View History

2024-05-02 15:08:24 +00:00
/*
* SQLiteResult.h
*
* Created by Andrzej Porebski on 10/29/15.
* Copyright (c) 2015 Andrzej Porebski.
*
* This software is largely based on the SQLLite Storage Cordova Plugin created by Chris Brody & Davide Bertola.
* The implementation was adopted and converted to use React Native bindings.
*
* See https://github.com/litehelpers/Cordova-sqlite-storage
*
* This library is available under the terms of the MIT License (2008).
* See http://opensource.org/licenses/alphabetical for full text.
*/
typedef enum {
SQLiteStatus_NO_RESULT = 0,
SQLiteStatus_OK,
SQLiteStatus_ERROR
} SQLiteStatus;
@interface SQLiteResult : NSObject {}
@property (nonatomic, strong, readonly) NSNumber* status;
@property (nonatomic, strong, readonly) id message;
+ (SQLiteResult*)resultWithStatus:(SQLiteStatus)statusOrdinal messageAsString:(NSString*)theMessage;
+ (SQLiteResult*)resultWithStatus:(SQLiteStatus)statusOrdinal messageAsArray:(NSArray*)theMessage;
+ (SQLiteResult*)resultWithStatus:(SQLiteStatus)statusOrdinal messageAsDictionary:(NSDictionary*)theMessage;
@end