32 lines
989 B
C#
32 lines
989 B
C#
using Newtonsoft.Json;
|
|
using ServerCore; using ServerBase;
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class PartyMemberLogData : ILogInvoker.IInfo
|
|
{
|
|
[JsonProperty] public string PartyGuid { get; set; } = string.Empty;
|
|
[JsonProperty] public string UserGuid { get; set; } = string.Empty;
|
|
[JsonProperty] public PartyMemberActionType PartyMemberActionType { get; set; } = PartyMemberActionType.None;
|
|
[JsonProperty] public DateTime PartyMemberActionTime { get; set; } = DateTimeHelper.Current;
|
|
|
|
public PartyMemberLogData()
|
|
: base()
|
|
{ }
|
|
|
|
public PartyMemberLogData(ILogInvoker parent, PartyMemberLogData logParam)
|
|
: base(parent)
|
|
{
|
|
if (null != logParam)
|
|
{
|
|
setPartyInfo(logParam);
|
|
}
|
|
}
|
|
|
|
public void setPartyInfo(PartyMemberLogData logData)
|
|
{
|
|
PartyGuid = logData.PartyGuid;
|
|
UserGuid = logData.UserGuid;
|
|
PartyMemberActionType = logData.PartyMemberActionType;
|
|
}
|
|
} |