如何在quickblox iOS中使用ParentId检索Child对象

时间:2016-04-20 13:04:30

标签: ios quickblox parentid child-objects

我想从QuickBlox API使用Parentid检索所有子对象。我怎么能这样做。任何人都可以在ios平台上建议正确的方法。

1 个答案:

答案 0 :(得分:0)

你应该使用方法

+ (QB_NONNULL QBRequest *)objectsWithClassName:(QB_NONNULL NSString *)className
                           extendedRequest:(QB_NULLABLE NSMutableDictionary QB_GENERIC(NSString *, NSString *) *)extendedRequest
                              successBlock:(QB_NULLABLE void (^)(QBResponse *QB_NONNULL_S response, NSArray QB_GENERIC(QBCOCustomObject *) *QB_NULLABLE_S objects, QBResponsePage *QB_NULLABLE_S page))successBlock
                                errorBlock:(QB_NULLABLE QBRequestErrorBlock)errorBlock;

使用extendedRequest,如:

NSMutableDictionary *extendedRequest = [NSMutableDictionary dictionary];
[requestParameters setObject:parendID forKey:@"_parent_id"];