using System; using Aitex.Core.RT.DBCore; namespace Aitex.Core.Account { [Serializable] public class LoginResult { #region Constructors public LoginResult() : this(LoginRequestResults.Error, Credential.Empty) { } public LoginResult(LoginRequestResults result) : this(result, Credential.Empty) { } public LoginResult(LoginRequestResults result, Credential cred) { Result = result; Credential = cred; } #endregion #region Properties /// /// 设置或返回是否登录成功。 /// public LoginRequestResults Result { get; set; } /// /// 登录凭据。 /// public Credential Credential { get; set; } #endregion /// public override string ToString() { return Result.ToString(); } } }