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