コード例 #1
0
 public void AccountSave(ref Account account)
 {
     StoredProcedure proc = new StoredProcedure(SQLResource.ProcessTwilioAccount, this.ConnectionString);
     proc.Parameters.AddWithValue("@AccountSID", account.Sid);
     proc.Parameters.AddWithValue("@FriendlyName", account.FriendlyName);
     proc.Parameters.AddWithValue("@DateCreated", account.DateCreated);
     proc.Parameters.AddWithValue("@DateUpdate", account.DateUpdated);
     proc.ExecuteNonQuery();
 }
コード例 #2
0
 public static CallResult GetCalls(Account Acnt)
 {
     TwilioRestClient acntInfo = new TwilioRestClient(Acnt.Sid, Acnt.AuthToken);
     CallResult calls = acntInfo.ListCalls();
     return (calls);
 }
コード例 #3
0
 public static IncomingPhoneNumberResult GetPhoneNumbers(Account Acnt)
 {
     TwilioRestClient acntInfo = new TwilioRestClient(Acnt.Sid, Acnt.AuthToken);
     IncomingPhoneNumberResult phoneNumbers = acntInfo.ListIncomingPhoneNumbers();
     return phoneNumbers;
 }
コード例 #4
0
 public static void Save(Account account, IExternalDataProvider dataProvider)
 {
     dataProvider.AccountSave(ref account);
 }