-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSocialMediaSystem.h
More file actions
52 lines (42 loc) · 1.38 KB
/
Copy pathSocialMediaSystem.h
File metadata and controls
52 lines (42 loc) · 1.38 KB
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
#pragma once
#include "DataTable.hpp"
#include "User.h"
#include "Topic.h"
#include "Post.h"
#include "Comment.h"
#include "Reply.h"
#include "Reaction.h"
class SocialMediaSystem
{
DataTable<User> users;
DataTable<Post> posts;
DataTable<Topic> topics;
DataTable<Comment> comments;
DataTable<Reply> replies;
DataTable<Reaction> reactions;
size_t currentUserId = 0;
void load(); // ready
void close(); // ready
void registerUser(); // ready
void loginUser(); // ready
void searchTopics(const MyString& title); // ready
void openTopic(const MyString& topicIndetifier); // ready
void createTopic(); // ready
void showTopicInfo(const MyString& topicIdentifier);
void listPostsForTopic(size_t topicId); // ready
void createPost(size_t topicId); // ready
void openPostForTopic(size_t topicId, const MyString& postIndetifier); // ready
void listCommentsForPost(size_t postId); // halfready
void createComment(size_t postId); // ready
void createReply(size_t commentId); // ready
void createUpvote(size_t commentId); // ready
void createDownvote(size_t commentId); // ready
void showUserInfo(); // ready
void handleUserSession(); // ready
void handleTopicSession(Topic& currentTopic); // ready
void handlePostSession(Post& currentPost); // ready
public:
void run();
SocialMediaSystem() = default;
~SocialMediaSystem() = default;
};