restore toolkit method used by external tools
This commit is contained in:
parent
b5c88d87d2
commit
2e9a26c439
|
@ -1,3 +1,4 @@
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Converters;
|
using Newtonsoft.Json.Converters;
|
||||||
|
@ -151,5 +152,16 @@ namespace StardewModdingAPI.Toolkit.Framework.Clients.WebApi
|
||||||
this.Name ??= db.DisplayName;
|
this.Name ??= db.DisplayName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>Get update keys based on the metadata.</summary>
|
||||||
|
public IEnumerable<string> GetUpdateKeys()
|
||||||
|
{
|
||||||
|
if (this.NexusID.HasValue)
|
||||||
|
yield return $"Nexus:{this.NexusID}";
|
||||||
|
if (this.ChucklefishID.HasValue)
|
||||||
|
yield return $"Chucklefish:{this.ChucklefishID}";
|
||||||
|
if (this.GitHubRepo != null)
|
||||||
|
yield return $"GitHub:{this.GitHubRepo}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue