1234567891011121314151617181920212223242526272829 |
- import Foundation
- import RxSwift
- import RxCocoa
- struct GroupPhotoRepository {
- var groupPhotoRemoteAPI: GroupPhotoRemoteAPI
- init(groupId: String) {
- groupPhotoRemoteAPI = GroupPhotoRemoteAPI(groupId: groupId)
- }
- func load() -> Single<[PhotoItem]> {
- return groupPhotoRemoteAPI.loadContent()
- }
- func upload(data: Data) -> Single<[PhotoItem]> {
- return groupPhotoRemoteAPI.uploadPhoto(data: data)
- }
- }
|