/// <summary> /// Gets information about the file whose hash is specified. /// </summary> /// <param name="hash">The hash of the file to get.</param> /// <returns>information about the file whose hash is specified</returns> /// <remarks>API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihash </remarks> public static SharpCrushMediaFile GetFileInfo(string hash) { string json = Get(BaseApiUrl + SingleFileApiUrl, hash); SharpCrushMediaFile file = JsonConvert.DeserializeObject <SharpCrushMediaFile>(json); return(file); }
protected bool Equals(SharpCrushMediaFile other) { return(Compression.Equals(other.Compression) && Equals(Files, other.Files) && string.Equals(Original, other.Original) && string.Equals(OriginalFileType, other.OriginalFileType) && StatusCode == other.StatusCode); }
protected bool Equals(SharpCrushMediaFile other) { return Compression.Equals(other.Compression) && Equals(Files, other.Files) && string.Equals(Original, other.Original) && string.Equals(OriginalFileType, other.OriginalFileType) && StatusCode == other.StatusCode; }