C# Класс SmsRu.SmsRuProvider

Класс для работы с SMS.RU API. ISmsProvider - интерфейс, в котором описаны сигнатуры методов для работы с API.
Наследование: ISmsProvider
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AuthCheck ( EnumAuthenticationTypes authType ) : ResponseOnAuthRequest
CheckBalance ( EnumAuthenticationTypes authType ) : String
CheckCost ( String to, String text, EnumAuthenticationTypes authType ) : String
CheckLimit ( EnumAuthenticationTypes authType ) : String
CheckSenders ( EnumAuthenticationTypes authType ) : String
CheckStatus ( String id, EnumAuthenticationTypes authType ) : ResponseOnStatusRequest
GetToken ( ) : String
Send ( String from, String to, String text ) : String
Send ( String from, String to, String text, System.DateTime dateTime ) : String
Send ( String from, String to, String text, System.DateTime dateTime, EnumAuthenticationTypes authType ) : String
Send ( String from, String to, String text, EnumAuthenticationTypes authType ) : String
SendByEmail ( String to, String text ) : ResponseOnSendRequest
SendMultiple ( String from, String>.Dictionary toAndText ) : String
SendMultiple ( String from, String>.Dictionary toAndText, System.DateTime dateTime ) : String
SendMultiple ( String from, String>.Dictionary toAndText, System.DateTime dateTime, EnumAuthenticationTypes authType ) : String
SendMultiple ( String from, String>.Dictionary toAndText, EnumAuthenticationTypes authType ) : String
StoplistAdd ( String phone, String text, EnumAuthenticationTypes authType ) : System.Boolean
StoplistDelete ( String phone, EnumAuthenticationTypes authType ) : System.Boolean
StoplistGet ( EnumAuthenticationTypes authType ) : String

Описание методов

AuthCheck() публичный Метод

public AuthCheck ( EnumAuthenticationTypes authType ) : ResponseOnAuthRequest
authType EnumAuthenticationTypes
Результат ResponseOnAuthRequest

CheckBalance() публичный Метод

public CheckBalance ( EnumAuthenticationTypes authType ) : String
authType EnumAuthenticationTypes
Результат String

CheckCost() публичный Метод

public CheckCost ( String to, String text, EnumAuthenticationTypes authType ) : String
to String
text String
authType EnumAuthenticationTypes
Результат String

CheckLimit() публичный Метод

public CheckLimit ( EnumAuthenticationTypes authType ) : String
authType EnumAuthenticationTypes
Результат String

CheckSenders() публичный Метод

public CheckSenders ( EnumAuthenticationTypes authType ) : String
authType EnumAuthenticationTypes
Результат String

CheckStatus() публичный Метод

public CheckStatus ( String id, EnumAuthenticationTypes authType ) : ResponseOnStatusRequest
id String
authType EnumAuthenticationTypes
Результат ResponseOnStatusRequest

GetToken() публичный Метод

public GetToken ( ) : String
Результат String

Send() публичный Метод

public Send ( String from, String to, String text ) : String
from String
to String
text String
Результат String

Send() публичный Метод

public Send ( String from, String to, String text, System.DateTime dateTime ) : String
from String
to String
text String
dateTime System.DateTime
Результат String

Send() публичный Метод

public Send ( String from, String to, String text, System.DateTime dateTime, EnumAuthenticationTypes authType ) : String
from String
to String
text String
dateTime System.DateTime
authType EnumAuthenticationTypes
Результат String

Send() публичный Метод

public Send ( String from, String to, String text, EnumAuthenticationTypes authType ) : String
from String
to String
text String
authType EnumAuthenticationTypes
Результат String

SendByEmail() публичный Метод

public SendByEmail ( String to, String text ) : ResponseOnSendRequest
to String
text String
Результат ResponseOnSendRequest

SendMultiple() публичный Метод

public SendMultiple ( String from, String>.Dictionary toAndText ) : String
from String
toAndText String>.Dictionary
Результат String

SendMultiple() публичный Метод

public SendMultiple ( String from, String>.Dictionary toAndText, System.DateTime dateTime ) : String
from String
toAndText String>.Dictionary
dateTime System.DateTime
Результат String

SendMultiple() публичный Метод

public SendMultiple ( String from, String>.Dictionary toAndText, System.DateTime dateTime, EnumAuthenticationTypes authType ) : String
from String
toAndText String>.Dictionary
dateTime System.DateTime
authType EnumAuthenticationTypes
Результат String

SendMultiple() публичный Метод

public SendMultiple ( String from, String>.Dictionary toAndText, EnumAuthenticationTypes authType ) : String
from String
toAndText String>.Dictionary
authType EnumAuthenticationTypes
Результат String

StoplistAdd() публичный Метод

public StoplistAdd ( String phone, String text, EnumAuthenticationTypes authType ) : System.Boolean
phone String
text String
authType EnumAuthenticationTypes
Результат System.Boolean

StoplistDelete() публичный Метод

public StoplistDelete ( String phone, EnumAuthenticationTypes authType ) : System.Boolean
phone String
authType EnumAuthenticationTypes
Результат System.Boolean

StoplistGet() публичный Метод

public StoplistGet ( EnumAuthenticationTypes authType ) : String
authType EnumAuthenticationTypes
Результат String