-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMessage.cpp
More file actions
83 lines (68 loc) · 1.5 KB
/
Message.cpp
File metadata and controls
83 lines (68 loc) · 1.5 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#include "Library.hpp"
Message::Message(){
rawMessage = "";
cmd = "";
receiver = "";
restMess = "";
prefix = "";
msgForSender = "";
}
Message::~Message(){}
void Message::setRawMessage(std::string _rawMessage){
rawMessage.clear();
rawMessage = "";
rawMessage = _rawMessage;
}
void Message::setCmd(std::string _cmd){
cmd = _cmd;
}
void Message::setRestMess(std::string _restMess){
restMess = _restMess;
}
void Message::setPrefix(std::string _prefix){
prefix = _prefix;
}
std::string Message::getCmd(){
return cmd;
}
std::string Message::getRestMess(){
return restMess;
}
std::string Message::getPrefix(){
return prefix;
}
std::string Message::getRawMessage(){
return rawMessage;
}
void Message::setReadyMess(std::string _readyMess){
readyMess = _readyMess;
}
std::string Message::getReadyMess(){
return readyMess;
}
void Message::setReceiver(std::string _receiver){
receiver = _receiver;
}
std::string Message::getReceiver(){
return receiver;
}
std::vector<int> Message::getDeque() {
return deque;
}
void Message::setDeque(std::vector<int> deque) {
this->deque = deque;
}
void Message::setMessForSender(std::string msgForSender) {
this->msgForSender.clear();
this->msgForSender = "";
this->msgForSender = msgForSender;
}
std::string Message::getMessForSender() {
return msgForSender;
}
void Message::setChannel(std::string in_channel) {
this->in_channel = in_channel;
}
std::string Message::getChannel() {
return(in_channel);
}