-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSWPost.m
More file actions
46 lines (35 loc) · 890 Bytes
/
Copy pathSWPost.m
File metadata and controls
46 lines (35 loc) · 890 Bytes
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
//
// Post.m
// Starworld Test2
//
// Created by Aaron Baker on 7/24/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "SWPost.h"
@implementation SWPost
@synthesize name;
@synthesize content;
@synthesize x;
@synthesize y;
@synthesize time;
@synthesize ID;
@synthesize starCount;
- (id)initWithName:(NSString *)postName
time:(NSDate *)postTime
x:(float)postX
y:(float)postY
ID:(NSInteger)postID
starCount:(NSInteger)postStarCount
content:(NSString *)postContent {
if ((self = [super init])) {
self.name = postName;
self.content = postContent;
self.x = postX;
self.y = postY;
self.ID = postID;
self.time = postTime;
self.starCount = postStarCount;
}
return self;
}
@end