using System;
namespace StardewModdingAPI
{
/// A semantic version with an optional release tag.
public interface ISemanticVersion : IComparable
{
/*********
** Accessors
*********/
/// The major version incremented for major API changes.
int MajorVersion { get; }
/// The minor version incremented for backwards-compatible changes.
int MinorVersion { get; }
/// The patch version for backwards-compatible bug fixes.
int PatchVersion { get; }
/// An optional build tag.
string Build { get; }
/*********
** Accessors
*********/
/// Get whether this version is older than the specified version.
/// The version to compare with this instance.
bool IsOlderThan(ISemanticVersion other);
/// Get whether this version is newer than the specified version.
/// The version to compare with this instance.
bool IsNewerThan(ISemanticVersion other);
/// Get a string representation of the version.
string ToString();
}
}