diff --git a/CHANGELOG.md b/CHANGELOG.md index 860974cc..b59051a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # RELEASE HISTORY +## 5.6.0 November 15, 2019 +* added methods to the DataQueryBuilder: +``` +-(NSNumber *)getRelationsPageSize; + +-(instancetype)setRelationsPageSize:(int)relationsPageSize; +``` + ## 5.5.0 October 8, 2019 * fixed the device registration for iOS 13 and above diff --git a/Pods/Backendless.podspec b/Pods/Backendless.podspec index 520c8af4..8c225f9d 100644 --- a/Pods/Backendless.podspec +++ b/Pods/Backendless.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |spec| spec.name = 'Backendless' - spec.version = '5.5.0' + spec.version = '5.6.0' spec.license = { :type => 'Apache', :text => 'Copyright (c) 2013-2019 by Backendless.com' } spec.homepage = 'http://backendless.com' spec.authors = { 'Mark Piller' => 'mark@backendless.com' } spec.summary = 'Backendless is a Mobile Backend and API Services Platform' spec.description = 'Backendless is a development and a run-time platform. It helps software developers to create mobile and desktop applications while removing the need for server-side coding.' - spec.source = { :git => 'https://github.com/Backendless/ios-SDK.git', :tag => '5.5.0' } + spec.source = { :git => 'https://github.com/Backendless/ios-SDK.git', :tag => '5.6.0' } spec.swift_version = '5.0' spec.ios.deployment_target = '8.0' diff --git a/SDK/Podfile.lock b/SDK/Podfile.lock index f1b9dd0e..6e24139f 100644 --- a/SDK/Podfile.lock +++ b/SDK/Podfile.lock @@ -17,4 +17,4 @@ SPEC CHECKSUMS: PODFILE CHECKSUM: 5cd4b8ef98be7dc5a7082de9b679e21d33e284c4 -COCOAPODS: 1.8.1 +COCOAPODS: 1.8.4 diff --git a/SDK/backendlessAPI/Classes/Persistence/DataQueryBuilder.h b/SDK/backendlessAPI/Classes/Persistence/DataQueryBuilder.h index 57fe0c73..e8656c26 100644 --- a/SDK/backendlessAPI/Classes/Persistence/DataQueryBuilder.h +++ b/SDK/backendlessAPI/Classes/Persistence/DataQueryBuilder.h @@ -53,5 +53,7 @@ -(instancetype)addGroupByProperty:(NSString *)groupBy; -(instancetype)addGroupByProperies:(NSArray *)groupBy; -(instancetype)setHavingClause:(NSString *)havingClause; +-(NSNumber *)getRelationsPageSize; +-(instancetype)setRelationsPageSize:(int)relationsPageSize; @end diff --git a/SDK/backendlessAPI/Classes/Persistence/DataQueryBuilder.m b/SDK/backendlessAPI/Classes/Persistence/DataQueryBuilder.m index 19355e8a..38c86c8b 100644 --- a/SDK/backendlessAPI/Classes/Persistence/DataQueryBuilder.m +++ b/SDK/backendlessAPI/Classes/Persistence/DataQueryBuilder.m @@ -207,4 +207,13 @@ -(instancetype)setHavingClause:(NSString *)havingClause { return self; } +-(NSNumber *)getRelationsPageSize { + return [_queryOptionsBuilder getRelationsPageSize]; +} + +-(instancetype)setRelationsPageSize:(int)relationsPageSize { + [_queryOptionsBuilder setRelationsPageSize:relationsPageSize]; + return self; +} + @end diff --git a/SDK/backendlessAPI/Classes/Persistence/MapDrivenDataStore.m b/SDK/backendlessAPI/Classes/Persistence/MapDrivenDataStore.m index c9152970..5bb4bfe8 100644 --- a/SDK/backendlessAPI/Classes/Persistence/MapDrivenDataStore.m +++ b/SDK/backendlessAPI/Classes/Persistence/MapDrivenDataStore.m @@ -172,7 +172,7 @@ -(id)findFirst:(DataQueryBuilder *)queryBuilder { if (!queryBuilder) { return [backendless throwFault:FAULT_FIELD_IS_NULL]; } - NSArray *args = @[_tableName, [queryBuilder getRelated]?[queryBuilder getRelated]:@[], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties]]; + NSArray *args = @[_tableName, [queryBuilder getRelated]?[queryBuilder getRelated]:@[], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties], [queryBuilder getRelationsPageSize]?[queryBuilder getRelationsPageSize]:[NSNull null]]; id result = [invoker invokeSync:SERVER_PERSISTENCE_SERVICE_PATH method:METHOD_FIRST args:args responseAdapter:[MapAdapter new]]; if ([result isKindOfClass:[Fault class]]) { return [backendless throwFault:result]; @@ -193,7 +193,7 @@ -(id)findLast:(DataQueryBuilder *)queryBuilder { if (!queryBuilder) { return [backendless throwFault:FAULT_FIELD_IS_NULL]; } - NSArray *args = @[_tableName, [queryBuilder getRelated]?[queryBuilder getRelated]:@[], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties]]; + NSArray *args = @[_tableName, [queryBuilder getRelated]?[queryBuilder getRelated]:@[], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties], [queryBuilder getRelationsPageSize]?[queryBuilder getRelationsPageSize]:[NSNull null]]; id result = [invoker invokeSync:SERVER_PERSISTENCE_SERVICE_PATH method:METHOD_LAST args:args responseAdapter:[MapAdapter new]]; if ([result isKindOfClass:[Fault class]]) { return [backendless throwFault:result]; @@ -380,7 +380,7 @@ -(void)findFirst:(void(^)(id))responseBlock error:(void(^)(Fault *))errorBlock { } -(void)findFirst:(DataQueryBuilder *)queryBuilder response:(void(^)(id))responseBlock error:(void(^)(Fault *))errorBlock { - NSArray *args = @[_tableName, [queryBuilder getRelated]?[queryBuilder getRelated]:@[], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties]]; + NSArray *args = @[_tableName, [queryBuilder getRelated]?[queryBuilder getRelated]:@[], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties], [queryBuilder getRelationsPageSize]?[queryBuilder getRelationsPageSize]:[NSNull null]]; Responder *responder = [ResponderBlocksContext responderBlocksContext:responseBlock error:errorBlock]; [invoker invokeAsync:SERVER_PERSISTENCE_SERVICE_PATH method:METHOD_FIRST args:args responder:responder responseAdapter:[MapAdapter new]]; } @@ -392,7 +392,7 @@ -(void)findLast:(void(^)(id))responseBlock error:(void(^)(Fault *))errorBlock { } -(void)findLast:(DataQueryBuilder *)queryBuilder response:(void(^)(id))responseBlock error:(void(^)(Fault *))errorBlock { - NSArray *args = @[_tableName, [queryBuilder getRelated]?[queryBuilder getRelated]:@[], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties]]; + NSArray *args = @[_tableName, [queryBuilder getRelated]?[queryBuilder getRelated]:@[], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties], [queryBuilder getRelationsPageSize]?[queryBuilder getRelationsPageSize]:[NSNull null]]; Responder *responder = [ResponderBlocksContext responderBlocksContext:responseBlock error:errorBlock]; [invoker invokeAsync:SERVER_PERSISTENCE_SERVICE_PATH method:METHOD_LAST args:args responder:responder responseAdapter:[MapAdapter new]]; } diff --git a/SDK/backendlessAPI/Classes/Persistence/PersistenceService.m b/SDK/backendlessAPI/Classes/Persistence/PersistenceService.m index fd8931e9..2c732153 100755 --- a/SDK/backendlessAPI/Classes/Persistence/PersistenceService.m +++ b/SDK/backendlessAPI/Classes/Persistence/PersistenceService.m @@ -319,7 +319,7 @@ -(id)first:(Class)entity queryBuilder:(DataQueryBuilder *)queryBuilder { } [self prepareClass:entity]; NSString *entityName = [self getEntityName:[self typeClassName:entity]]; - NSArray *args = @[entityName, [queryBuilder getRelated], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties]]; + NSArray *args = @[entityName, [queryBuilder getRelated], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties], [queryBuilder getRelationsPageSize]?[queryBuilder getRelationsPageSize]:[NSNull null]]; id result = [invoker invokeSync:SERVER_PERSISTENCE_SERVICE_PATH method:METHOD_FIRST args:args responseAdapter:[[AdapterFactory new] adapterForClassName:entityName]]; if ([result isKindOfClass:[Fault class]]) { return [backendless throwFault:result]; @@ -350,7 +350,7 @@ -(id)last:(Class)entity queryBuilder:(DataQueryBuilder *)queryBuilder { } [self prepareClass:entity]; NSString *entityName = [self getEntityName:[self typeClassName:entity]]; - NSArray *args = @[entityName, [queryBuilder getRelated], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties]]; + NSArray *args = @[entityName, [queryBuilder getRelated], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties], [queryBuilder getRelationsPageSize]?[queryBuilder getRelationsPageSize]:[NSNull null]]; id result = [invoker invokeSync:SERVER_PERSISTENCE_SERVICE_PATH method:METHOD_LAST args:args responseAdapter:[[AdapterFactory new] adapterForClassName:entityName]]; if ([result isKindOfClass:[Fault class]]) { return [backendless throwFault:result]; @@ -818,7 +818,7 @@ -(void)first:(Class)entity queryBuilder:(DataQueryBuilder *)queryBuilder respons } [self prepareClass:entity]; NSString *entityName = [self getEntityName:[self typeClassName:entity]]; - NSArray *args = @[entityName, [queryBuilder getRelated], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties]]; + NSArray *args = @[entityName, [queryBuilder getRelated], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties], [queryBuilder getRelationsPageSize]?[queryBuilder getRelationsPageSize]:[NSNull null]]; [invoker invokeAsync:SERVER_PERSISTENCE_SERVICE_PATH method:METHOD_FIRST args:args responder:chainedResponder responseAdapter:[[AdapterFactory new] adapterForClassName:entityName]]; } @@ -840,7 +840,7 @@ -(void)last:(Class)entity queryBuilder:(DataQueryBuilder *)queryBuilder response } [self prepareClass:entity]; NSString *entityName = [self getEntityName:[self typeClassName:entity]]; - NSArray *args = @[entityName, [queryBuilder getRelated], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties]]; + NSArray *args = @[entityName, [queryBuilder getRelated], [queryBuilder getRelationsDepth]?[queryBuilder getRelationsDepth]:[NSNull null], [queryBuilder getProperties], [queryBuilder getRelationsPageSize]?[queryBuilder getRelationsPageSize]:[NSNull null]]; [invoker invokeAsync:SERVER_PERSISTENCE_SERVICE_PATH method:METHOD_LAST args:args responder:chainedResponder responseAdapter:[[AdapterFactory new] adapterForClassName:entityName]]; } diff --git a/SDK/backendlessAPI/Classes/Persistence/QueryOptions.h b/SDK/backendlessAPI/Classes/Persistence/QueryOptions.h index cd30262c..c6262c30 100755 --- a/SDK/backendlessAPI/Classes/Persistence/QueryOptions.h +++ b/SDK/backendlessAPI/Classes/Persistence/QueryOptions.h @@ -26,6 +26,7 @@ @property (strong, nonatomic) NSMutableArray *sortBy; @property (strong, nonatomic) NSMutableArray *related; @property (strong, nonatomic) NSNumber *relationsDepth; +@property (strong, nonatomic) NSNumber *relationsPageSize; +(instancetype)query; -(BOOL)addSortByOption:(NSString *)sortBy; diff --git a/SDK/backendlessAPI/Classes/Persistence/QueryOptionsBuilder.h b/SDK/backendlessAPI/Classes/Persistence/QueryOptionsBuilder.h index 86a62cfa..9e11b5d1 100644 --- a/SDK/backendlessAPI/Classes/Persistence/QueryOptionsBuilder.h +++ b/SDK/backendlessAPI/Classes/Persistence/QueryOptionsBuilder.h @@ -34,6 +34,8 @@ -(id)addListRelated:(NSArray *)related; -(NSNumber *)getRelationsDepth; -(id)setRelationsDepth:(int)relationsDepth; +-(NSNumber *)getRelationsPageSize; +-(id)setRelationsPageSize:(int)relationsPageSize; @end diff --git a/SDK/backendlessAPI/Classes/Persistence/QueryOptionsBuilder.m b/SDK/backendlessAPI/Classes/Persistence/QueryOptionsBuilder.m index fee10770..c5e9d2f5 100644 --- a/SDK/backendlessAPI/Classes/Persistence/QueryOptionsBuilder.m +++ b/SDK/backendlessAPI/Classes/Persistence/QueryOptionsBuilder.m @@ -27,6 +27,7 @@ @interface QueryOptionsBuilder () { NSMutableArray *_sortBy; NSMutableArray *_related; NSNumber *_relationsDepth; + NSNumber *_relationsPageSize; id _builder; } @end @@ -39,6 +40,7 @@ -(instancetype)init { _related = [NSMutableArray new]; _builder = nil; _relationsDepth = nil; + _relationsPageSize = nil; } return self; } @@ -66,6 +68,7 @@ -(QueryOptions *)build { queryOptions.sortBy = [[NSMutableArray alloc] initWithArray:_sortBy]; queryOptions.related = [[NSMutableArray alloc] initWithArray:_related]; queryOptions.relationsDepth = _relationsDepth; + queryOptions.relationsPageSize = _relationsPageSize; return queryOptions; } @@ -128,4 +131,13 @@ -(id)setRelationsDepth:(int)relationsDepth { return _builder; } +-(NSNumber *)getRelationsPageSize { + return _relationsPageSize; +} + +-(id)setRelationsPageSize:(int)relationsPageSize { + _relationsPageSize = @(relationsPageSize); + return _builder; +} + @end diff --git a/SDK/backendlessAPI/Classes/RT/RTClient.m b/SDK/backendlessAPI/Classes/RT/RTClient.m index be696494..3d7de069 100644 --- a/SDK/backendlessAPI/Classes/RT/RTClient.m +++ b/SDK/backendlessAPI/Classes/RT/RTClient.m @@ -89,7 +89,6 @@ -(void)connectSocket:(void(^)(void))connected { if (!socketCreated) { NSString *path = [@"/" stringByAppendingString:[backendless getAppId]]; NSURL *url = [NSURL URLWithString:[RTHelper lookup]]; - NSString *clientId = @""; #if !TARGET_OS_WATCH diff --git a/SDK/ios/backendless/backendless.a b/SDK/ios/backendless/backendless.a index 584f8111..e2fd3783 100644 Binary files a/SDK/ios/backendless/backendless.a and b/SDK/ios/backendless/backendless.a differ diff --git a/SDK/ios/backendless/include/DataQueryBuilder.h b/SDK/ios/backendless/include/DataQueryBuilder.h index 57fe0c73..e8656c26 100644 --- a/SDK/ios/backendless/include/DataQueryBuilder.h +++ b/SDK/ios/backendless/include/DataQueryBuilder.h @@ -53,5 +53,7 @@ -(instancetype)addGroupByProperty:(NSString *)groupBy; -(instancetype)addGroupByProperies:(NSArray *)groupBy; -(instancetype)setHavingClause:(NSString *)havingClause; +-(NSNumber *)getRelationsPageSize; +-(instancetype)setRelationsPageSize:(int)relationsPageSize; @end diff --git a/SDK/ios/backendless/include/QueryOptions.h b/SDK/ios/backendless/include/QueryOptions.h index cd30262c..c6262c30 100755 --- a/SDK/ios/backendless/include/QueryOptions.h +++ b/SDK/ios/backendless/include/QueryOptions.h @@ -26,6 +26,7 @@ @property (strong, nonatomic) NSMutableArray *sortBy; @property (strong, nonatomic) NSMutableArray *related; @property (strong, nonatomic) NSNumber *relationsDepth; +@property (strong, nonatomic) NSNumber *relationsPageSize; +(instancetype)query; -(BOOL)addSortByOption:(NSString *)sortBy; diff --git a/SDK/ios/backendless/include/QueryOptionsBuilder.h b/SDK/ios/backendless/include/QueryOptionsBuilder.h index 86a62cfa..9e11b5d1 100644 --- a/SDK/ios/backendless/include/QueryOptionsBuilder.h +++ b/SDK/ios/backendless/include/QueryOptionsBuilder.h @@ -34,6 +34,8 @@ -(id)addListRelated:(NSArray *)related; -(NSNumber *)getRelationsDepth; -(id)setRelationsDepth:(int)relationsDepth; +-(NSNumber *)getRelationsPageSize; +-(id)setRelationsPageSize:(int)relationsPageSize; @end diff --git a/SDK/lib/backendless/backendless.a b/SDK/lib/backendless/backendless.a index 869d1d53..9208b814 100644 Binary files a/SDK/lib/backendless/backendless.a and b/SDK/lib/backendless/backendless.a differ diff --git a/SDK/lib/backendless/include/DataQueryBuilder.h b/SDK/lib/backendless/include/DataQueryBuilder.h index 57fe0c73..e8656c26 100644 --- a/SDK/lib/backendless/include/DataQueryBuilder.h +++ b/SDK/lib/backendless/include/DataQueryBuilder.h @@ -53,5 +53,7 @@ -(instancetype)addGroupByProperty:(NSString *)groupBy; -(instancetype)addGroupByProperies:(NSArray *)groupBy; -(instancetype)setHavingClause:(NSString *)havingClause; +-(NSNumber *)getRelationsPageSize; +-(instancetype)setRelationsPageSize:(int)relationsPageSize; @end diff --git a/SDK/lib/backendless/include/QueryOptions.h b/SDK/lib/backendless/include/QueryOptions.h index cd30262c..c6262c30 100755 --- a/SDK/lib/backendless/include/QueryOptions.h +++ b/SDK/lib/backendless/include/QueryOptions.h @@ -26,6 +26,7 @@ @property (strong, nonatomic) NSMutableArray *sortBy; @property (strong, nonatomic) NSMutableArray *related; @property (strong, nonatomic) NSNumber *relationsDepth; +@property (strong, nonatomic) NSNumber *relationsPageSize; +(instancetype)query; -(BOOL)addSortByOption:(NSString *)sortBy; diff --git a/SDK/lib/backendless/include/QueryOptionsBuilder.h b/SDK/lib/backendless/include/QueryOptionsBuilder.h index 86a62cfa..9e11b5d1 100644 --- a/SDK/lib/backendless/include/QueryOptionsBuilder.h +++ b/SDK/lib/backendless/include/QueryOptionsBuilder.h @@ -34,6 +34,8 @@ -(id)addListRelated:(NSArray *)related; -(NSNumber *)getRelationsDepth; -(id)setRelationsDepth:(int)relationsDepth; +-(NSNumber *)getRelationsPageSize; +-(id)setRelationsPageSize:(int)relationsPageSize; @end diff --git a/SDK/osx/backendless/backendless.a b/SDK/osx/backendless/backendless.a index d02864dd..ead7f683 100644 Binary files a/SDK/osx/backendless/backendless.a and b/SDK/osx/backendless/backendless.a differ diff --git a/SDK/osx/backendless/include/DataQueryBuilder.h b/SDK/osx/backendless/include/DataQueryBuilder.h index 57fe0c73..e8656c26 100644 --- a/SDK/osx/backendless/include/DataQueryBuilder.h +++ b/SDK/osx/backendless/include/DataQueryBuilder.h @@ -53,5 +53,7 @@ -(instancetype)addGroupByProperty:(NSString *)groupBy; -(instancetype)addGroupByProperies:(NSArray *)groupBy; -(instancetype)setHavingClause:(NSString *)havingClause; +-(NSNumber *)getRelationsPageSize; +-(instancetype)setRelationsPageSize:(int)relationsPageSize; @end diff --git a/SDK/osx/backendless/include/QueryOptions.h b/SDK/osx/backendless/include/QueryOptions.h index cd30262c..c6262c30 100755 --- a/SDK/osx/backendless/include/QueryOptions.h +++ b/SDK/osx/backendless/include/QueryOptions.h @@ -26,6 +26,7 @@ @property (strong, nonatomic) NSMutableArray *sortBy; @property (strong, nonatomic) NSMutableArray *related; @property (strong, nonatomic) NSNumber *relationsDepth; +@property (strong, nonatomic) NSNumber *relationsPageSize; +(instancetype)query; -(BOOL)addSortByOption:(NSString *)sortBy; diff --git a/SDK/osx/backendless/include/QueryOptionsBuilder.h b/SDK/osx/backendless/include/QueryOptionsBuilder.h index 86a62cfa..9e11b5d1 100644 --- a/SDK/osx/backendless/include/QueryOptionsBuilder.h +++ b/SDK/osx/backendless/include/QueryOptionsBuilder.h @@ -34,6 +34,8 @@ -(id)addListRelated:(NSArray *)related; -(NSNumber *)getRelationsDepth; -(id)setRelationsDepth:(int)relationsDepth; +-(NSNumber *)getRelationsPageSize; +-(id)setRelationsPageSize:(int)relationsPageSize; @end diff --git a/SDK/tvos/backendless/backendless.a b/SDK/tvos/backendless/backendless.a index 736ee514..92c2d6b0 100644 Binary files a/SDK/tvos/backendless/backendless.a and b/SDK/tvos/backendless/backendless.a differ diff --git a/SDK/tvos/backendless/include/DataQueryBuilder.h b/SDK/tvos/backendless/include/DataQueryBuilder.h index 57fe0c73..e8656c26 100644 --- a/SDK/tvos/backendless/include/DataQueryBuilder.h +++ b/SDK/tvos/backendless/include/DataQueryBuilder.h @@ -53,5 +53,7 @@ -(instancetype)addGroupByProperty:(NSString *)groupBy; -(instancetype)addGroupByProperies:(NSArray *)groupBy; -(instancetype)setHavingClause:(NSString *)havingClause; +-(NSNumber *)getRelationsPageSize; +-(instancetype)setRelationsPageSize:(int)relationsPageSize; @end diff --git a/SDK/tvos/backendless/include/QueryOptions.h b/SDK/tvos/backendless/include/QueryOptions.h index cd30262c..c6262c30 100755 --- a/SDK/tvos/backendless/include/QueryOptions.h +++ b/SDK/tvos/backendless/include/QueryOptions.h @@ -26,6 +26,7 @@ @property (strong, nonatomic) NSMutableArray *sortBy; @property (strong, nonatomic) NSMutableArray *related; @property (strong, nonatomic) NSNumber *relationsDepth; +@property (strong, nonatomic) NSNumber *relationsPageSize; +(instancetype)query; -(BOOL)addSortByOption:(NSString *)sortBy; diff --git a/SDK/tvos/backendless/include/QueryOptionsBuilder.h b/SDK/tvos/backendless/include/QueryOptionsBuilder.h index 86a62cfa..9e11b5d1 100644 --- a/SDK/tvos/backendless/include/QueryOptionsBuilder.h +++ b/SDK/tvos/backendless/include/QueryOptionsBuilder.h @@ -34,6 +34,8 @@ -(id)addListRelated:(NSArray *)related; -(NSNumber *)getRelationsDepth; -(id)setRelationsDepth:(int)relationsDepth; +-(NSNumber *)getRelationsPageSize; +-(id)setRelationsPageSize:(int)relationsPageSize; @end diff --git a/SDK/watchos/backendless/backendless.a b/SDK/watchos/backendless/backendless.a index 0f2b04f7..dd0df821 100644 Binary files a/SDK/watchos/backendless/backendless.a and b/SDK/watchos/backendless/backendless.a differ diff --git a/SDK/watchos/backendless/include/DataQueryBuilder.h b/SDK/watchos/backendless/include/DataQueryBuilder.h index 57fe0c73..e8656c26 100644 --- a/SDK/watchos/backendless/include/DataQueryBuilder.h +++ b/SDK/watchos/backendless/include/DataQueryBuilder.h @@ -53,5 +53,7 @@ -(instancetype)addGroupByProperty:(NSString *)groupBy; -(instancetype)addGroupByProperies:(NSArray *)groupBy; -(instancetype)setHavingClause:(NSString *)havingClause; +-(NSNumber *)getRelationsPageSize; +-(instancetype)setRelationsPageSize:(int)relationsPageSize; @end diff --git a/SDK/watchos/backendless/include/QueryOptions.h b/SDK/watchos/backendless/include/QueryOptions.h index cd30262c..c6262c30 100755 --- a/SDK/watchos/backendless/include/QueryOptions.h +++ b/SDK/watchos/backendless/include/QueryOptions.h @@ -26,6 +26,7 @@ @property (strong, nonatomic) NSMutableArray *sortBy; @property (strong, nonatomic) NSMutableArray *related; @property (strong, nonatomic) NSNumber *relationsDepth; +@property (strong, nonatomic) NSNumber *relationsPageSize; +(instancetype)query; -(BOOL)addSortByOption:(NSString *)sortBy; diff --git a/SDK/watchos/backendless/include/QueryOptionsBuilder.h b/SDK/watchos/backendless/include/QueryOptionsBuilder.h index 86a62cfa..9e11b5d1 100644 --- a/SDK/watchos/backendless/include/QueryOptionsBuilder.h +++ b/SDK/watchos/backendless/include/QueryOptionsBuilder.h @@ -34,6 +34,8 @@ -(id)addListRelated:(NSArray *)related; -(NSNumber *)getRelationsDepth; -(id)setRelationsDepth:(int)relationsDepth; +-(NSNumber *)getRelationsPageSize; +-(id)setRelationsPageSize:(int)relationsPageSize; @end