C# 클래스 Claymore.SharpMediaWiki.Wiki

파일 보기 프로젝트 열기: Claymore/SharpMediaWiki 1 사용 예제들

공개 메소드들

메소드 설명
Append ( string title, string text, string summary ) : string
Append ( string title, string text, string summary, MinorFlags minor, bool botEdit ) : string
CookiesToArray ( ) : byte[]
Create ( string title, string text, string summary ) : string
Delete ( string title, string reason, string token ) : void
Enumerate ( ParameterCollection parameters, bool getAll ) : XmlDocument
GetNamespace ( int number ) : string
GetNamespaces ( ) : void
LoadCookies ( byte data ) : void
LoadNamespaces ( IEnumerable data ) : void
LoadText ( string title ) : string
Login ( ) : void
Login ( string username, string password ) : void

Logs into the MediaWiki as 'username' using 'password'.

http://www.mediawiki.org/wiki/API:Login

Logout ( ) : void

Logs out from the Wiki.

http://www.mediawiki.org/wiki/API:Logout

MakeRequest ( System.Action action, ParameterCollection parameters ) : XmlDocument
MakeRequest ( Uri uri, RequestMethod method ) : string
Move ( string fromTitle, string toTitle, string reason ) : void
Move ( string fromTitle, string toTitle, string reason, bool moveTalk, bool noRedirect ) : void
Move ( string fromTitle, string toTitle, string reason, string token, bool moveTalk, bool noRedirect ) : void
NamespacesToArray ( ) : byte[]
PageNamespace ( string title ) : int
PrepareQuery ( System.Action action, ParameterCollection parameters ) : string
Prepend ( string title, string text, string summary ) : string
Protect ( string title, List protections, string reason, string token, bool cascade ) : void
Query ( QueryBy queryBy, ParameterCollection parameters, IEnumerable ids ) : XmlDocument
Query ( QueryBy queryBy, ParameterCollection parameters, IEnumerable ids, int limit, bool all ) : XmlDocument
Query ( QueryBy queryBy, ParameterCollection parameters, string id ) : XmlDocument
Review ( string revisionId, string accuracy, string comment, string token ) : void
Save ( string title, string text, string summary ) : string
Save ( string title, string text, string summary, MinorFlags minor, bool botEdit ) : string
Save ( string title, string section, string text, string summary, MinorFlags minor, CreateFlags create, WatchFlags watch, SaveFlags mode, bool bot ) : string
Save ( string title, string section, string text, string summary, MinorFlags minor, CreateFlags create, WatchFlags watch, SaveFlags mode, bool bot, string basetimestamp, string starttimestamp, string token ) : string
SaveSection ( string title, string section, string text, string summary ) : string
Stabilize ( string title, string reason, string editToken ) : void
UnProtect ( string title, string reason, string token ) : void
Upload ( string filename, string comment, string text, WatchFlags watch, byte data, string contentType, bool ignoreWarnings ) : void
Upload ( string filename, string comment, string text, string token, WatchFlags watch, byte data, string contentType, bool ignoreWarnings ) : void
Upload ( string filename, string comment, string text, string token, WatchFlags watch, string url ) : void
Wiki ( string uri ) : System

Initializes a new instance of the Wiki class with the specified URI.

비공개 메소드들

메소드 설명
ComputeHashString ( string stringToHash ) : string
Enumerate ( ParameterCollection parameters, XmlDocument result, bool all ) : void
EscapeString ( string stringToEscape ) : string

Converts a string to its escaped representation.

FillDocumentWithQueryResults ( string query, XmlDocument document ) : Parameter
GetResponseStream ( HttpWebResponse response ) : Stream
MakeActionException ( System.Action action, string error ) : WikiException
MakeMultipartFormRequest ( ParameterCollection parameters, string filename, string contentType, byte data ) : XmlDocument
PrepareMultipartFormQuery ( ParameterCollection parameters, string filename, string contentType, byte data ) : byte[]
PrepareRequest ( ) : HttpWebRequest
PrepareRequest ( Uri uri, RequestMethod method ) : HttpWebRequest
PrepareRequest ( Uri uri, RequestMethod method, string contentType ) : HttpWebRequest

메소드 상세

Append() 공개 메소드

public Append ( string title, string text, string summary ) : string
title string
text string
summary string
리턴 string

Append() 공개 메소드

public Append ( string title, string text, string summary, MinorFlags minor, bool botEdit ) : string
title string
text string
summary string
minor MinorFlags
botEdit bool
리턴 string

CookiesToArray() 공개 메소드

public CookiesToArray ( ) : byte[]
리턴 byte[]

Create() 공개 메소드

public Create ( string title, string text, string summary ) : string
title string
text string
summary string
리턴 string

Delete() 공개 메소드

public Delete ( string title, string reason, string token ) : void
title string
reason string
token string
리턴 void

Enumerate() 공개 메소드

public Enumerate ( ParameterCollection parameters, bool getAll ) : XmlDocument
parameters ParameterCollection
getAll bool
리턴 System.Xml.XmlDocument

GetNamespace() 공개 메소드

public GetNamespace ( int number ) : string
number int
리턴 string

GetNamespaces() 공개 메소드

public GetNamespaces ( ) : void
리턴 void

LoadCookies() 공개 메소드

public LoadCookies ( byte data ) : void
data byte
리턴 void

LoadNamespaces() 공개 메소드

public LoadNamespaces ( IEnumerable data ) : void
data IEnumerable
리턴 void

LoadText() 공개 메소드

public LoadText ( string title ) : string
title string
리턴 string

Login() 공개 메소드

public Login ( ) : void
리턴 void

Login() 공개 메소드

Logs into the MediaWiki as 'username' using 'password'.
http://www.mediawiki.org/wiki/API:Login
Thrown when an error occurs.
public Login ( string username, string password ) : void
username string A username.
password string A password.
리턴 void

Logout() 공개 메소드

Logs out from the Wiki.
http://www.mediawiki.org/wiki/API:Logout
public Logout ( ) : void
리턴 void

MakeRequest() 공개 메소드

public MakeRequest ( System.Action action, ParameterCollection parameters ) : XmlDocument
action System.Action
parameters ParameterCollection
리턴 System.Xml.XmlDocument

MakeRequest() 공개 메소드

public MakeRequest ( Uri uri, RequestMethod method ) : string
uri System.Uri
method RequestMethod
리턴 string

Move() 공개 메소드

public Move ( string fromTitle, string toTitle, string reason ) : void
fromTitle string
toTitle string
reason string
리턴 void

Move() 공개 메소드

public Move ( string fromTitle, string toTitle, string reason, bool moveTalk, bool noRedirect ) : void
fromTitle string
toTitle string
reason string
moveTalk bool
noRedirect bool
리턴 void

Move() 공개 메소드

public Move ( string fromTitle, string toTitle, string reason, string token, bool moveTalk, bool noRedirect ) : void
fromTitle string
toTitle string
reason string
token string
moveTalk bool
noRedirect bool
리턴 void

NamespacesToArray() 공개 메소드

public NamespacesToArray ( ) : byte[]
리턴 byte[]

PageNamespace() 공개 메소드

public PageNamespace ( string title ) : int
title string
리턴 int

PrepareQuery() 공개 메소드

public PrepareQuery ( System.Action action, ParameterCollection parameters ) : string
action System.Action
parameters ParameterCollection
리턴 string

Prepend() 공개 메소드

public Prepend ( string title, string text, string summary ) : string
title string
text string
summary string
리턴 string

Protect() 공개 메소드

public Protect ( string title, List protections, string reason, string token, bool cascade ) : void
title string
protections List
reason string
token string
cascade bool
리턴 void

Query() 공개 메소드

public Query ( QueryBy queryBy, ParameterCollection parameters, IEnumerable ids ) : XmlDocument
queryBy QueryBy
parameters ParameterCollection
ids IEnumerable
리턴 System.Xml.XmlDocument

Query() 공개 메소드

public Query ( QueryBy queryBy, ParameterCollection parameters, IEnumerable ids, int limit, bool all ) : XmlDocument
queryBy QueryBy
parameters ParameterCollection
ids IEnumerable
limit int
all bool
리턴 System.Xml.XmlDocument

Query() 공개 메소드

public Query ( QueryBy queryBy, ParameterCollection parameters, string id ) : XmlDocument
queryBy QueryBy
parameters ParameterCollection
id string
리턴 System.Xml.XmlDocument

Review() 공개 메소드

public Review ( string revisionId, string accuracy, string comment, string token ) : void
revisionId string
accuracy string
comment string
token string
리턴 void

Save() 공개 메소드

public Save ( string title, string text, string summary ) : string
title string
text string
summary string
리턴 string

Save() 공개 메소드

public Save ( string title, string text, string summary, MinorFlags minor, bool botEdit ) : string
title string
text string
summary string
minor MinorFlags
botEdit bool
리턴 string

Save() 공개 메소드

public Save ( string title, string section, string text, string summary, MinorFlags minor, CreateFlags create, WatchFlags watch, SaveFlags mode, bool bot ) : string
title string
section string
text string
summary string
minor MinorFlags
create CreateFlags
watch WatchFlags
mode SaveFlags
bot bool
리턴 string

Save() 공개 메소드

public Save ( string title, string section, string text, string summary, MinorFlags minor, CreateFlags create, WatchFlags watch, SaveFlags mode, bool bot, string basetimestamp, string starttimestamp, string token ) : string
title string
section string
text string
summary string
minor MinorFlags
create CreateFlags
watch WatchFlags
mode SaveFlags
bot bool
basetimestamp string
starttimestamp string
token string
리턴 string

SaveSection() 공개 메소드

public SaveSection ( string title, string section, string text, string summary ) : string
title string
section string
text string
summary string
리턴 string

Stabilize() 공개 메소드

public Stabilize ( string title, string reason, string editToken ) : void
title string
reason string
editToken string
리턴 void

UnProtect() 공개 메소드

public UnProtect ( string title, string reason, string token ) : void
title string
reason string
token string
리턴 void

Upload() 공개 메소드

public Upload ( string filename, string comment, string text, WatchFlags watch, byte data, string contentType, bool ignoreWarnings ) : void
filename string
comment string
text string
watch WatchFlags
data byte
contentType string
ignoreWarnings bool
리턴 void

Upload() 공개 메소드

public Upload ( string filename, string comment, string text, string token, WatchFlags watch, byte data, string contentType, bool ignoreWarnings ) : void
filename string
comment string
text string
token string
watch WatchFlags
data byte
contentType string
ignoreWarnings bool
리턴 void

Upload() 공개 메소드

public Upload ( string filename, string comment, string text, string token, WatchFlags watch, string url ) : void
filename string
comment string
text string
token string
watch WatchFlags
url string
리턴 void

Wiki() 공개 메소드

Initializes a new instance of the Wiki class with the specified URI.
public Wiki ( string uri ) : System
uri string
리턴 System