C# 클래스 Ketarin.ExternalServices

Provides a couple of functions for external services like FileHippo.
파일 보기 프로젝트 열기: GitSullied/Ketarin 1 사용 예제들

공개 메소드들

메소드 설명
FileHippoAppName ( string fileId ) : string

Returns the application name for a given FileHippo ID.

FileHippoDownloadUrl ( string fileId, bool avoidBeta ) : string

Determines the download URL for a FileHippo application with the given ID.

FileHippoMd5 ( string fileId, bool avoidBeta ) : string

Determines the MD5 hash of a given application.

FileHippoVersion ( string fileId, bool avoidBeta ) : string

Determines the version of a given application on FileHippo.

GetFileHippoBaseDownloadUrl ( string fileId ) : string

Builds the base download URL for a given file ID.

GetFileHippoCleanFileId ( string fileId ) : string

Returns the FileHipp ID without the language identifier.

GetFileHippoIdFromUrl ( string url ) : string

If the given URL contains a FileHippo ID, it is returned.

비공개 메소드들

메소드 설명
FileHippoGetAllVersions ( string pageContent, string fileId ) : string[]

Returns a list links to all versions of an application on FileHippo.

FileHippoIsBeta ( string pageContent ) : bool

Determines whether or not a page refers to a beta version.

GetNonBetaPageContent ( string overviewPage, string fileId ) : string

Determines the content of the most recent version of an application's overview page on FileHippo, which is not a beta version.

메소드 상세

FileHippoAppName() 공개 정적인 메소드

Returns the application name for a given FileHippo ID.
public static FileHippoAppName ( string fileId ) : string
fileId string
리턴 string

FileHippoDownloadUrl() 공개 정적인 메소드

Determines the download URL for a FileHippo application with the given ID.
public static FileHippoDownloadUrl ( string fileId, bool avoidBeta ) : string
fileId string
avoidBeta bool Whether or not to avoid beta versions. If only beta versions are available, they will be downloaded anyways.
리턴 string

FileHippoMd5() 공개 정적인 메소드

Determines the MD5 hash of a given application.
public static FileHippoMd5 ( string fileId, bool avoidBeta ) : string
fileId string
avoidBeta bool
리턴 string

FileHippoVersion() 공개 정적인 메소드

Determines the version of a given application on FileHippo.
public static FileHippoVersion ( string fileId, bool avoidBeta ) : string
fileId string
avoidBeta bool
리턴 string

GetFileHippoBaseDownloadUrl() 공개 정적인 메소드

Builds the base download URL for a given file ID.
public static GetFileHippoBaseDownloadUrl ( string fileId ) : string
fileId string
리턴 string

GetFileHippoCleanFileId() 공개 정적인 메소드

Returns the FileHipp ID without the language identifier.
public static GetFileHippoCleanFileId ( string fileId ) : string
fileId string
리턴 string

GetFileHippoIdFromUrl() 공개 정적인 메소드

If the given URL contains a FileHippo ID, it is returned.
public static GetFileHippoIdFromUrl ( string url ) : string
url string
리턴 string