Advertisement
Guest User

Untitled

a guest
May 24th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. lazy var availableSubscriptions: Observable<[AvailableSubscription]> = {
  2. fetchProductInfo()
  3. return Observable.combineLatest(APIService.shared.getUserSubscriptions().asObservable().map { $0.actualSubscriptions } , productsEntity.asObservable().map { $0.availableSubscriptions })
  4. .map { AvailableSubscription.combine(subscriptionItems: $0, availableSubscriptions: $1) }
  5. }()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement