60 lines
1.8 KiB
C#
60 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Net;
|
|
|
|
|
|
using Nettention.Proud;
|
|
using NeoSmart.AsyncLock;
|
|
|
|
|
|
using ServerCore;
|
|
using ServerBase;
|
|
|
|
|
|
using SESSION_ID = System.Int32;
|
|
using WORLD_ID = System.UInt32;
|
|
using META_ID = System.UInt32;
|
|
using ENTITY_GUID = System.String;
|
|
using ACCOUNT_ID = System.String;
|
|
using OWNER_GUID = System.String;
|
|
using USER_GUID = System.String;
|
|
using CHARACTER_GUID = System.String;
|
|
using ITEM_GUID = System.String;
|
|
|
|
|
|
namespace ServerCommon;
|
|
|
|
public abstract partial class UserBase : EntityBase, IEntityWithSession, IWithLogActor
|
|
{
|
|
public bool isCompletedLogout() => m_is_completed_logout;
|
|
|
|
public void setCompletedLogout() => m_is_completed_logout = true;
|
|
|
|
public DateTime getLoginStartTime() => m_login_start_time;
|
|
|
|
public void setLogoutEndTime(DateTime currentTime) => m_logout_end_time = currentTime;
|
|
|
|
public DateTime getLogoutEndTime() => m_logout_end_time;
|
|
|
|
public string getUserNickname() => getOriginEntityAttribute<NicknameAttribute>()?.Nickname ?? string.Empty;
|
|
|
|
public UInt64 getSsoAccountAuthWebAccessToken() => getOriginEntityAttribute<AccountAttribute>()?.AccessToken ?? 0;
|
|
|
|
public string getAccountId() => getOriginEntityAttribute<AccountAttribute>()?.AccountId ?? string.Empty;
|
|
|
|
public string getAccountIdString() => getOriginEntityAttribute<AccountAttribute>()?.AccountIdString ?? string.Empty;
|
|
|
|
public string getUserGuid() => getOriginEntityAttribute<AccountAttribute>()?.UserGuid ?? string.Empty;
|
|
|
|
public ListenSessionBase? getListenSessionBase() => m_listen_session_base;
|
|
|
|
public void setListenSessionBase(ListenSessionBase listenSessionBase) => m_listen_session_base = listenSessionBase;
|
|
|
|
public SESSION_ID getSessionId() => m_host_id.toSESSION_ID();
|
|
|
|
public HostID getHostId() => m_host_id;
|
|
}
|