-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJDArtistsService.h
More file actions
40 lines (30 loc) · 1.06 KB
/
JDArtistsService.h
File metadata and controls
40 lines (30 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// JDArtistsService.h
// AppleMusic
//
// Created by Юрий Логинов on 25.06.17.
// Copyright © 2017 Юрий Логинов. All rights reserved.
//
#import <Foundation/Foundation.h>
@class JDArtistsResponseObject;
@class JDArtist;
@interface JDArtistsService : NSObject
/**
Search Artists
@param searchString search string
@param success success block raise, if request and response is correct
@param failure failure block raise, if something went wrong
*/
- (void)searchArtists:(NSString *)searchString
success:(void(^)(JDArtistsResponseObject *response))success
failure:(void(^)(NSError *error))failure;
/**
Fill information about selected artist
@param artist selected artist object
@param success success block raise, if request and response is correct
@param failure failure block raise, if something went wrong
*/
- (void)infoForSelectedArtists:(JDArtist *)artist
success:(void(^)(JDArtistsResponseObject *response))success
failure:(void(^)(NSError *error))failure;
@end