Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (RACSignal *)getPlaylist {
- return [RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) {
- [[[buttonClickSignal
- flattenMap:^(UIButton *sender) {
- return [self logInWithUsername:username password:password];
- }]
- flattenMap:^(NSDictionary *json) {
- return [self fetchPlaylistForToken:token];
- }]
- subscribeNext:^(NSDictionary *json) {
- [subscriber sendNext:json];
- [subscriber sendCompleted];
- }];
- return nil;
- }];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement