No Description

HomeRepository.swift 396B

123456789101112131415161718192021
  1. //
  2. // HomeRepository.swift
  3. // PaiAi
  4. //
  5. // Created by FFIB on 16/3/31.
  6. // Copyright © 2016年 FFIB. All rights reserved.
  7. //
  8. import Foundation
  9. import RxCocoa
  10. import RxSwift
  11. struct HomeRepository: PhotoRepository {
  12. var homeRemoteAPI = HomeRemoteAPI()
  13. func load(page: Int) -> Single<NetworkArrayData<PhotoItem>> {
  14. return homeRemoteAPI.loadContent(page: page)
  15. }
  16. }