public
Description: Mac OS X Last.fm scrobbler for iTunes and iPod
Homepage: http://www.scrobblepod.com
Clone URL: git://github.com/scrobblepod/scrobblepod.git
scrobblepod / BGLastFmScrobbleResponse.h
100644 38 lines (28 sloc) 0.804 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
//
// BGLastFmScrobbleResponse.h
// LastFmProtocolTester
//
// Created by Ben Gummer on 8/07/07.
// Copyright 2007 Ben Gummer. All rights reserved.
//
 
#import <Cocoa/Cocoa.h>
 
#define SCROBBLE_RESPONSE_UNKNOWN 0
#define SCROBBLE_RESPONSE_OK 1
#define SCROBBLE_RESPONSE_BADAUTH 2
#define SCROBBLE_RESPONSE_FAILED 3
 
@interface BGLastFmScrobbleResponse : NSObject {
 
int responseType;
NSArray *responseLines;
NSDictionary *responseComponents;
NSCalendarDate *lastScrobbleDate;
 
}
 
-(id)initWithScrobbleResponseString:(NSString *)aString;
-(NSDictionary *)parseResponse;
-(NSString *)description;
 
-(void)setWasSuccessful:(BOOL)aBool;
-(BOOL)wasSuccessful;
-(int)responseType;
-(NSString *)failureReason;
 
-(NSCalendarDate *)lastScrobbleDate;
-(void)setLastScrobbleDate:(NSCalendarDate *)aDate;
 
@end