mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-03 09:45:10 +08:00
30 lines
518 B
Objective-C
30 lines
518 B
Objective-C
//
|
|
// DBContentObject.m
|
|
// DiscussionBoard
|
|
//
|
|
// Created by Blake Watters on 1/20/11.
|
|
// Copyright 2011 Two Toasters. All rights reserved.
|
|
//
|
|
|
|
#import "DBContentObject.h"
|
|
|
|
NSString* const DBContentObjectDidChangeNotification = @"DBContentObjectDidChangeNotification";
|
|
|
|
@implementation DBContentObject
|
|
|
|
@dynamic userID;
|
|
@dynamic createdAt;
|
|
@dynamic updatedAt;
|
|
@dynamic user;
|
|
|
|
- (NSString*)username {
|
|
return self.user.username;
|
|
}
|
|
|
|
- (BOOL)isNewRecord {
|
|
[self doesNotRecognizeSelector:_cmd];
|
|
return NO;
|
|
}
|
|
|
|
@end
|