Sms
Assembly: ZennoLab.CommandCenter
Full name: ZennoLab.CommandCenter.ZennoPoster.Sms
Kind: abstract
Represents a set of methods to access SMS service API.
Methods
GetNumber
Method
string GetNumber(string serviceDll, String& number, string service, string oper, Nullable<bool> forward, string param)
Parameters
| Type | Name | Description |
|---|---|---|
string | serviceDll | |
String& | number | |
string | service | |
string | oper | |
Nullable<bool> | forward | |
string | param |
SetStatus
Method
string SetStatus(string serviceDll, string id, SmsServiceStatus status, string forwardNum, string param)
Set status for operation by ID.
Parameters
| Type | Name | Description |
|---|---|---|
string | serviceDll | Name of service dll. |
string | id | ID operation. |
SmsServiceStatus | status | Status. |
string | forwardNum | Number for forwading. |
string | param | Additional query parameters. |
Returns: Status.
Example
var id = ZennoPoster.Sms.SetStatus("SmsReg.dll", id, InterfacesLibrary.SmsService.Enums.SmsServiceStatus.Ready);Example2
$status = ZennoLab\CommandCenter\ZennoPoster::Sms::SetStatus("SmsReg.dll", $id, InterfacesLibrary\SmsService\Enums\SmsServiceStatus::Ready);GetStatus
Method
string GetStatus(string serviceDll, string id, string param, int timeout)
Get code or status message.
Parameters
| Type | Name | Description |
|---|---|---|
string | serviceDll | Name of service dll. |
string | id | ID operation. |
string | param | Additional query parameters. |
int | timeout | Wait code timeout in minutes. |
Returns: The code or status message.
Example
var code = ZennoPoster.Sms.GetStatus("SmsReg.dll", id);Example2
$code = ZennoLab\CommandCenter\ZennoPoster::Sms::GetStatus("SmsReg.dll", $id);