-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPandora.h
36 lines (32 loc) · 906 Bytes
/
Pandora.h
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
//
// PandoraRadio.h
// Pandora
//
// Created by Alex Winston on 6/17/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import "Blowfish.h"
#import "Song.h"
@interface Pandora : NSObject {
Blowfish *blowfishRequest;
Blowfish *blowfishResponse;
long startTime;
long syncTime;
NSString *partnerId;
NSString *partnerAuthToken;
NSString *userId;
NSString *userAuthToken;
BOOL userAuthenticated;
NSString *currentStation;
NSMutableArray *currentPlaylist;
}
@property (retain) NSString *currentStation;
- (BOOL)authenticated;
- (void)authenticate:(NSString *)username password:(NSString *)password;
- (NSArray *)searchStations:(NSString *)artist;
- (NSDictionary *)addStation:(NSString *)musicToken;
- (BOOL)deleteStation:(NSString *)stationToken;
- (NSArray *)stations;
- (Song *)song:(NSDictionary *)station;
- (BOOL)feedback:(BOOL)positive forSong:(NSString *)songId;
@end