Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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());
 }