using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IPA
{
///
/// A class to provide information about a mod on ModSaber.ML
///
public class ModsaberModInfo
{
///
/// The name the mod uses on ModSaber as an identifier.
///
public string InternalName
{
get => _InternalName;
set
{
if (_InternalName == null)
{
_InternalName = value;
}
else
{
throw new Exception("Cannot change name one it has been set!");
}
}
}
private string _InternalName = null;
///
/// The version of the currently installed mod. Used to compare to the version on ModSaber. Should be a valid SemVer version.
///
public string CurrentVersion
{
get => _CurrentVersion;
set
{
if (_CurrentVersion == null)
{
_CurrentVersion = value;
}
else
{
throw new Exception("Cannot change version one it has been set!");
}
}
}
private string _CurrentVersion = null;
}
}