C# Class SIPSorcery.Entities.SIPSorceryService

Datei anzeigen Open project: sipsorcery/sipsorcery

Public Methods

Method Description
ChangeSIPDialPlanName ( string authUser, string sipDialPlanID, string name ) : void
ConfirmEmailAddress ( string id, string requestIPAddress ) : string
CopySIPDialPlan ( string authUser, string sipDialPlanID ) : void
CustomerResetAPIKey ( string authUser, string customerUsername ) : void
DBDelete ( string authUsername, string key ) : void
DBGetKeys ( string authUsername ) : List
DBRead ( string authUsername, string key ) : string
DBWrite ( string authUsername, string key, string value ) : void
DeleteCustomerAccount ( string authUser, CustomerAccount customerAccount ) : void
DeleteCustomerAccount ( string authUser, string customerAccountID ) : void
DeleteRate ( string authUser, Rate rate ) : void
DeleteRate ( string authUser, string rateID ) : void
DeleteSIPAccount ( string authUser, SIPAccount sipAccount ) : void
DeleteSIPAccount ( string authUser, string sipAccountID ) : void
DeleteSIPDialPlan ( string authUser, SIPDialPlan sipDialPlan ) : void
DeleteSIPDialPlan ( string authUser, string sipDialPlanID ) : void
DeleteSIPProvider ( string authUser, SIPProvider sipProvider ) : void
DeleteSIPProvider ( string authUser, string sipProviderID ) : void
DeleteSimpleWizardRule ( string authUser, SimpleWizardRule rule ) : void
DeleteWebCallback ( string authUser, WebCallback webCallback ) : void
GetCDRCount ( string authUser, string where ) : int
GetCDRs ( string authUser, string where, int offset, int count ) : List
GetCustomer ( string username ) : Customer
GetCustomerAccounts ( string authUser ) : IQueryable
GetCustomerAccounts ( string authUser, string where, int offset, int count ) : List
GetCustomerAccountsCount ( string authUser, string where ) : int
GetCustomerForAPIKey ( string apiKey ) : Customer
GetRates ( string authUser ) : IQueryable
GetRates ( string authUser, string where, int offset, int count ) : List
GetRatesCount ( string authUser, string where ) : int
GetSIPAccounts ( string authUser ) : IQueryable
GetSIPAccounts ( string authUser, string where, int offset, int count ) : List
GetSIPAccountsCount ( string authUser, string where ) : int
GetSIPDialPlansCount ( string authUser, string where ) : int
GetSIPProviderBindings ( string authUser ) : IQueryable
GetSIPProviderBindings ( string authUser, string where, int offset, int count ) : List
GetSIPProviderBindingsCount ( string authUser, string where ) : int
GetSIPProviders ( string authUser ) : IQueryable
GetSIPProviders ( string authUser, string where, int offset, int count ) : List
GetSIPProvidersCount ( string authUser, string where ) : int
GetSIPRegistrarBindings ( string authUser ) : IQueryable
GetSIPRegistrarBindings ( string authUser, string where, int offset, int count ) : List
GetSIPRegistrarBindingsCount ( string authUser, string where ) : int
GetSIPSIPDialPlans ( string authUser ) : IQueryable
GetSIPSIPDialPlans ( string authUser, string where, int offset, int count ) : List
GetSimpleWizardRules ( string authUser ) : IQueryable
GetTimeZones ( ) : List
GetWebCallbacks ( string authUser ) : IQueryable
InsertCustomer ( Customer customer ) : void
InsertCustomerAccount ( string authUser, CustomerAccount customerAccount ) : void
InsertRate ( string authUser, Rate rate ) : void
InsertSIPAccount ( string authUser, SIPAccount sipAccount ) : string
InsertSIPDialPlan ( string authUser, SIPDialPlan sipDialPlan ) : void
InsertSIPProvider ( string authUser, SIPProvider sipProvider ) : void
InsertSimpleWizardRule ( string authUser, SimpleWizardRule rule ) : void
InsertWebCallback ( string authUser, WebCallback webcallback ) : void
SetAllProvidersAndDialPlansReadonly ( string username ) : void
UpdateCustomer ( string authUser, Customer customer ) : void
UpdateCustomerAccount ( string authUser, CustomerAccount customerAccount ) : void
UpdateCustomerServiceLevel ( string username, CustomerServiceLevels serviceLevel, DateTimeOffset renewalDate ) : void

Only available from the REST API service to admins.

UpdateRate ( string authUser, Rate rate ) : void
UpdateSIPAccount ( string authUser, SIPAccount sipAccount ) : void
UpdateSIPDialPlan ( string authUser, SIPDialPlan sipDialPlan ) : void
UpdateSIPProvider ( string authUser, SIPProvider sipProvider ) : void
UpdateSimpleWizardRule ( string authUser, SimpleWizardRule rule ) : void
UpdateWebCallback ( string authUser, WebCallback webcallback ) : void

Private Methods

Method Description
FixProviderRegisterDetails ( SIPProvider sipProvider, string owner ) : void

Fixes up the register contact and expiry fields on provider records that have the register box checked.

SIPSorceryService ( ) : System
UpdateSIPAccountsDialPlanName ( SIPSorceryEntities dbContext, string owner, string oldDialPlanName, string newDialPlanName ) : void

Method Details

ChangeSIPDialPlanName() public method

public ChangeSIPDialPlanName ( string authUser, string sipDialPlanID, string name ) : void
authUser string
sipDialPlanID string
name string
return void

ConfirmEmailAddress() public method

public ConfirmEmailAddress ( string id, string requestIPAddress ) : string
id string
requestIPAddress string
return string

CopySIPDialPlan() public method

public CopySIPDialPlan ( string authUser, string sipDialPlanID ) : void
authUser string
sipDialPlanID string
return void

CustomerResetAPIKey() public method

public CustomerResetAPIKey ( string authUser, string customerUsername ) : void
authUser string
customerUsername string
return void

DBDelete() public method

public DBDelete ( string authUsername, string key ) : void
authUsername string
key string
return void

DBGetKeys() public method

public DBGetKeys ( string authUsername ) : List
authUsername string
return List

DBRead() public method

public DBRead ( string authUsername, string key ) : string
authUsername string
key string
return string

DBWrite() public method

public DBWrite ( string authUsername, string key, string value ) : void
authUsername string
key string
value string
return void

DeleteCustomerAccount() public method

public DeleteCustomerAccount ( string authUser, CustomerAccount customerAccount ) : void
authUser string
customerAccount CustomerAccount
return void

DeleteCustomerAccount() public method

public DeleteCustomerAccount ( string authUser, string customerAccountID ) : void
authUser string
customerAccountID string
return void

DeleteRate() public method

public DeleteRate ( string authUser, Rate rate ) : void
authUser string
rate Rate
return void

DeleteRate() public method

public DeleteRate ( string authUser, string rateID ) : void
authUser string
rateID string
return void

DeleteSIPAccount() public method

public DeleteSIPAccount ( string authUser, SIPAccount sipAccount ) : void
authUser string
sipAccount SIPAccount
return void

DeleteSIPAccount() public method

public DeleteSIPAccount ( string authUser, string sipAccountID ) : void
authUser string
sipAccountID string
return void

DeleteSIPDialPlan() public method

public DeleteSIPDialPlan ( string authUser, SIPDialPlan sipDialPlan ) : void
authUser string
sipDialPlan SIPDialPlan
return void

DeleteSIPDialPlan() public method

public DeleteSIPDialPlan ( string authUser, string sipDialPlanID ) : void
authUser string
sipDialPlanID string
return void

DeleteSIPProvider() public method

public DeleteSIPProvider ( string authUser, SIPProvider sipProvider ) : void
authUser string
sipProvider SIPProvider
return void

DeleteSIPProvider() public method

public DeleteSIPProvider ( string authUser, string sipProviderID ) : void
authUser string
sipProviderID string
return void

DeleteSimpleWizardRule() public method

public DeleteSimpleWizardRule ( string authUser, SimpleWizardRule rule ) : void
authUser string
rule SimpleWizardRule
return void

DeleteWebCallback() public method

public DeleteWebCallback ( string authUser, WebCallback webCallback ) : void
authUser string
webCallback WebCallback
return void

GetCDRCount() public method

public GetCDRCount ( string authUser, string where ) : int
authUser string
where string
return int

GetCDRs() public method

public GetCDRs ( string authUser, string where, int offset, int count ) : List
authUser string
where string
offset int
count int
return List

GetCustomer() public method

public GetCustomer ( string username ) : Customer
username string
return Customer

GetCustomerAccounts() public method

public GetCustomerAccounts ( string authUser ) : IQueryable
authUser string
return IQueryable

GetCustomerAccounts() public method

public GetCustomerAccounts ( string authUser, string where, int offset, int count ) : List
authUser string
where string
offset int
count int
return List

GetCustomerAccountsCount() public method

public GetCustomerAccountsCount ( string authUser, string where ) : int
authUser string
where string
return int

GetCustomerForAPIKey() public method

public GetCustomerForAPIKey ( string apiKey ) : Customer
apiKey string
return Customer

GetRates() public method

public GetRates ( string authUser ) : IQueryable
authUser string
return IQueryable

GetRates() public method

public GetRates ( string authUser, string where, int offset, int count ) : List
authUser string
where string
offset int
count int
return List

GetRatesCount() public method

public GetRatesCount ( string authUser, string where ) : int
authUser string
where string
return int

GetSIPAccounts() public method

public GetSIPAccounts ( string authUser ) : IQueryable
authUser string
return IQueryable

GetSIPAccounts() public method

public GetSIPAccounts ( string authUser, string where, int offset, int count ) : List
authUser string
where string
offset int
count int
return List

GetSIPAccountsCount() public method

public GetSIPAccountsCount ( string authUser, string where ) : int
authUser string
where string
return int

GetSIPDialPlansCount() public method

public GetSIPDialPlansCount ( string authUser, string where ) : int
authUser string
where string
return int

GetSIPProviderBindings() public method

public GetSIPProviderBindings ( string authUser ) : IQueryable
authUser string
return IQueryable

GetSIPProviderBindings() public method

public GetSIPProviderBindings ( string authUser, string where, int offset, int count ) : List
authUser string
where string
offset int
count int
return List

GetSIPProviderBindingsCount() public method

public GetSIPProviderBindingsCount ( string authUser, string where ) : int
authUser string
where string
return int

GetSIPProviders() public method

public GetSIPProviders ( string authUser ) : IQueryable
authUser string
return IQueryable

GetSIPProviders() public method

public GetSIPProviders ( string authUser, string where, int offset, int count ) : List
authUser string
where string
offset int
count int
return List

GetSIPProvidersCount() public method

public GetSIPProvidersCount ( string authUser, string where ) : int
authUser string
where string
return int

GetSIPRegistrarBindings() public method

public GetSIPRegistrarBindings ( string authUser ) : IQueryable
authUser string
return IQueryable

GetSIPRegistrarBindings() public method

public GetSIPRegistrarBindings ( string authUser, string where, int offset, int count ) : List
authUser string
where string
offset int
count int
return List

GetSIPRegistrarBindingsCount() public method

public GetSIPRegistrarBindingsCount ( string authUser, string where ) : int
authUser string
where string
return int

GetSIPSIPDialPlans() public method

public GetSIPSIPDialPlans ( string authUser ) : IQueryable
authUser string
return IQueryable

GetSIPSIPDialPlans() public method

public GetSIPSIPDialPlans ( string authUser, string where, int offset, int count ) : List
authUser string
where string
offset int
count int
return List

GetSimpleWizardRules() public method

public GetSimpleWizardRules ( string authUser ) : IQueryable
authUser string
return IQueryable

GetTimeZones() public method

public GetTimeZones ( ) : List
return List

GetWebCallbacks() public method

public GetWebCallbacks ( string authUser ) : IQueryable
authUser string
return IQueryable

InsertCustomer() public method

public InsertCustomer ( Customer customer ) : void
customer Customer
return void

InsertCustomerAccount() public method

public InsertCustomerAccount ( string authUser, CustomerAccount customerAccount ) : void
authUser string
customerAccount CustomerAccount
return void

InsertRate() public method

public InsertRate ( string authUser, Rate rate ) : void
authUser string
rate Rate
return void

InsertSIPAccount() public method

public InsertSIPAccount ( string authUser, SIPAccount sipAccount ) : string
authUser string
sipAccount SIPAccount
return string

InsertSIPDialPlan() public method

public InsertSIPDialPlan ( string authUser, SIPDialPlan sipDialPlan ) : void
authUser string
sipDialPlan SIPDialPlan
return void

InsertSIPProvider() public method

public InsertSIPProvider ( string authUser, SIPProvider sipProvider ) : void
authUser string
sipProvider SIPProvider
return void

InsertSimpleWizardRule() public method

public InsertSimpleWizardRule ( string authUser, SimpleWizardRule rule ) : void
authUser string
rule SimpleWizardRule
return void

InsertWebCallback() public method

public InsertWebCallback ( string authUser, WebCallback webcallback ) : void
authUser string
webcallback WebCallback
return void

SetAllProvidersAndDialPlansReadonly() public method

public SetAllProvidersAndDialPlansReadonly ( string username ) : void
username string
return void

UpdateCustomer() public method

public UpdateCustomer ( string authUser, Customer customer ) : void
authUser string
customer Customer
return void

UpdateCustomerAccount() public method

public UpdateCustomerAccount ( string authUser, CustomerAccount customerAccount ) : void
authUser string
customerAccount CustomerAccount
return void

UpdateCustomerServiceLevel() public method

Only available from the REST API service to admins.
public UpdateCustomerServiceLevel ( string username, CustomerServiceLevels serviceLevel, DateTimeOffset renewalDate ) : void
username string
serviceLevel CustomerServiceLevels
renewalDate DateTimeOffset
return void

UpdateRate() public method

public UpdateRate ( string authUser, Rate rate ) : void
authUser string
rate Rate
return void

UpdateSIPAccount() public method

public UpdateSIPAccount ( string authUser, SIPAccount sipAccount ) : void
authUser string
sipAccount SIPAccount
return void

UpdateSIPDialPlan() public method

public UpdateSIPDialPlan ( string authUser, SIPDialPlan sipDialPlan ) : void
authUser string
sipDialPlan SIPDialPlan
return void

UpdateSIPProvider() public method

public UpdateSIPProvider ( string authUser, SIPProvider sipProvider ) : void
authUser string
sipProvider SIPProvider
return void

UpdateSimpleWizardRule() public method

public UpdateSimpleWizardRule ( string authUser, SimpleWizardRule rule ) : void
authUser string
rule SimpleWizardRule
return void

UpdateWebCallback() public method

public UpdateWebCallback ( string authUser, WebCallback webcallback ) : void
authUser string
webcallback WebCallback
return void