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