public override Uri GetPublisherUrl(ContentPublisher c) { switch (c.Publisher) { case Publisher.NexusMods: return(new Uri(GetPublisherUrl(c.Publisher), $"{c.PublisherId}/?")); } throw new NotSupportedException($"The publisher is not currently supported {c.Publisher} for this game"); }
public override ContentPublisher GetSource(IHaveSourcePaths game) => _publisher ?? (_publisher = CalculatePublisher(game));
public override void OverrideSource(Publisher publisher) => _publisher = Publishers.First(x => x.Publisher == publisher);
public override Uri GetPublisherUrl(ContentPublisher c) { switch (c.Publisher) { case Publisher.Chucklefish: return new Uri(GetPublisherUrl(Publisher.Chucklefish), $"{c.PublisherId}"); } throw new NotSupportedException($"The publisher is not currently supported {c.Publisher} for this game"); }