C# Class SIP_Agent.Model.Person

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

Protected Properties

Свойство Type Description
Contacts IQueryable

Private Properties

Свойство Type Description
LoadContacts void

Méthodes publiques

Méthode Description
FindAll ( int Limit ) : IQueryable

Finds all persons

FullName ( person row ) : string

Take a DB person row and concat first + last names

GetEmail ( ) : string

Get's the person's email

GetPhone ( ) : string

Search for the person's phone

Load ( int PersonId ) : bool

Login ( string Username, string Password ) : bool

Authenticate the user

Logout ( ) : void

Log the user out

New ( ) : int

Creates a new row in the database

Person ( ) : System

Empty constructor

Person ( int PersonId ) : System

Create and load the model

PreviousCalls ( System.DateTime Until ) : call[]

Get previous calls (up to that point) by the caller

Save ( ) : int

Validation checks before saving

Private Methods

Méthode Description
LoadContacts ( ) : void

Loads the loaded person's contact entries

Method Details

FindAll() public méthode

Finds all persons
public FindAll ( int Limit ) : IQueryable
Limit int The max number of rows to return
Résultat IQueryable

FullName() public static méthode

Take a DB person row and concat first + last names
public static FullName ( person row ) : string
row person
Résultat string

GetEmail() public méthode

Get's the person's email
public GetEmail ( ) : string
Résultat string

GetPhone() public méthode

Search for the person's phone
public GetPhone ( ) : string
Résultat string

Load() public méthode

public Load ( int PersonId ) : bool
PersonId int
Résultat bool

Login() public méthode

Authenticate the user
public Login ( string Username, string Password ) : bool
Username string
Password string
Résultat bool

Logout() public méthode

Log the user out
public Logout ( ) : void
Résultat void

New() public méthode

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

Person() public méthode

Empty constructor
public Person ( ) : System
Résultat System

Person() public méthode

Create and load the model
public Person ( int PersonId ) : System
PersonId int
Résultat System

PreviousCalls() public méthode

Get previous calls (up to that point) by the caller
public PreviousCalls ( System.DateTime Until ) : call[]
Until System.DateTime Previous calls up to that point
Résultat call[]

Save() public méthode

Validation checks before saving
public Save ( ) : int
Résultat int

Property Details

Contacts protected_oe property

Holds phonebook entries
protected IQueryable Contacts
Résultat IQueryable