예제 #1
0
 /// <summary>Construct an instance.</summary>
 /// <param name="site">The mod site containing the mod.</param>
 /// <param name="id">The mod ID within the site.</param>
 /// <param name="subkey">If specified, a substring in download names/descriptions to match.</param>
 public UpdateKey(ModSiteKey site, string id, string subkey)
     : this(UpdateKey.GetString(site, id, subkey), site, id, subkey)
 {
 }
예제 #2
0
 /// <summary>Construct an instance.</summary>
 /// <param name="site">The mod site containing the mod.</param>
 /// <param name="id">The mod's unique ID within the site.</param>
 public GenericModPage(ModSiteKey site, string id)
 {
     this.Site = site;
     this.Id   = id;
 }
예제 #3
0
 /// <summary>Get the string representation of an update key.</summary>
 /// <param name="site">The mod site containing the mod.</param>
 /// <param name="id">The mod ID within the repository.</param>
 /// <param name="subkey">If specified, a substring in download names/descriptions to match.</param>
 public static string GetString(ModSiteKey site, string id, string subkey = null)
 {
     return($"{site}:{id}{subkey}".Trim());
 }