C# Class SIPSorcery.Entities.RateDataLayer

Show file Open project: sipsorcery/sipsorcery Class Usage Examples

Public Methods

Method Description
Add ( Rate rate ) : void

Adds a new rate.

Delete ( string id ) : void

Deletes an existing rate.

DeleteAll ( string owner ) : void

Deletes all the rates for a specific owner account.

Get ( string owner, string id ) : Rate
Update ( Rate rate ) : void

Updates an existing rate.

Method Details

Add() public method

Adds a new rate.
public Add ( Rate rate ) : void
rate Rate The rate record to add.
return void

Delete() public method

Deletes an existing rate.
public Delete ( string id ) : void
id string The ID of the rate record to delete.
return void

DeleteAll() public method

Deletes all the rates for a specific owner account.
public DeleteAll ( string owner ) : void
owner string The owner to delete all the rates for.
return void

Get() public method

public Get ( string owner, string id ) : Rate
owner string
id string
return Rate

Update() public method

Updates an existing rate.
public Update ( Rate rate ) : void
rate Rate The rate to update.
return void