C# Class Bloom.Api.PretendRequestInfo

Inheritance: IRequestInfo
Afficher le fichier Open project: BloomBooks/BloomDesktop Class Usage Examples

Méthodes publiques

Свойство Type Description
ReplyContents string
ReplyImagePath string
StatusCode long
StatusDescription string

Méthodes publiques

Méthode Description
GetPostDataWhenFormEncoded ( ) : NameValueCollection
GetPostJson ( ) : string
GetPostString ( ) : string
GetQueryParameters ( ) : NameValueCollection
PretendRequestInfo ( string url, HttpMethods httpMethod = HttpMethods.Get, bool forPrinting = false, bool forSrcAttr = false ) : System.Collections.Specialized
ReplyWithFileContent ( string path ) : void
ReplyWithImage ( string path ) : void
SucceededDoNotNavigate ( ) : void
WriteCompleteOutput ( string s ) : void
WriteError ( int errorCode ) : void
WriteError ( int errorCode, string errorDescription ) : void

Method Details

GetPostDataWhenFormEncoded() public méthode

public GetPostDataWhenFormEncoded ( ) : NameValueCollection
Résultat System.Collections.Specialized.NameValueCollection

GetPostJson() public méthode

public GetPostJson ( ) : string
Résultat string

GetPostString() public méthode

public GetPostString ( ) : string
Résultat string

GetQueryParameters() public méthode

public GetQueryParameters ( ) : NameValueCollection
Résultat System.Collections.Specialized.NameValueCollection

PretendRequestInfo() public méthode

public PretendRequestInfo ( string url, HttpMethods httpMethod = HttpMethods.Get, bool forPrinting = false, bool forSrcAttr = false ) : System.Collections.Specialized
url string
httpMethod HttpMethods
forPrinting bool
forSrcAttr bool
Résultat System.Collections.Specialized

ReplyWithFileContent() public méthode

public ReplyWithFileContent ( string path ) : void
path string
Résultat void

ReplyWithImage() public méthode

public ReplyWithImage ( string path ) : void
path string
Résultat void

SucceededDoNotNavigate() public méthode

public SucceededDoNotNavigate ( ) : void
Résultat void

WriteCompleteOutput() public méthode

public WriteCompleteOutput ( string s ) : void
s string
Résultat void

WriteError() public méthode

public WriteError ( int errorCode ) : void
errorCode int
Résultat void

WriteError() public méthode

public WriteError ( int errorCode, string errorDescription ) : void
errorCode int
errorDescription string
Résultat void

Property Details

ReplyContents public_oe property

public string ReplyContents
Résultat string

ReplyImagePath public_oe property

public string ReplyImagePath
Résultat string

StatusCode public_oe property

public long StatusCode
Résultat long

StatusDescription public_oe property

public string StatusDescription
Résultat string