namespace StardewModdingAPI.Web.Framework.ConfigModels
{
/// The config settings for mod compatibility list.
internal class MongoDbConfig
{
/*********
** Accessors
*********/
/// The MongoDB connection string.
public string ConnectionString { get; set; }
/// The database name.
public string Database { get; set; }
/*********
** Public method
*********/
/// Get whether a MongoDB instance is configured.
public bool IsConfigured()
{
return !string.IsNullOrWhiteSpace(this.ConnectionString);
}
}
}