43 lines
1.2 KiB
C#
43 lines
1.2 KiB
C#
using ServerCore; using ServerBase;
|
|
using ThirdParty.Json.LitJson;
|
|
|
|
namespace ServerCommon.BusinessLogDomain;
|
|
|
|
public class VoteResult
|
|
{
|
|
[JsonProperty] public int Agree { get; set; } = 0;
|
|
[JsonProperty] public int DisAgree { get; set; } = 0;
|
|
[JsonProperty] public int Abstain { get; set; } = 0;
|
|
|
|
}
|
|
|
|
public class PartyVoteLogData : ILogInvoker.IInfo
|
|
{
|
|
[JsonProperty] public string PartyGuid { get; set; } = string.Empty;
|
|
[JsonProperty] public string VoteTitle { get; set; } = string.Empty;
|
|
[JsonProperty] public DateTime StartVoteTime { get; set; } = DateTimeHelper.Current;
|
|
[JsonProperty] public DateTime EndVoteTime { get; set; }
|
|
[JsonProperty] public VoteResult VoteResult { get; set; } = new();
|
|
|
|
public PartyVoteLogData()
|
|
: base()
|
|
{ }
|
|
|
|
public PartyVoteLogData(ILogInvoker parent, PartyVoteLogData logParam)
|
|
: base(parent)
|
|
{
|
|
if (null != logParam)
|
|
{
|
|
setPartyInfo(logParam);
|
|
}
|
|
}
|
|
|
|
public void setPartyInfo(PartyVoteLogData logData)
|
|
{
|
|
PartyGuid = logData.PartyGuid;
|
|
VoteTitle = logData.VoteTitle;
|
|
StartVoteTime = logData.StartVoteTime;
|
|
EndVoteTime = logData.EndVoteTime;
|
|
VoteResult = logData.VoteResult;
|
|
}
|
|
} |