-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSMUserPost.hpp
51 lines (41 loc) · 851 Bytes
/
SMUserPost.hpp
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
/*
* SMUserPost.hpp
*
* Created on: May 16, 2023
* Author: abdullah ahmed
*/
#ifndef SMUSERPOST_HPP_
#define SMUSERPOST_HPP_
#include <iostream>
#include <string>
#include "Date.hpp"
using namespace std;
class SMUserPost {
public:
struct PostTime
{
int hours;
int minutes;
int seconds;
};
SMUserPost();
virtual ~SMUserPost();
const Date& getDateOfPost() const;
bool setDateOfPost(const Date &dateOfPost);
const string& getTextOfPost() const;
bool setTextOfPost(const string &textOfPost);
const string& getUserId() const;
bool setUserId(const string &userId);
int getHours() const;
bool setHours(int hours);
int getMinutes() const;
bool setMinutes(int minutes);
int getSeconds() const;
bool setSeconds(int seconds);
private:
string userID;
string textOfPost;
Date dateOfPost;
PostTime aTime;
};
#endif /* SMUSERPOST_HPP_ */