-
Notifications
You must be signed in to change notification settings - Fork 0
/
Review.h
45 lines (40 loc) · 1.17 KB
/
Review.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
#ifndef ED2_REVIEW_H
#define ED2_REVIEW_H
#include <string>
using namespace std;
class Review {
private:
// Atributos
string id;
string text;
int upvotes;
string app_version;
string posted_date;
// Fim Atributos
public:
// Construtor com atributos
Review(string id, string text, int upvotes, string app_version, string posted_date);
// Construtor vazio
Review();
// Destrutor
~Review();
// Getters e Setters
string getId();
void setId(string id);
string getText();
void setText(string text);
int getUpvotes();
void setUpvotes(int upvotes);
string getAppVersion();
void setAppVersion(string app_version);
string getPostedDate();
void setPostedDate(string posted_date);
// Fim Getters e Setters
// Imprimir Review
void imprimir();
// Receber todos atributos do Review
void receberReview(Review* review);
// Salvar todos atributos do Review
void salvarReview(ofstream &arquivo_bin, ofstream &arquivo_posicoes);
};
#endif //ED2_REVIEW_H