mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Switch to System.Text.Json Removed Newtonsoft.Json and DouglasCrockford.JsMin * Update GameConfiguration.cs * Update MasterConfiguration.cs * Update ThreadConfiguration.cs * Update StarterSpell.cs * Update StarterGearFactory.cs * Update Program_Setup.cs * Update LifestonedConverter.cs * Update Program_Setup.cs * Update Program_Setup.cs * Update ACE.Adaptor Shift JSON weenie [de]serialization to System.Text.Json * Update LifestonedConverter.cs * Update StarterGearFactory.cs * Update ACE.Server.csproj * Update ACE.Server.Tests.csproj * Update Program.cs * Update MySqlConfiguration.cs * Update DDDConfiguration.cs * Update ModContainer.cs * Update ModManager.cs * Update ModMetadata.cs * Update ModMetadata.cs
42 lines
1 KiB
C#
42 lines
1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text.Json.Serialization;
|
|
|
|
using Lifestoned.DataModel.Gdle;
|
|
using Lifestoned.DataModel.Shared;
|
|
|
|
namespace ACE.Adapter.GDLE.Models
|
|
{
|
|
public class Metadata
|
|
{
|
|
public DateTime? LastModified { get; set; }
|
|
public string ModifiedBy { get; set; }
|
|
|
|
public List<ChangelogEntry> Changelog { get; set; }
|
|
|
|
public string UserChangeSummary { get; set; }
|
|
|
|
public bool IsDone { get; set; }
|
|
|
|
public Metadata(LSDWeenie weenie)
|
|
{
|
|
LastModified = weenie.LastModified;
|
|
ModifiedBy = weenie.ModifiedBy;
|
|
|
|
Changelog = weenie.Changelog;
|
|
|
|
UserChangeSummary = weenie.UserChangeSummary;
|
|
|
|
IsDone = weenie.IsDone;
|
|
}
|
|
|
|
[JsonIgnore]
|
|
public bool HasInfo
|
|
{
|
|
get
|
|
{
|
|
return LastModified != null || ModifiedBy != null || Changelog != null && Changelog.Count > 0 || UserChangeSummary != null || IsDone;
|
|
}
|
|
}
|
|
}
|
|
}
|