C# 클래스 WolframAPI.WAClient

Used to access Wolfram Alpha. Submits expressions, retrieves and parses responses.
파일 보기 프로젝트 열기: Schumix/Schumix2 1 사용 예제들

공개 메소드들

메소드 설명
GetResult ( string expression ) : WAResult

Gets the result of the specified expression.

The expression is returned as WAResult

so you can manually go through the pods of the response (to get ANY information you'd like)

It is encouraged to use this method instead of Solve

GetResultAsync ( string expression ) : void

Gets the result of the specified expression asynchronously.

The expression is returned as WAResult

so you can manually go through the pods of the response (to get ANY information you'd like)

It is encouraged to use this method instead of Solve

An event is raised upon completion.

Parse ( string response ) : WAResult

Parses the raw response.

Solve ( string expression ) : string

Solves the specified expression.

SolveAsync ( string expression ) : void

Solves the specified expression asynchronously. An event is raised on completion.

Submit ( string expression ) : string

Submits the specified expression and returns the raw result.

WAClient ( string appId ) : System

Initializes a new instance of the WAClient class.

비공개 메소드들

메소드 설명
HandleResultReceived ( IAsyncResult ar ) : void
HandleSolutionReceived ( IAsyncResult ar ) : void

메소드 상세

GetResult() 공개 메소드

Gets the result of the specified expression.

The expression is returned as WAResult

so you can manually go through the pods of the response (to get ANY information you'd like)

It is encouraged to use this method instead of Solve

Throws in case of any error. Throws if the specified argument is null.
public GetResult ( string expression ) : WAResult
expression string The expression to solve.
리턴 WAResult

GetResultAsync() 공개 메소드

Gets the result of the specified expression asynchronously.

The expression is returned as WAResult

so you can manually go through the pods of the response (to get ANY information you'd like)

It is encouraged to use this method instead of Solve

An event is raised upon completion.
Throws in case of any error. Throws if the specified argument is null.
public GetResultAsync ( string expression ) : void
expression string The expression to solve.
리턴 void

Parse() 공개 정적인 메소드

Parses the raw response.
Throws in case of any error. Throws if the specified argument is null.
public static Parse ( string response ) : WAResult
response string The response to parse
리턴 WAResult

Solve() 공개 메소드

Solves the specified expression.
Throws in case of any error. Throws if the specified argument is null.
public Solve ( string expression ) : string
expression string The expression.
리턴 string

SolveAsync() 공개 메소드

Solves the specified expression asynchronously. An event is raised on completion.
Throws in case of any error. Throws if the specified argument is null.
public SolveAsync ( string expression ) : void
expression string The expression.
리턴 void

Submit() 공개 메소드

Submits the specified expression and returns the raw result.
Throws in case of any error. Throws if the specified argument is null.
public Submit ( string expression ) : string
expression string The expression to post.
리턴 string

WAClient() 공개 메소드

Initializes a new instance of the WAClient class.
public WAClient ( string appId ) : System
appId string The application ID provided by Wolfram. You have to request one for each of your apps.
리턴 System