-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduct.h
More file actions
39 lines (38 loc) · 718 Bytes
/
product.h
File metadata and controls
39 lines (38 loc) · 718 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
#pragma once
#include <string>
class Product {
private:
std::string name;
int id;
std::string expirationDate;
std::string status;
std::string statusText;
public:
Product(int id, std::string expirationDate, std::string status) {
this->id = id;
this->expirationDate = expirationDate;
this->status = status;
//name is CSGO if id is 1
if (id == 1) {
this->name = "CSGO";
}
if (status == "u") {
this->statusText = "Undetected";
}
else {
this->statusText = "Updating";
}
}
std::string getName() {
return this->name;
}
std::string getStatus() {
return this->statusText;
}
int getId() {
return this->id;
}
std::string getExpirationDate() {
return this->expirationDate;
}
};