Browse files

Event: Minor changes

  • Loading branch information...
1 parent 2381bf3 commit 7b9845620cfcfb3be7df51235594c75d507ec080 @dennisreimann committed Jun 20, 2013
Showing with 9 additions and 2 deletions.
  1. +2 −2 Classes/GHEvent.h
  2. +7 −0 Classes/GHEvent.m
View
4 Classes/GHEvent.h
@@ -3,6 +3,8 @@
@interface GHEvent : NSObject
@property(nonatomic,strong)NSString *eventID;
@property(nonatomic,strong)NSString *eventType;
+@property(nonatomic,strong)NSString *title;
+@property(nonatomic,strong)NSString *content;
@property(nonatomic,strong)NSDate *date;
@property(nonatomic,strong)NSDictionary *payload;
@property(nonatomic,strong)NSString *repoName;
@@ -21,8 +23,6 @@
@property(nonatomic,strong)GHOrganization *organization;
@property(nonatomic,strong)GHBranch *branch;
@property(nonatomic,strong)GHTag *tag;
-@property(nonatomic,strong)NSString *title;
-@property(nonatomic,strong)NSString *content;
@property(nonatomic,readonly)NSString *contentForDisplay;
@property(nonatomic,readonly)NSString *extendedEventType;
@property(nonatomic,readonly)BOOL isCommentEvent;
View
7 Classes/GHEvent.m
@@ -27,6 +27,8 @@ @interface GHEvent ()
@implementation GHEvent
+@synthesize content = _content;
+
- (id)initWithDict:(NSDictionary *)dict {
self = [super init];
if (self) {
@@ -60,6 +62,11 @@ - (NSString *)contentForDisplay {
return _contentForDisplay;
}
+- (void)setContent:(NSString *)content {
+ _contentForDisplay = nil;
+ _content = content;
+}
+
- (void)markAsRead {
self.read = YES;
}

0 comments on commit 7b98456

Please sign in to comment.