mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
.
This commit is contained in:
parent
2482a997e7
commit
73b82296a7
2 changed files with 22 additions and 0 deletions
|
@ -72,6 +72,11 @@ namespace adapters;
|
||||||
*/
|
*/
|
||||||
public static function meta_support_status_change(): bool;
|
public static function meta_support_status_change(): bool;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Does the implemented service support reception callback.
|
||||||
|
*/
|
||||||
|
public static function meta_support_reception(): bool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method called to send a SMS to a number.
|
* Method called to send a SMS to a number.
|
||||||
*
|
*
|
||||||
|
@ -112,4 +117,21 @@ namespace adapters;
|
||||||
* @return mixed : False on error, else array ['uid' => uid of the sms, 'status' => New status of the sms (\models\Sended::STATUS_UNKNOWN, \models\Sended::STATUS_DELIVERED, \models\Sended::STATUS_FAILED)]
|
* @return mixed : False on error, else array ['uid' => uid of the sms, 'status' => New status of the sms (\models\Sended::STATUS_UNKNOWN, \models\Sended::STATUS_DELIVERED, \models\Sended::STATUS_FAILED)]
|
||||||
*/
|
*/
|
||||||
public static function status_change_callback();
|
public static function status_change_callback();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Method called on reception of a sms notification.
|
||||||
|
*
|
||||||
|
* @return array : [
|
||||||
|
* bool 'error' => false on success, true on error
|
||||||
|
* ?string 'error_message' => null on success, error message else
|
||||||
|
* array 'sms' => array [
|
||||||
|
* string 'at' : Recepetion date format Y-m-d H:i:s,
|
||||||
|
* string 'text' : SMS body,
|
||||||
|
* string 'origin' : SMS sender,
|
||||||
|
* int 'id_phone' : Phone id the sms was received by,
|
||||||
|
* ]
|
||||||
|
*
|
||||||
|
* ]
|
||||||
|
*/
|
||||||
|
//public static function reception_callback() : array;
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue