📄 profileinfo.cs
字号:
namespace ASPNET.StarterKit.Communities {
using System;
using System.Data;
//*********************************************************************
//
// ProfileInfo Class
//
// This class represents all user information that cannot be
// retrieved from a cookie. For example, it represents the user's
// email address, first and last name, etc.
//
//*********************************************************************
public class ProfileInfo {
int _id = -1;
string _username = String.Empty;
string _password = String.Empty;
string _email = String.Empty;
string _firstName = String.Empty;
string _lastName = String.Empty;
int _timezone = -8;
string _occupation = String.Empty;
string _location = String.Empty;
string _interests = String.Empty;
string _msn = String.Empty;
string _yahoo = String.Empty;
string _aim = String.Empty;
string _icq = String.Empty;
string _url = String.Empty;
string _fakeEmail = String.Empty;
int _databaseQuota = 10000;
int _databaseQuotaUsed = 0;
DateTime _dateCreated;
DateTime _lastLogin;
bool _enableNewsletter;
bool _enableNotifications;
//*********************************************************************
//
// ID Property
//
// The user ID.
//
//*********************************************************************
public int ID {
get {return _id;}
set {_id = value;}
}
//*********************************************************************
//
// Username Property
//
// The user username.
//
//*********************************************************************
public string Username {
get {return _username;}
set {_username = value;}
}
//*********************************************************************
//
// Password Property
//
// The user password.
//
//*********************************************************************
public string Password {
get {return _password;}
set {_password = value;}
}
//*********************************************************************
//
// Email Property
//
// The user email.
//
//*********************************************************************
public string Email {
get {return _email;}
set {_email = value;}
}
//*********************************************************************
//
// FirstName Property
//
// The user first name.
//
//*********************************************************************
public string FirstName {
get {return _firstName;}
set {_firstName = value;}
}
//*********************************************************************
//
// LastName Property
//
// The user last name.
//
//*********************************************************************
public string LastName {
get {return _lastName;}
set {_lastName = value;}
}
//*********************************************************************
//
// TimeZone Property
//
// The user time zone.
//
//*********************************************************************
public int Timezone {
get {return _timezone;}
set {_timezone = value;}
}
//*********************************************************************
//
// Occupation Property
//
// The user occupation.
//
//*********************************************************************
public string Occupation {
get {return _occupation;}
set {_occupation = value;}
}
//*********************************************************************
//
// Location Property
//
// The user location.
//
//*********************************************************************
public string Location {
get {return _location;}
set {_location = value;}
}
//*********************************************************************
//
// Interests Property
//
// The user interests.
//
//*********************************************************************
public string Interests {
get {return _interests;}
set {_interests = value;}
}
//*********************************************************************
//
// MSN Property
//
// The user MSN Instant Messenger address.
//
//*********************************************************************
public string MSN {
get {return _msn;}
set {_msn = value;}
}
//*********************************************************************
//
// Yahoo Property
//
// The user Yahoo Instant Messenger address.
//
//*********************************************************************
public string Yahoo {
get {return _yahoo;}
set {_yahoo = value;}
}
//*********************************************************************
//
// AIM Property
//
// The user AIM Instant Messenger address.
//
//*********************************************************************
public string AIM {
get {return _aim;}
set {_aim = value;}
}
//*********************************************************************
//
// ICQ Property
//
// The user ICQ Instant Messenger address.
//
//*********************************************************************
public string ICQ {
get {return _icq;}
set {_icq = value;}
}
//*********************************************************************
//
// Url Property
//
// The user Web site URL.
//
//*********************************************************************
public string Url {
get {return _url;}
set {_url = value;}
}
//*********************************************************************
//
// FakeEmail Property
//
// The user fake email address.
//
//*********************************************************************
public string FakeEmail {
get {return _fakeEmail;}
set {_fakeEmail = value;}
}
//*********************************************************************
//
// DatabaseQuota Property
//
// The total database disk quota for downloads and photos
// associated with this user.
//
//*********************************************************************
public int DatabaseQuota {
get {return _databaseQuota;}
set {_databaseQuota = value;}
}
//*********************************************************************
//
// DatabaseQuotaUsed Property
//
// The database disk quota for downloads and photos
// already used by this user.
//
//*********************************************************************
public int DatabaseQuotaUsed {
get {return _databaseQuotaUsed;}
set {_databaseQuotaUsed = value;}
}
//*********************************************************************
//
// DateCreated Property
//
// The date the user registered.
//
//*********************************************************************
public DateTime DateCreated {
get {return _dateCreated;}
set {_dateCreated = value;}
}
//*********************************************************************
//
// LastLogin Property
//
// The date the user last explicitly logged in.
//
//*********************************************************************
public DateTime LastLogin {
get {return _lastLogin;}
set {_lastLogin = value;}
}
//*********************************************************************
//
// EnableNewsletter Property
//
// Indicates whether the user wants to receive
// the newsletter.
//
//*********************************************************************
public bool EnableNewsletter {
get {return _enableNewsletter;}
set {_enableNewsletter = value;}
}
//*********************************************************************
//
// EnableNotifications Property
//
// Indicates whether the user wants to receive
// email notifications.
//
//*********************************************************************
public bool EnableNotifications {
get {return _enableNotifications;}
set {_enableNotifications = value;}
}
//*********************************************************************
//
// ProfileInfo Constructor
//
// Initializes a new instance of the ProfileInfo class.
//
//*********************************************************************
public ProfileInfo(){}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -