Created
November 15, 2018 15:01
-
-
Save djds23/3ba80fa27f4f72abee58c0ee6d7868b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct FollowerNetworkingMock: FollowNetworkHandler { | |
let mockFollowers: [User] | |
let followResponse: Response | |
func follow(user: User) -> Observable<Response> { | |
return .just(followResponse) | |
} | |
func followers() -> Observable<[User]> { | |
return .just(mockFollowers) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment