using System;
using System.Diagnostics.CodeAnalysis;
using MongoDB.Bson;
namespace StardewModdingAPI.Web.Framework.Caching.Wiki
{
/// The model for cached wiki metadata.
internal class CachedWikiMetadata
{
/*********
** Accessors
*********/
/// The internal MongoDB ID.
[SuppressMessage("ReSharper", "InconsistentNaming", Justification = "Named per MongoDB conventions.")]
public ObjectId _id { get; set; }
/// When the data was last updated.
public DateTimeOffset LastUpdated { get; set; }
/// The current stable Stardew Valley version.
public string StableVersion { get; set; }
/// The current beta Stardew Valley version.
public string BetaVersion { get; set; }
/*********
** Public methods
*********/
/// Construct an instance.
public CachedWikiMetadata() { }
/// Construct an instance.
/// The current stable Stardew Valley version.
/// The current beta Stardew Valley version.
public CachedWikiMetadata(string stableVersion, string betaVersion)
{
this.StableVersion = stableVersion;
this.BetaVersion = betaVersion;
this.LastUpdated = DateTimeOffset.UtcNow;
}
}
}