forked from jgallen23/MilkMaid
-
Notifications
You must be signed in to change notification settings - Fork 1
/
RTMSearch.m
58 lines (48 loc) · 1.16 KB
/
RTMSearch.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// RTMList.m
// MilkMaid
//
// Created by Gregamel on 3/11/10.
// Copyright 2010 JGA. All rights reserved.
//
#import "RTMSearch.h"
@implementation RTMSearch
@synthesize title;
@synthesize searchType;
@synthesize addParams;
@synthesize addAttributes;
@synthesize searchParams;
-(id)init {
if (self=[super init]) {
}
return self;
}
-(id)initWithTitle:(NSString*)aTitle searchType:(NSString*)aType searchParams:(NSDictionary*)aSearchParams addParams:(NSDictionary*)aAddParams {
if (self=[super init]) {
self.title = aTitle;
self.searchType = aType;
self.searchParams = aSearchParams;
self.addParams = aAddParams;
self.addAttributes = nil;
}
return self;
}
-(id)initWithTitle:(NSString*)aTitle searchType:(NSString*)aType searchParams:(NSDictionary*)aSearchParams addAttributes:(NSString*)aAddAttributes {
if (self=[super init]) {
self.title = aTitle;
self.searchType = aType;
self.searchParams = aSearchParams;
self.addParams = nil;
self.addAttributes = aAddAttributes;
}
return self;
}
-(void)dealloc {
[title release];
[searchType release];
[searchParams release];
[addParams release];
[addAttributes release];
[super dealloc];
}
@end