//-----------------------------------------------------------------------------
//
// Company copyright tag.
//
// stubbfel
// 05.09.2013
//-----------------------------------------------------------------------------
namespace CampusAppWPortalLib8.Model.Person
{
using System.Xml.Serialization;
using CampusAppWPortalLib8.Utility;
/// Person function model.
/// Stubbfel, 05.09.2013.
public class PersonFunctionModel : IPersonFunctionModel
{
#region Member
/// The first tel.
private string tel1;
/// The second tel.
private string tel2;
/// The fax.
private string fax;
/// The mail.
private string mail;
/// The function.
private string function;
/// The appointment.
private string appointment;
/// The building.
private string building;
#endregion
#region Property
/// Gets or sets the tel 1.
/// The tel 1.
[XmlAttribute("telefon")]
public string Tel1
{
get
{
return this.tel1;
}
set
{
if (value != null && value != string.Empty && value != this.tel1)
{
this.tel1 = DefaultStringManager.CreateUniTelefonNumber(value);
}
}
}
/// Gets or sets the tel 2.
/// The tel 2.
[XmlAttribute("telefon2")]
public string Tel2
{
get
{
return this.tel2;
}
set
{
if (value != null && value != string.Empty && value != this.tel2)
{
this.tel2 = DefaultStringManager.CreateUniTelefonNumber(value);
}
}
}
/// Gets or sets the fax.
/// The fax.
[XmlAttribute("fax")]
public string Fax
{
get
{
return this.fax;
}
set
{
if (value != null && value != string.Empty && value != this.fax)
{
this.fax = DefaultStringManager.CreateUniTelefonNumber(value);
}
}
}
/// Gets or sets the function.
/// The function.
[XmlAttribute("funktion")]
public string Function
{
get
{
return this.function;
}
set
{
if (value != this.function)
{
this.function = value;
}
}
}
/// Gets or sets the appointment.
/// The appointment.
[XmlAttribute("einrichtung")]
public string Appointment
{
get
{
return this.appointment;
}
set
{
if (value != this.appointment)
{
this.appointment = value;
}
}
}
/// Gets or sets the building.
/// The building.
[XmlAttribute("gebaeude")]
public string Building
{
get
{
return this.building;
}
set
{
if (value != this.building)
{
this.building = value;
}
}
}
/// Gets or sets the mail.
/// The mail.
[XmlAttribute("mail")]
public string Mail
{
get
{
return this.mail;
}
set
{
if (value != null && value != this.mail && DefaultStringManager.IsValidEmail(value))
{
this.mail = value;
}
}
}
/// Gets or sets the identifier of the person.
/// The identifier of the person.
public string PersonID { get; set; }
/// Gets or sets zero-based index of the function.
/// The function index.
public int FunctionIndex { get; set; }
#endregion
}
}