Example #1
0
 public string RestoreLink(ResolveContext _, AudioResource resource) => resource.ResourceId;
Example #2
0
 public R <Uri, LocalStr> GetThumbnailUrl(ResolveContext ctx, PlayResource playResource)
 {
     throw new NotImplementedException();
 }
Example #3
0
 public MatchCertainty MatchPlaylist(ResolveContext _, string uri) =>
 Directory.Exists(uri) ? MatchCertainty.Always :
 File.Exists(uri) ? MatchCertainty.Always
                 : MatchCertainty.OnlyIfLast;
Example #4
0
 public R <PlayResource, LocalStr> GetResource(ResolveContext ctx, string uri)
 {
     return(GetResourceById(ctx, new AudioResource(uri, null, ResolverFor)));
 }
Example #5
0
 public MatchCertainty MatchResource(ResolveContext _, string uri) =>
 File.Exists(uri)
                 ? MatchCertainty.Always
                 : MatchCertainty.OnlyIfLast;