C# Class SharpCrush45.SharpCrush

MediaCrush API Wrapper
Afficher le fichier Open project: headdetect/SharpCrush

Méthodes publiques

Méthode Description
DeleteFile ( string hash ) : DeleteFileResult

Attempts to delete the specified files

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihashexists

DeleteFileAsync ( string hash ) : Task

Attempts to delete the specified files

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihashexists

GetFileExists ( string hash ) : bool

Returns true if the specified file exists; false otherwise

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihashexists

GetFileExistsAsync ( string hash ) : Task

Returns true if the specified file exists; false otherwise

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihashexists

GetFileInfo ( string hash ) : object

Gets information about the file whose hash is specified.

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihash

GetFileInfoAsync ( string hash ) : Task

Gets information about the file whose hash is specified.

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihash

GetFileInfos ( ) : object[]

Gets information about the files whose hashes are specified.

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apiinfolisthash

GetFileInfosAsync ( ) : Task

Gets information about the files whose hashes are specified.

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apiinfolisthash

GetFileStatus ( string hash ) : GetFileStatusResult

Attempts to get the status of the specified file

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihashstatus

GetFileStatusAsync ( string hash ) : Task

Attempts to get the status of the specified file

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihashstatus

UploadFile ( object file ) : FileUploadResult

Upload the specified file to the MediaCrush (or other) server.

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apiuploadfile

UploadFileAsync ( object file ) : Task

Upload the specified file to the MediaCrush (or other) server.

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apiuploadfile

UploadUrl ( string url ) : UrlUploadResult

Upload the specified file from url to the MediaCrush (or other) server.

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apiuploadurl

UploadUrlAsync ( string url ) : Task

Upload the specified file from url to the MediaCrush (or other) server.

API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apiuploadurl

Method Details

DeleteFile() public static méthode

Attempts to delete the specified files
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihashexists
public static DeleteFile ( string hash ) : DeleteFileResult
hash string The hash of the file to delete
Résultat DeleteFileResult

DeleteFileAsync() public static méthode

Attempts to delete the specified files
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihashexists
public static DeleteFileAsync ( string hash ) : Task
hash string The hash of the file to delete
Résultat Task

GetFileExists() public static méthode

Returns true if the specified file exists; false otherwise
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihashexists
public static GetFileExists ( string hash ) : bool
hash string The file hash to check
Résultat bool

GetFileExistsAsync() public static méthode

Returns true if the specified file exists; false otherwise
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihashexists
public static GetFileExistsAsync ( string hash ) : Task
hash string The file hash to check
Résultat Task

GetFileInfo() public static méthode

Gets information about the file whose hash is specified.
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihash
public static GetFileInfo ( string hash ) : object
hash string The hash of the file to get.
Résultat object

GetFileInfoAsync() public static méthode

Gets information about the file whose hash is specified.
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihash
public static GetFileInfoAsync ( string hash ) : Task
hash string The hash of the file to get.
Résultat Task

GetFileInfos() public static méthode

Gets information about the files whose hashes are specified.
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apiinfolisthash
public static GetFileInfos ( ) : object[]
Résultat object[]

GetFileInfosAsync() public static méthode

Gets information about the files whose hashes are specified.
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apiinfolisthash
public static GetFileInfosAsync ( ) : Task
Résultat Task

GetFileStatus() public static méthode

Attempts to get the status of the specified file
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihashstatus
public static GetFileStatus ( string hash ) : GetFileStatusResult
hash string The hash of the file to get the status of.
Résultat GetFileStatusResult

GetFileStatusAsync() public static méthode

Attempts to get the status of the specified file
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihashstatus
public static GetFileStatusAsync ( string hash ) : Task
hash string The hash of the file to get the status of.
Résultat Task

UploadFile() public static méthode

Upload the specified file to the MediaCrush (or other) server.
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apiuploadfile
public static UploadFile ( object file ) : FileUploadResult
file object The file to upload
Résultat FileUploadResult

UploadFileAsync() public static méthode

Upload the specified file to the MediaCrush (or other) server.
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apiuploadfile
public static UploadFileAsync ( object file ) : Task
file object The file to upload
Résultat Task

UploadUrl() public static méthode

Upload the specified file from url to the MediaCrush (or other) server.
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apiuploadurl
public static UploadUrl ( string url ) : UrlUploadResult
url string The url to upload
Résultat UrlUploadResult

UploadUrlAsync() public static méthode

Upload the specified file from url to the MediaCrush (or other) server.
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apiuploadurl
public static UploadUrlAsync ( string url ) : Task
url string The url to upload
Résultat Task