1 |
#include "EchoPlugin.h" |
#include "EchoPlugin.h" |
2 |
#include "GsmModem.h" |
#include "IGsmModem.h" |
3 |
|
#include "Sms.h" |
4 |
|
|
5 |
EchoPlugin::EchoPlugin() |
EchoPlugin::EchoPlugin() |
6 |
: Plugin("echo", "Echoes all extra text back to the sender") |
: Plugin("echo", "Echoes all extra text back to the sender") |
7 |
{ |
{ |
8 |
} |
} |
9 |
|
|
10 |
void EchoPlugin::Execute(GsmModem& modem, SMS& sms) |
void EchoPlugin::Execute(IGsmModem& modem, SMS& sms) |
11 |
{ |
{ |
12 |
modem.SendSms(sms.sender, GetSmsData(sms) ); |
modem.SendSms(sms.GetSender(), sms.ExtractParameters(), false ); |
13 |
} |
} |