C# Class SIP_Agent.Model.Call

Inheritance: Crud, ICrud
Datei anzeigen Open project: anroots/SIP-Agent

Public Properties

Property Type Description
Caller Person

Private Properties

Property Type Description

Public Methods

Method Description
AssociatedTasks ( ) : int[]

Get an array of all task IDs associated with the call

BindTask ( string TaskId ) : bool

Wrapper for BindTask(int TaskId)

CalcDuration ( System.DateTime start, System.DateTime end ) : string

Wrapper for CalcDuration(DateTime start, DateTime end)

Call ( int callId ) : System

Create and load the model

FindAll ( int Limit ) : IQueryable

Find all non-deleted rows

GetCalls ( int CallIds ) : call[]

Returns calls matching give ID's

Load ( int CallId ) : bool

Load the model with data (row from the DB)

New ( ) : int

Creates a new row in the database

getCallLink ( int callId ) : string

Get URL for the call .mp3 located in the calls server

playback ( int callId ) : bool

Open the call sound file in an external (system default) sound player. The file itself is streamed from a remote location

Method Details

AssociatedTasks() public method

Get an array of all task IDs associated with the call
public AssociatedTasks ( ) : int[]
return int[]

BindTask() public method

Wrapper for BindTask(int TaskId)
public BindTask ( string TaskId ) : bool
TaskId string
return bool

CalcDuration() public static method

Wrapper for CalcDuration(DateTime start, DateTime end)
public static CalcDuration ( System.DateTime start, System.DateTime end ) : string
start System.DateTime
end System.DateTime
return string

Call() public method

Create and load the model
public Call ( int callId ) : System
callId int
return System

FindAll() public method

Find all non-deleted rows
public FindAll ( int Limit ) : IQueryable
Limit int Max number of rows to return
return IQueryable

GetCalls() public method

Returns calls matching give ID's
public GetCalls ( int CallIds ) : call[]
CallIds int An int array of call ID's
return call[]

Load() public method

Load the model with data (row from the DB)
public Load ( int CallId ) : bool
CallId int
return bool

New() public method

Creates a new row in the database
public New ( ) : int
return int

getCallLink() public static method

Get URL for the call .mp3 located in the calls server
public static getCallLink ( int callId ) : string
callId int The ID of the call
return string

playback() public static method

Open the call sound file in an external (system default) sound player. The file itself is streamed from a remote location
public static playback ( int callId ) : bool
callId int The ID of the call to play
return bool

Property Details

Caller public_oe property

public Person,SIP_Agent.Model Caller
return Person