mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-14 12:13:00 +08:00
* Removed RestKit from inheritance hierarchy * Mappings are implemented as concrete classes * Mapper is much more flexible & powerful * Much more robust error handling * Serialization is reimplemented as an object mapping operation * Added ability to serialize to JSON natively * Reworked Core Data integration * Simplified the codebase substantially
37 lines
749 B
Objective-C
37 lines
749 B
Objective-C
//
|
|
// RKTStatus.m
|
|
// RKTwitter
|
|
//
|
|
// Created by Blake Watters on 9/5/10.
|
|
// Copyright 2010 Two Toasters. All rights reserved.
|
|
//
|
|
|
|
#import "RKTStatus.h"
|
|
|
|
@implementation RKTStatus
|
|
|
|
@synthesize statusID = _statusID;
|
|
@synthesize createdAt = _createdAt;
|
|
@synthesize text = _text;
|
|
@synthesize urlString = _urlString;
|
|
@synthesize inReplyToScreenName = _inReplyToScreenName;
|
|
@synthesize isFavorited = _isFavorited;
|
|
@synthesize user = _user;
|
|
|
|
- (NSString*)description {
|
|
return [NSString stringWithFormat:@"%@ (ID: %@)", self.text, self.statusID];
|
|
}
|
|
|
|
- (void)dealloc {
|
|
[_statusID release];
|
|
[_createdAt release];
|
|
[_text release];
|
|
[_urlString release];
|
|
[_inReplyToScreenName release];
|
|
[_user release];
|
|
|
|
[super dealloc];
|
|
}
|
|
|
|
@end
|