Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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;
 }