1 | <?php |
||
37 | class SMSModeEventListener { |
||
38 | |||
39 | use AccessTokenTrait; |
||
40 | |||
41 | /** |
||
42 | * Service name. |
||
43 | * |
||
44 | * @var string |
||
45 | */ |
||
46 | const SERVICE_NAME = "webeweb.smsmode.event_listener"; |
||
47 | |||
48 | /** |
||
49 | * API provider. |
||
50 | * |
||
51 | * @var APIProvider |
||
52 | */ |
||
53 | private $apiProvider; |
||
54 | |||
55 | /** |
||
56 | * Pseudo. |
||
57 | * |
||
58 | * @var string |
||
59 | */ |
||
60 | private $pass; |
||
61 | |||
62 | /** |
||
63 | * Pass. |
||
64 | * |
||
65 | * @var string. |
||
66 | */ |
||
67 | private $pseudo; |
||
68 | |||
69 | /** |
||
70 | * Constructor. |
||
71 | */ |
||
72 | public function __construct() { |
||
75 | |||
76 | /** |
||
77 | * Get the API provider. |
||
78 | * |
||
79 | * @return APIProvider Returns the API provider. |
||
80 | */ |
||
81 | public function getApiProvider() { |
||
84 | |||
85 | /** |
||
86 | * Get the pass. |
||
87 | * |
||
88 | * @return string Returns the pass. |
||
89 | */ |
||
90 | public function getPass() { |
||
93 | |||
94 | /** |
||
95 | * Get the pseudo. |
||
96 | * |
||
97 | * @return string Returns the pseudo. |
||
98 | */ |
||
99 | public function getPseudo() { |
||
102 | |||
103 | /** |
||
104 | * On adding contact. |
||
105 | * |
||
106 | * @param AddingContactEvent $event The adding contact event. |
||
107 | * @return Event Returns the event. |
||
108 | */ |
||
109 | public function onAddingContact(AddingContactEvent $event) { |
||
113 | |||
114 | /** |
||
115 | * On checking SMS message status. |
||
116 | * |
||
117 | * @param CheckingSMSMessageStatusEvent $event The checking SMS message status event. |
||
118 | * @return Event Returns the event. |
||
119 | */ |
||
120 | public function onCheckingSMSMessageStatus(CheckingSMSMessageStatusEvent $event) { |
||
124 | |||
125 | /** |
||
126 | * On creating sub-account. |
||
127 | * |
||
128 | * @param CreatingSubAccountEvent $event The creating sub-account event. |
||
129 | * @return Event Returns the event. |
||
130 | */ |
||
131 | public function onCreatingSubAccount(CreatingSubAccountEvent $event) { |
||
135 | |||
136 | /** |
||
137 | * On deleting SMS. |
||
138 | * |
||
139 | * @param DeletingSMSEvent $event The deleting SMS event. |
||
140 | * @return Event Returns the event. |
||
141 | */ |
||
142 | public function onDeletingSMS(DeletingSMSEvent $event) { |
||
146 | |||
147 | /** |
||
148 | * On deleting sub-account. |
||
149 | * |
||
150 | * @param DeletingSubAccountEvent $event The deleting sub-account event. |
||
151 | * @return Event Returns the event. |
||
152 | */ |
||
153 | public function onDeletingSubAccount(DeletingSubAccountEvent $event) { |
||
157 | |||
158 | /** |
||
159 | * On delivery report. |
||
160 | * |
||
161 | * @param DeliveryReportEvent $event The delivery report event. |
||
162 | * @return Event Returns the event. |
||
163 | */ |
||
164 | public function onDeliveryReport(DeliveryReportEvent $event) { |
||
168 | |||
169 | /** |
||
170 | * On retrieving SMS reply. |
||
171 | * |
||
172 | * @param RetrievingSMSReplyEvent $event The retrieving SMS reply event. |
||
173 | * @return Event Returns the event. |
||
174 | */ |
||
175 | public function onRetrievingSMSReply(RetrievingSMSReplyEvent $event) { |
||
179 | |||
180 | /** |
||
181 | * On sending SMS batch. |
||
182 | * |
||
183 | * @param SendingSMSBatchEvent $event The sending SMS batch event. |
||
184 | * @return Event Returns the event. |
||
185 | */ |
||
186 | public function onSendingSMSBatch(SendingSMSBatchEvent $event) { |
||
190 | |||
191 | /** |
||
192 | * On sending SMS message. |
||
193 | * |
||
194 | * @param SendingSMSMessageEvent $event The sending SMS message event. |
||
195 | * @return Event Returns the event. |
||
196 | */ |
||
197 | public function onSendingSMSMessage(SendingSMSMessageEvent $event) { |
||
201 | |||
202 | /** |
||
203 | * On sending text-to-speech. |
||
204 | * |
||
205 | * @param SendingTextToSpeechSMSEvent $event The sending text-to-speech event. |
||
206 | * @return Event Returns the event. |
||
207 | */ |
||
208 | public function onSendingTextToSpeechSMS(SendingTextToSpeechSMSEvent $event) { |
||
212 | |||
213 | /** |
||
214 | * On sending unicode SMS. |
||
215 | * |
||
216 | * @param SendingUnicodeSMSEvent $event The sending unicode SMS event. |
||
217 | * @return Event Returns the event. |
||
218 | */ |
||
219 | public function onSendingUnicodeSMS(SendingUnicodeSMSEvent $event) { |
||
223 | |||
224 | /** |
||
225 | * On sent SMS message lis. |
||
226 | * |
||
227 | * @param SentSMSMessageListEvent $event The sent SMS message list event. |
||
228 | * @return Event Returns the event. |
||
229 | */ |
||
230 | public function onSentSMSMessageList(SentSMSMessageListEvent $event) { |
||
234 | |||
235 | /** |
||
236 | * On transferring credits. |
||
237 | * |
||
238 | * @param TransferringCreditsEvent $event The transferring credits event. |
||
239 | * @return Event Returns the event. |
||
240 | */ |
||
241 | public function onTransferringCredits(TransferringCreditsEvent $event) { |
||
245 | |||
246 | /** |
||
247 | * Set the API provider. |
||
248 | * |
||
249 | * @param APIProvider $apiProvider The API provider. |
||
250 | * @return SMSModeEventListener Returns this event listener. |
||
251 | */ |
||
252 | protected function setApiProvider($apiProvider) { |
||
256 | |||
257 | /** |
||
258 | * Set the pass. |
||
259 | * |
||
260 | * @param string $pass The pass. |
||
261 | * @return SMSModeEventListener Returns this event listener. |
||
262 | */ |
||
263 | public function setPass($pass) { |
||
267 | |||
268 | /** |
||
269 | * Set the pseudo. |
||
270 | * |
||
271 | * @param string $pseudo The pseudo. |
||
272 | * @return SMSModeEventListener Returns this event listener. |
||
273 | */ |
||
274 | public function setPseudo($pseudo) { |
||
278 | } |
||
279 |