self.mapper.identityIdsForQuickbloxUserIds(userIDs.map{($0 as! NSNumber).unsignedLongValue}, completion: { identityIdsMapping, error in
Не удается преобразовать тип результата вызова '_?' к ожидаемому типу '[UInt]'
userIDs
is NSSet
а вот функция:
func identityIdsForQuickbloxUserIds(userIds:[UInt], completion:(identityIdsMapping:[UInt: String]?, error:NSError?) -> Void)
как его правильно конвертировать?
Это внешняя функция, которая возвращает мне этот набор:
- (void)allDialogsWithPageLimit:(NSUInteger)limit
extendedRequest:(QB_NULLABLE NSDictionary *)extendedRequest
iterationBlock:(void(^QB_NULLABLE_S )(QBResponse *QB_NONNULL_S response, NSArray QB_GENERIC(QBChatDialog *) *QB_NULLABLE_S dialogObjects, NSSet QB_GENERIC(NSNumber *) * QB_NULLABLE_S dialogsUsersIDs, BOOL * QB_NONNULL_S stop))iterationBlock
completion:(void(^QB_NULLABLE_S)(QBResponse * QB_NONNULL_S response))completion;
Как видите, мы получили этот NSSet отсюда:
NSSet QB_GENERIC(NSNumber *) * QB_NULLABLE_S dialogsUsersIDs
этот метод взят из QuickBlox SDK