Source

BSSAXTweetParserDemo / BSUser.m

//
//  BSUser.m
//  BSSAXTweetParserDemo
//
//  Created by Brent Simmons on 6/3/10.
//  Copyright 2010 NewsGator Technologies, Inc. All rights reserved.
//

#import "BSUser.h"


@implementation BSUser

@synthesize userID;
@synthesize name;
@synthesize screenName;
@synthesize location;
@synthesize userDescription;
@synthesize profileImageURL;
@synthesize url;


- (void)dealloc {
	[userID release];
	[name release];
	[screenName release];
	[location release];
	[userDescription release];
	[profileImageURL release];
	[url release];
	[super dealloc];
}


- (NSDictionary *)dictionaryRepresentationForDebuggingOnly {
	NSMutableDictionary *d = [NSMutableDictionary dictionary];
	[d setObject:self.userID ? self.userID : @"" forKey:@"userID"];
	[d setObject:self.name ? self.name : @"" forKey:@"name"];
	[d setObject:self.screenName ? self.screenName : @"" forKey:@"screenName"];
	[d setObject:self.location ? self.location : @"" forKey:@"location"];
	[d setObject:self.userDescription ? self.userDescription : @"" forKey:@"userDescription"];
	[d setObject:self.profileImageURL ? self.profileImageURL : @"" forKey:@"profileImageURL"];
	[d setObject:self.url ? self.url : @"" forKey:@"url"];
	return d;
}


@end