PageRenderTime 57ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/sipsorcery-core/SIPSorcery.Web.Services/Provisioning/IProvisioningService.cs

https://github.com/thecc4re/sipsorcery-mono
C# | 52 lines | 49 code | 3 blank | 0 comment | 0 complexity | 0b4ca58ff901d0460b66f896a2cf5b83 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.ServiceModel;
  5. using System.ServiceModel.Web;
  6. using System.Text;
  7. using SIPSorcery.CRM;
  8. using SIPSorcery.SIP.App;
  9. namespace SIPSorcery.Web.Services {
  10. [ServiceContract(Namespace = "http://www.sipsorcery.com/provisioning")]
  11. public interface IProvisioningService {
  12. [OperationContract] bool IsAlive();
  13. [OperationContract] void TestException();
  14. [OperationContract] bool AreNewAccountsEnabled();
  15. [OperationContract] void CreateCustomer(Customer customer);
  16. [OperationContract] void DeleteCustomer(string customerUsername);
  17. [OperationContract] string Login(string username, string password);
  18. [OperationContract] void Logout();
  19. [OperationContract] Customer GetCustomer(string username);
  20. [OperationContract] void UpdateCustomer(Customer customer);
  21. [OperationContract] void UpdateCustomerPassword(string username, string oldPassword, string newPassword);
  22. [OperationContract] List<SIPDomain> GetSIPDomains(string filterExpression, int offset, int count);
  23. [OperationContract] int GetSIPAccountsCount(string whereExpression);
  24. [OperationContract] List<SIPAccount> GetSIPAccounts(string whereExpression, int offset, int count);
  25. [OperationContract] SIPAccount AddSIPAccount(SIPAccount sipAccount);
  26. [OperationContract] SIPAccount UpdateSIPAccount(SIPAccount sipAccount);
  27. [OperationContract] SIPAccount DeleteSIPAccount(SIPAccount sipAccount);
  28. [OperationContract] int GetSIPRegistrarBindingsCount(string whereExpression);
  29. [OperationContract] List<SIPRegistrarBinding> GetSIPRegistrarBindings(string whereExpression, int offset, int count);
  30. [OperationContract] int GetSIPProvidersCount(string whereExpression);
  31. [OperationContract] List<SIPProvider> GetSIPProviders(string whereExpression, int offset, int count);
  32. [OperationContract] SIPProvider AddSIPProvider(SIPProvider sipProvider);
  33. [OperationContract] SIPProvider UpdateSIPProvider(SIPProvider sipProvider);
  34. [OperationContract] SIPProvider DeleteSIPProvider(SIPProvider sipProvider);
  35. [OperationContract] int GetSIPProviderBindingsCount(string whereExpression);
  36. [OperationContract] List<SIPProviderBinding> GetSIPProviderBindings(string whereExpression, int offset, int count);
  37. [OperationContract] int GetDialPlansCount(string whereExpression);
  38. [OperationContract] List<SIPDialPlan> GetDialPlans(string whereExpression, int offset, int count);
  39. [OperationContract] SIPDialPlan AddDialPlan(SIPDialPlan dialPlan);
  40. [OperationContract] SIPDialPlan UpdateDialPlan(SIPDialPlan dialPlan);
  41. [OperationContract] SIPDialPlan DeleteDialPlan(SIPDialPlan dialPlan);
  42. [OperationContract] int GetCallsCount(string whereExpression);
  43. [OperationContract] List<SIPDialogueAsset> GetCalls(string whereExpression, int offset, int count);
  44. [OperationContract] int GetCDRsCount(string whereExpression);
  45. [OperationContract] List<SIPCDRAsset> GetCDRs(string whereExpression, int offset, int count);
  46. [OperationContract] void ExtendSession(int minutes);
  47. [OperationContract] int GetTimeZoneOffsetMinutes();
  48. }
  49. }