C# Class Bloom.Api.PretendRequestInfo

Inheritance: IRequestInfo
Datei anzeigen Open project: BloomBooks/BloomDesktop Class Usage Examples

Public Properties

Property Type Description
ReplyContents string
ReplyImagePath string
StatusCode long
StatusDescription string

Public Methods

Method 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 method

public GetPostDataWhenFormEncoded ( ) : NameValueCollection
return System.Collections.Specialized.NameValueCollection

GetPostJson() public method

public GetPostJson ( ) : string
return string

GetPostString() public method

public GetPostString ( ) : string
return string

GetQueryParameters() public method

public GetQueryParameters ( ) : NameValueCollection
return System.Collections.Specialized.NameValueCollection

PretendRequestInfo() public method

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
return System.Collections.Specialized

ReplyWithFileContent() public method

public ReplyWithFileContent ( string path ) : void
path string
return void

ReplyWithImage() public method

public ReplyWithImage ( string path ) : void
path string
return void

SucceededDoNotNavigate() public method

public SucceededDoNotNavigate ( ) : void
return void

WriteCompleteOutput() public method

public WriteCompleteOutput ( string s ) : void
s string
return void

WriteError() public method

public WriteError ( int errorCode ) : void
errorCode int
return void

WriteError() public method

public WriteError ( int errorCode, string errorDescription ) : void
errorCode int
errorDescription string
return void

Property Details

ReplyContents public_oe property

public string ReplyContents
return string

ReplyImagePath public_oe property

public string ReplyImagePath
return string

StatusCode public_oe property

public long StatusCode
return long

StatusDescription public_oe property

public string StatusDescription
return string