C# Class SIP_Agent.Model.Call

Inheritance: Crud, ICrud
Afficher le fichier Open project: anroots/SIP-Agent

Méthodes publiques

Свойство Type Description
Caller Person

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

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

BindTask() public méthode

Wrapper for BindTask(int TaskId)
public BindTask ( string TaskId ) : bool
TaskId string
Résultat bool

CalcDuration() public static méthode

Wrapper for CalcDuration(DateTime start, DateTime end)
public static CalcDuration ( System.DateTime start, System.DateTime end ) : string
start System.DateTime
end System.DateTime
Résultat string

Call() public méthode

Create and load the model
public Call ( int callId ) : System
callId int
Résultat System

FindAll() public méthode

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

GetCalls() public méthode

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

Load() public méthode

Load the model with data (row from the DB)
public Load ( int CallId ) : bool
CallId int
Résultat bool

New() public méthode

Creates a new row in the database
public New ( ) : int
Résultat int

getCallLink() public static méthode

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

playback() public static méthode

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
Résultat bool

Property Details

Caller public_oe property

public Person,SIP_Agent.Model Caller
Résultat Person