ILocalPlayer.cs 1.2 KB

1234567891011121314151617181920212223242526
  1. 
  2. namespace MediaBrowser.Model.Dlna
  3. {
  4. public interface ILocalPlayer
  5. {
  6. /// <summary>
  7. /// Determines whether this instance [can access file] the specified path.
  8. /// </summary>
  9. /// <param name="path">The path.</param>
  10. /// <returns><c>true</c> if this instance [can access file] the specified path; otherwise, <c>false</c>.</returns>
  11. bool CanAccessFile(string path);
  12. /// <summary>
  13. /// Determines whether this instance [can access directory] the specified path.
  14. /// </summary>
  15. /// <param name="path">The path.</param>
  16. /// <returns><c>true</c> if this instance [can access directory] the specified path; otherwise, <c>false</c>.</returns>
  17. bool CanAccessDirectory(string path);
  18. /// <summary>
  19. /// Determines whether this instance [can access URL] the specified URL.
  20. /// </summary>
  21. /// <param name="url">The URL.</param>
  22. /// <param name="requiresCustomRequestHeaders">if set to <c>true</c> [requires custom request headers].</param>
  23. /// <returns><c>true</c> if this instance [can access URL] the specified URL; otherwise, <c>false</c>.</returns>
  24. bool CanAccessUrl(string url, bool requiresCustomRequestHeaders);
  25. }
  26. }