Create commands data models and add ObjectMapper.
Reviewed By: lblasa Differential Revision: D48188172 fbshipit-source-id: 10c99250f993c71976c693a691586385d111a4fd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9db2c74632
commit
ce85f44a33
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface DatabaseGetTableDataResponse : NSObject
|
||||
|
||||
@property(nonatomic, strong, readonly) NSArray<NSString*>* columns;
|
||||
@property(nonatomic, strong, readonly) NSArray<NSArray*>* values;
|
||||
@property(nonatomic, assign, readonly) NSInteger start;
|
||||
@property(nonatomic, assign, readonly) NSInteger count;
|
||||
@property(nonatomic, assign, readonly) NSInteger total;
|
||||
|
||||
- (instancetype)initWithColumns:(NSArray<NSString*>*)columns
|
||||
values:(NSArray<NSArray*>*)values
|
||||
start:(NSInteger)start
|
||||
count:(NSInteger)count
|
||||
total:(NSInteger)total;
|
||||
|
||||
@end
|
||||
|
||||
@interface DatabaseGetTableDataRequest : NSObject
|
||||
|
||||
@property(nonatomic, assign, readonly) NSInteger databaseId;
|
||||
@property(nonatomic, copy, readonly) NSString* table;
|
||||
@property(nonatomic, copy, readonly) NSString* order;
|
||||
@property(nonatomic, assign, readonly) BOOL reverse;
|
||||
@property(nonatomic, assign, readonly) NSInteger start;
|
||||
@property(nonatomic, assign, readonly) NSInteger count;
|
||||
|
||||
- (instancetype)initWithDatabaseId:(NSInteger)databaseId
|
||||
table:(NSString*)table
|
||||
order:(NSString*)order
|
||||
reverse:(BOOL)reverse
|
||||
start:(NSInteger)start
|
||||
count:(NSInteger)count;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user