forked from sfelixwu/ecs36b_s2024_master
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPost.h
54 lines (42 loc) · 1.12 KB
/
Post.h
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
47
48
49
50
51
52
53
54
#ifndef _POST_H_
#define _POST_H_
// Post.h
#include "Core.h"
#include "OKey.h"
#include "Tag.h"
#include "Comment.h"
#include "Reaction.h"
#include "Message.h"
#include "Person.h"
#include "Link.h"
#include "Action.h"
#include "JvTime.h"
class OKey;
class Post : public Core
{
private:
protected:
public:
Identifier id;
Person * author;
std::vector<Person *> * receivers;
Message * msg;
// std::vector<Message *> * msg_revisions;
std::vector<Action *> * actions;
std::vector<Comment *> * comments;
std::vector<Link *> * links;
std::vector<Reaction *> * reactions;
std::vector<OKey *> * keys;
std::vector<JSON_Diff *> * differences;
JvTime * created;
JvTime * updated;
GPS_DD * location;
bool is_published;
Post();
~Post();
Post(Person * arg_author, Message * arg_msg);
bool operator==(Post aPost);
virtual Json::Value * dump2JSON(void);
virtual void JSON2Object(Json::Value *);
};
#endif /* _POST_H_ */