mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-22 01:16:26 +02:00
fix gammu adapter to remove number and update adapters to support or not sms reception
This commit is contained in:
parent
2ae2baa6c4
commit
f6e96c1133
5 changed files with 36 additions and 6 deletions
|
@ -20,11 +20,6 @@ namespace adapters;
|
|||
*/
|
||||
class GammuAdapter implements AdapterInterface
|
||||
{
|
||||
/**
|
||||
* Phone number using the adapter.
|
||||
*/
|
||||
private $number;
|
||||
|
||||
/**
|
||||
* Datas used to configure interaction with the implemented service. (e.g : Api credentials, ports numbers, etc.).
|
||||
*/
|
||||
|
@ -35,7 +30,7 @@ namespace adapters;
|
|||
*
|
||||
* @param json string $datas : JSON string of the datas to configure interaction with the implemented service
|
||||
*/
|
||||
public function __construct(string $number, string $datas)
|
||||
public function __construct(string $datas)
|
||||
{
|
||||
$this->datas = json_decode($datas, true);
|
||||
}
|
||||
|
@ -89,6 +84,14 @@ namespace adapters;
|
|||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Does the implemented service support reading smss.
|
||||
*/
|
||||
public static function meta_support_read(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Does the implemented service support flash smss.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue