7 |
{ |
{ |
8 |
public: |
public: |
9 |
SMS(); |
SMS(); |
10 |
SMS(std::string _sender, std::string _message, std::string _timestamp=""); |
SMS(std::string index, std::string _sender, std::string _message, std::string _timestamp=""); |
11 |
|
|
12 |
static SMS FromRawString(const std::string& input); |
std::string ExtractCommand(); |
13 |
|
std::string ExtractParameters(); |
14 |
|
|
15 |
|
|
16 |
|
void SetIndex(std::string i) {sms_index=i;} |
17 |
|
void SetSender(std::string s) {sender=s;} |
18 |
|
void SetMessage(std::string m) {message=m;} |
19 |
|
void SetTimestamp(std::string t) {timestamp=t;} |
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
std::string GetIndex() {return sms_index;} |
24 |
|
std::string GetSender() {return sender;} |
25 |
|
std::string GetMessage() {return message;} |
26 |
|
std::string GetTimestamp() {return timestamp;} |
27 |
|
|
28 |
|
private: |
29 |
std::string sms_index; |
std::string sms_index; |
30 |
std::string sender; |
std::string sender; |
31 |
std::string message; |
std::string message; |
33 |
}; |
}; |
34 |
|
|
35 |
|
|
|
std::string GetSmsCommand(SMS& sms); |
|
|
std::string GetSmsData(SMS& sms); |
|
36 |
|
|
37 |
#endif // __SMS_H__ |
#endif // __SMS_H__ |