using System;
using SiberTek.Xenta.Enums;
namespace SiberTek.Xenta.Data.Entities
{
/// <summary>
/// Represents an user entity
/// </summary>
public class UserData : DataEntityBase
{
#region Fields
private int _userID;
private Guid _guid;
private string _username;
private string _firstName;
private string _lastName;
private Gender _gender;
private DateTime? _birthDate;
private string _email;
private string _comment;
private string _passwordHash;
private string _passwordSalt;
private int _languageID;
private int _currencyID;
private int _timeZoneID;
private int _countryID;
private bool _isActive;
private DateTime _createdOn;
private DateTime _updatedOn;
#endregion
#region Constructors
public UserData() : this(0, Guid.Empty, String.Empty, String.Empty, String.Empty, Gender.NotDefined, null, String.Empty, String.Empty, String.Empty, String.Empty, 0, 0, 0, 0, false, DateTime.UtcNow, DateTime.UtcNow)
{
}
public UserData(int userID, Guid guid, string username, string firstName, string lastName, Gender gender, DateTime? birthDate, string email, string comment, string passwordHash, string passwordSalt, int languageID, int currencyID, int timeZoneID, int countryID, bool isActive, DateTime createdOn, DateTime updatedOn)
{
_userID = userID;
_guid = guid;
_username = username;
_firstName = firstName;
_lastName = lastName;
_gender = gender;
_birthDate = birthDate;
_email = email;
_comment = comment;
_passwordHash = passwordHash;
_passwordSalt = passwordSalt;
_languageID = languageID;
_currencyID = currencyID;
_timeZoneID = timeZoneID;
_countryID = countryID;
_isActive = isActive;
_createdOn = createdOn;
_updatedOn = updatedOn;
}
#endregion
#region Properties
public int UserID
{
get
{
return _userID;
}
set
{
_userID = value;
}
}
public Guid Guid
{
get
{
return _guid;
}
set
{
_guid = value;
}
}
public string Username
{
get
{
return _username;
}
set
{
_username = value;
}
}
public string FirstName
{
get
{
return _firstName;
}
set
{
_firstName = value;
}
}
public string LastName
{
get
{
return _lastName;
}
set
{
_lastName = value;
}
}
public Gender Gender
{
get
{
return _gender;
}
set
{
_gender = value;
}
}
public DateTime? BirthDate
{
get
{
return _birthDate;
}
set
{
_birthDate = value;
}
}
public string Email
{
get
{
return _email;
}
set
{
_email = value;
}
}
public string Comment
{
get
{
return _comment;
}
set
{
_comment = value;
}
}
public string PasswordHash
{
get
{
return _passwordHash;
}
set
{
_passwordHash = value;
}
}
public string PasswordSalt
{
get
{
return _passwordSalt;
}
set
{
_passwordSalt = value;
}
}
public int LanguageID
{
get
{
return _languageID;
}
set
{
_languageID = value;
}
}
public int CurrencyID
{
get
{
return _currencyID;
}
set
{
_currencyID = value;
}
}
public int TimeZoneID
{
get
{
return _timeZoneID;
}
set
{
_timeZoneID = value;
}
}
public int CountryID
{
get
{
return _countryID;
}
set
{
_countryID = value;
}
}
public bool IsActive
{
get
{
return _isActive;
}
set
{
_isActive = value;
}
}
public DateTime CreatedOn
{
get
{
return _createdOn;
}
set
{
_createdOn = value;
}
}
public DateTime UpdatedOn
{
get
{
return _updatedOn;
}
set
{
_updatedOn = value;
}
}
#endregion
}
}