C# 클래스 DanbooruDownloader3.Helper

파일 보기 프로젝트 열기: Nandaka/DanbooruDownloader

공개 프로퍼티들

프로퍼티 타입 설명
ColorArtist Color
ColorBlacklisted Color
ColorCharacter Color
ColorCircle Color
ColorCopyright Color
ColorDeleted Color
ColorFaults Color
ColorGeneral Color
ColorUnknown Color

공개 메소드들

메소드 설명
CheckBlacklistedTag ( DanbooruPost post, DanbooruDownloader3.Entity.DanbooruPostDaoOption option ) : bool
DecodeEncodedNonAsciiCharacters ( string value ) : string

Decode JSON Encoded Unicode Character to C# string. http://stackoverflow.com/questions/1615559/converting-unicode-strings-to-escaped-ascii-string

DumpRawData ( string data, DanbooruProvider provider, string query ) : bool
DumpRawData ( string data, string filename ) : bool
FixUrl ( string url, bool useHttps = false, string hostname = null ) : string
FormatByteSize ( long size ) : string
GeneratePasswordHash ( string password, string salt ) : string

Generate hashed password+salt using SHA1

IsTagsXmlExist ( ) : bool
MakeFilename ( DanbooruDownloader3.Entity.DanbooruFilenameFormat format, DanbooruPost post ) : string

For constructing TAGS_FILENAME.

PadUserAgent ( string originalUserAgent ) : string

Pad user agent with current date/time.

ParseCookie ( string cookiesStr, string url ) : List
ParseTags ( string p, DanbooruProvider provider ) : List
RemoveAuthInfo ( string url ) : string

Replace password_hash param with '*'

RemoveControlCharacters ( string inString ) : string

Remove control char from unicode string http://stackoverflow.com/a/6799681

SanitizeFilename ( string input, bool allowPathSeparator = false ) : string

Sanitize the TAGS_FILENAME.

Shutdown ( ) : void
WriteTextFile ( string content, string filename = null ) : void
getFileExtensions ( string url ) : string
shortSpeedStr ( long speed ) : string

http://stackoverflow.com/a/14488941

비공개 메소드들

메소드 설명
FilterTags ( DanbooruPost post, List groupedTags, DanbooruTagType tagType, int tagLimit, string tagReplacement, string missingTagReplacement, bool isReplaceMode, bool isReplaceUnderScore ) : string

Return string from tag filtered by tag type. Replace the returned string with tagReplacement if tag count over tagLimit. Replace the returned string with missingTagReplacement if tag count is 0.

ReadTagsFromTextFile ( string filename ) : List
RemoveIgnoredTags ( DanbooruDownloader3.Entity.DanbooruFilenameFormat format, List groupedTags ) : List
WriteTagFile ( DanbooruPost post, string filename ) : void

메소드 상세

CheckBlacklistedTag() 공개 정적인 메소드

public static CheckBlacklistedTag ( DanbooruPost post, DanbooruDownloader3.Entity.DanbooruPostDaoOption option ) : bool
post DanbooruDownloader3.Entity.DanbooruPost
option DanbooruDownloader3.Entity.DanbooruPostDaoOption
리턴 bool

DecodeEncodedNonAsciiCharacters() 공개 정적인 메소드

Decode JSON Encoded Unicode Character to C# string. http://stackoverflow.com/questions/1615559/converting-unicode-strings-to-escaped-ascii-string
public static DecodeEncodedNonAsciiCharacters ( string value ) : string
value string
리턴 string

DumpRawData() 공개 정적인 메소드

public static DumpRawData ( string data, DanbooruProvider provider, string query ) : bool
data string
provider DanbooruDownloader3.Entity.DanbooruProvider
query string
리턴 bool

DumpRawData() 공개 정적인 메소드

public static DumpRawData ( string data, string filename ) : bool
data string
filename string
리턴 bool

FixUrl() 공개 정적인 메소드

public static FixUrl ( string url, bool useHttps = false, string hostname = null ) : string
url string
useHttps bool
hostname string
리턴 string

FormatByteSize() 공개 정적인 메소드

public static FormatByteSize ( long size ) : string
size long
리턴 string

GeneratePasswordHash() 공개 정적인 메소드

Generate hashed password+salt using SHA1
public static GeneratePasswordHash ( string password, string salt ) : string
password string
salt string
리턴 string

IsTagsXmlExist() 공개 정적인 메소드

public static IsTagsXmlExist ( ) : bool
리턴 bool

MakeFilename() 공개 정적인 메소드

For constructing TAGS_FILENAME.
public static MakeFilename ( DanbooruDownloader3.Entity.DanbooruFilenameFormat format, DanbooruPost post ) : string
format DanbooruDownloader3.Entity.DanbooruFilenameFormat
post DanbooruDownloader3.Entity.DanbooruPost
리턴 string

PadUserAgent() 공개 정적인 메소드

Pad user agent with current date/time.
public static PadUserAgent ( string originalUserAgent ) : string
originalUserAgent string
리턴 string

ParseCookie() 공개 정적인 메소드

public static ParseCookie ( string cookiesStr, string url ) : List
cookiesStr string
url string
리턴 List

ParseTags() 공개 정적인 메소드

public static ParseTags ( string p, DanbooruProvider provider ) : List
p string
provider DanbooruDownloader3.Entity.DanbooruProvider
리턴 List

RemoveAuthInfo() 공개 정적인 메소드

Replace password_hash param with '*'
public static RemoveAuthInfo ( string url ) : string
url string
리턴 string

RemoveControlCharacters() 공개 정적인 메소드

Remove control char from unicode string http://stackoverflow.com/a/6799681
public static RemoveControlCharacters ( string inString ) : string
inString string
리턴 string

SanitizeFilename() 공개 정적인 메소드

Sanitize the TAGS_FILENAME.
public static SanitizeFilename ( string input, bool allowPathSeparator = false ) : string
input string
allowPathSeparator bool
리턴 string

Shutdown() 공개 정적인 메소드

public static Shutdown ( ) : void
리턴 void

WriteTextFile() 공개 정적인 메소드

public static WriteTextFile ( string content, string filename = null ) : void
content string
filename string
리턴 void

getFileExtensions() 공개 정적인 메소드

public static getFileExtensions ( string url ) : string
url string
리턴 string

shortSpeedStr() 공개 정적인 메소드

http://stackoverflow.com/a/14488941
public static shortSpeedStr ( long speed ) : string
speed long
리턴 string

프로퍼티 상세

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

public static Color ColorArtist
리턴 Color

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

public static Color ColorBlacklisted
리턴 Color

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

public static Color ColorCharacter
리턴 Color

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

public static Color ColorCircle
리턴 Color

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

public static Color ColorCopyright
리턴 Color

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

public static Color ColorDeleted
리턴 Color

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

public static Color ColorFaults
리턴 Color

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

public static Color ColorGeneral
리턴 Color

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

public static Color ColorUnknown
리턴 Color