/
Echowaves.m
44 lines (35 loc) · 955 Bytes
/
Echowaves.m
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
41
42
43
44
//
// Echowaves.m
// EchowavesNotifier
//
// Created by Craig Jolicoeur on 12/26/09.
// Copyright 2009 Dr J Enterprises, LLC. All rights reserved.
//
#import "Echowaves.h"
@implementation Echowaves
@synthesize responseData, updatedConvos;
@synthesize echowavesURI;
- (id)init {
if ( self = [super init] ) {
updatedConvos = [[NSMutableArray alloc] initWithCapacity:0];
responseData = [[NSMutableData alloc] initWithCapacity:0];
}
return self;
}
- (void)setEchowavesURI:(NSString *)apiKey {
// TODO: do I need to do some retain/release on the old and new apiKey's here???
//[apiKey retain];
//[echowavesURI release];
echowavesURI = [[_echowavesBaseURI stringByAppendingString:apiKey] retain];
NSLog(@"Setting echowavesURI: %@", echowavesURI);
}
- (void)dealloc {
[echowavesURI release];
[updatedConvos release];
[responseData release];
[super dealloc];
}
- (void)resetUpdatedConvos {
[updatedConvos removeAllObjects];
}
@end