C# Class Phamhilator.Yam.Core.PostFetcher

ファイルを表示 Open project: ArcticEcho/Phamhilator

Public Methods

Method Description
GetAnswer ( string postUrl ) : Answer
GetLatestAnswer ( CQ questionDom, string questionUrl ) : Answer
GetQuestion ( CQ dom, string postUrl ) : Question
GetQuestion ( MessageEventArgs message, CQ &dom ) : Question
IsAnswerAccepted ( CQ dom ) : bool
IsPostDeleted ( string url, CQ &dom ) : bool
IsQuestionClosed ( CQ dom, string url, bool includeDupe = true ) : bool
ParsePostLink ( string postUrl, string &host, uint &id ) : void

Private Methods

Method Description
GetAnswer ( CQ dom, string host, string id ) : Answer
GetUserNetworkID ( string authorProfileLink ) : int
ParseRep ( string rep ) : int
StripTags ( string source ) : string
TrimUrl ( string url ) : string

Method Details

GetAnswer() public static method

public static GetAnswer ( string postUrl ) : Answer
postUrl string
return Answer

GetLatestAnswer() public static method

public static GetLatestAnswer ( CQ questionDom, string questionUrl ) : Answer
questionDom CsQuery.CQ
questionUrl string
return Answer

GetQuestion() public static method

public static GetQuestion ( CQ dom, string postUrl ) : Question
dom CsQuery.CQ
postUrl string
return Question

GetQuestion() public static method

public static GetQuestion ( MessageEventArgs message, CQ &dom ) : Question
message WebSocketSharp.MessageEventArgs
dom CsQuery.CQ
return Question

IsAnswerAccepted() public static method

public static IsAnswerAccepted ( CQ dom ) : bool
dom CsQuery.CQ
return bool

IsPostDeleted() public static method

public static IsPostDeleted ( string url, CQ &dom ) : bool
url string
dom CsQuery.CQ
return bool

IsQuestionClosed() public static method

public static IsQuestionClosed ( CQ dom, string url, bool includeDupe = true ) : bool
dom CsQuery.CQ
url string
includeDupe bool
return bool

ParsePostLink() public static method

public static ParsePostLink ( string postUrl, string &host, uint &id ) : void
postUrl string
host string
id uint
return void