C# 클래스 SharpCrush4.SharpCrush

MediaCrush API Wrapper
파일 보기 프로젝트 열기: headdetect/SharpCrush

공개 프로퍼티들

프로퍼티 타입 설명
BaseApiUrl string

공개 메소드들

메소드 설명
DeleteFile ( string hash ) : DeleteFileResult

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

GetFileInfo ( string hash ) : SharpCrushMediaFile

Gets information about the file from the specified hash.

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

GetFileInfos ( ) : SharpCrushMediaFile>.Dictionary

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

UploadFile ( string 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

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

비공개 메소드들

메소드 설명
Get ( string url ) : string
Post ( string url, string post ) : string
PostValues ( string url, string>.Dictionary post ) : string
Upload ( string url, string filePath ) : string

메소드 상세

DeleteFile() 공개 정적인 메소드

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
리턴 DeleteFileResult

GetFileExists() 공개 정적인 메소드

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
리턴 bool

GetFileInfo() 공개 정적인 메소드

Gets information about the file from the specified hash.
API Doc Url: https://github.com/MediaCrush/MediaCrush/blob/master/docs/api.md#apihash
public static GetFileInfo ( string hash ) : SharpCrushMediaFile
hash string The hash of the file to get.
리턴 SharpCrushMediaFile

GetFileInfos() 공개 정적인 메소드

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 ( ) : SharpCrushMediaFile>.Dictionary
리턴 SharpCrushMediaFile>.Dictionary

GetFileStatus() 공개 정적인 메소드

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.
리턴 GetFileStatusResult

UploadFile() 공개 정적인 메소드

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 ( string file ) : FileUploadResult
file string The file to upload
리턴 SharpCrush4.Results.FileUploadResult

UploadUrl() 공개 정적인 메소드

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
리턴 SharpCrush4.Results.UrlUploadResult

프로퍼티 상세

BaseApiUrl 공개적으로 정적으로 프로퍼티

The base url of the mediacrush server. Because the media crush platform is opensource, A different server/url can be used. It just needs to follow the same type of api.
public static string BaseApiUrl
리턴 string