private LibNeeo.IO.File GetRequestedFile(FileRequest fileRequest) { switch (fileRequest.FileCategory) { case FileCategory.Shared: return(SharedMedia.GetMedia(fileRequest.Name, fileRequest.MediaType)); case FileCategory.Group: return(NeeoGroup.GetGroupIcon(fileRequest.Name)); default: return(null); } }
private LibNeeo.IO.File GetRequestedFile(string fileID, FileCategory fileCategory, MediaType mediaType) { string filePath = null; switch (fileCategory) { case FileCategory.Shared: return(SharedMedia.GetMedia(fileID, mediaType)); break; case FileCategory.Group: return(NeeoGroup.GetGroupIcon(fileID)); break; default: return(null); } }