C# Class twilio.sugar.Model.PhoneAutomation

Inheritance: IPhoneAutomation
显示文件 Open project: azcoov/twilio.sugar Class Usage Examples

Public Methods

Method Description
AvailableLocalPhoneNumbers ( Int32 areaCode = null, String contains = null, String inRegion = null, Int32 inPostalCode = null ) : IList
AvailableTollFreePhoneNumbers ( String contains = null ) : IList
CreateSubAccount ( String friendlyName ) : twilio.sugar.Model.Account
DeleteProvisionedPhoneNumber ( twilio.sugar.Model.PhoneNumber model ) : void
GetSMSMessage ( String sid ) : twilio.sugar.Model.SMSMessage
GetSubAccount ( String friendlyName ) : twilio.sugar.Model.Account
GetSubAccounts ( ) : IList
IncomingPhoneNumbers ( String phoneNumber = "", String friendlyName = "" ) : IList
PhoneAutomation ( ITwilioAccount account ) : System
ProvisionPhoneNumber ( String phoneNumber = null, Int32 areaCode = null, twilio.sugar.Model.PhoneNumber model = null, String voiceUrl = null, String voiceFallbackUrl = null, String smsUrl = null, String smsFallbackUrl = null ) : twilio.sugar.Model.PhoneNumber
ProvisionTollFreePhoneNumber ( String phoneNumber, String voiceUrl = null, String voiceFallbackUrl = null ) : twilio.sugar.Model.PhoneNumber
SMSMessageList ( String to = "", String from = "", System.DateTime dateSent = null ) : twilio.sugar.Model.SMS
SendSMSMessage ( String from, String to, String body, String statusCallback = "" ) : twilio.sugar.Model.SMSMessage
UpdateProvisionedPhoneNumber ( twilio.sugar.Model.PhoneNumber model ) : twilio.sugar.Model.PhoneNumber

Private Methods

Method Description
AddParametersFromPhoneNumberModel ( twilio.sugar.Model.PhoneNumber model ) : void
ParseResponseData ( string response ) : dynamic

Method Details

AvailableLocalPhoneNumbers() public method

public AvailableLocalPhoneNumbers ( Int32 areaCode = null, String contains = null, String inRegion = null, Int32 inPostalCode = null ) : IList
areaCode System.Int32
contains String
inRegion String
inPostalCode System.Int32
return IList

AvailableTollFreePhoneNumbers() public method

public AvailableTollFreePhoneNumbers ( String contains = null ) : IList
contains String
return IList

CreateSubAccount() public method

public CreateSubAccount ( String friendlyName ) : twilio.sugar.Model.Account
friendlyName String
return twilio.sugar.Model.Account

DeleteProvisionedPhoneNumber() public method

public DeleteProvisionedPhoneNumber ( twilio.sugar.Model.PhoneNumber model ) : void
model twilio.sugar.Model.PhoneNumber
return void

GetSMSMessage() public method

public GetSMSMessage ( String sid ) : twilio.sugar.Model.SMSMessage
sid String
return twilio.sugar.Model.SMSMessage

GetSubAccount() public method

public GetSubAccount ( String friendlyName ) : twilio.sugar.Model.Account
friendlyName String
return twilio.sugar.Model.Account

GetSubAccounts() public method

public GetSubAccounts ( ) : IList
return IList

IncomingPhoneNumbers() public method

public IncomingPhoneNumbers ( String phoneNumber = "", String friendlyName = "" ) : IList
phoneNumber String
friendlyName String
return IList

PhoneAutomation() public method

public PhoneAutomation ( ITwilioAccount account ) : System
account ITwilioAccount
return System

ProvisionPhoneNumber() public method

public ProvisionPhoneNumber ( String phoneNumber = null, Int32 areaCode = null, twilio.sugar.Model.PhoneNumber model = null, String voiceUrl = null, String voiceFallbackUrl = null, String smsUrl = null, String smsFallbackUrl = null ) : twilio.sugar.Model.PhoneNumber
phoneNumber String
areaCode System.Int32
model twilio.sugar.Model.PhoneNumber
voiceUrl String
voiceFallbackUrl String
smsUrl String
smsFallbackUrl String
return twilio.sugar.Model.PhoneNumber

ProvisionTollFreePhoneNumber() public method

public ProvisionTollFreePhoneNumber ( String phoneNumber, String voiceUrl = null, String voiceFallbackUrl = null ) : twilio.sugar.Model.PhoneNumber
phoneNumber String
voiceUrl String
voiceFallbackUrl String
return twilio.sugar.Model.PhoneNumber

SMSMessageList() public method

public SMSMessageList ( String to = "", String from = "", System.DateTime dateSent = null ) : twilio.sugar.Model.SMS
to String
from String
dateSent System.DateTime
return twilio.sugar.Model.SMS

SendSMSMessage() public method

public SendSMSMessage ( String from, String to, String body, String statusCallback = "" ) : twilio.sugar.Model.SMSMessage
from String
to String
body String
statusCallback String
return twilio.sugar.Model.SMSMessage

UpdateProvisionedPhoneNumber() public method

public UpdateProvisionedPhoneNumber ( twilio.sugar.Model.PhoneNumber model ) : twilio.sugar.Model.PhoneNumber
model twilio.sugar.Model.PhoneNumber
return twilio.sugar.Model.PhoneNumber