using System; using System.IO; using MECF.Framework.Common.Account.Extends; namespace Aitex.Core.Account { [Serializable] public class LoginResult { /// /// 设置或返回是否登录成功。 /// public bool ActSucc { get; set; } /// /// 设置或返回登录成功后RT分配的唯一识别码。 /// /// 该唯一识别码用于在RT区分每一个不同的客户端连接。 /// /// public string SessionId { get; set; } /// /// 设置或返回登录的账户信息。 /// public Account AccountInfo { get; set; } public AccountEx AccountEx { get; set; } /// /// 设置或返回登录结果描述。 /// public string Description { get; set; } /// /// 设置或返回登录时间。 /// public DateTime LoginTime { get; set; } /// /// 设置或返回客户端IP地址。 /// public string LoginIP { get; set; } /// /// 设置或返回客户端Port。 /// public int LoginPort { get; set; } /// public override string ToString() { return $"{AccountEx.LoginName} from {LoginIP}:{LoginPort}"; } } }