예제 #1
0
 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");
 }
예제 #2
0
 public override ContentPublisher GetSource(IHaveSourcePaths game)
     => _publisher ?? (_publisher = CalculatePublisher(game));
예제 #3
0
 public override void OverrideSource(Publisher publisher)
     => _publisher = Publishers.First(x => x.Publisher == publisher);
예제 #4
0
 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");
 }