C# 클래스 BridgeStack.ApiEndpointBuilder

Tasked with building endpoint URI strings to the different methods exposed by the API.
상속: IApiEndpointBuilder
파일 보기 프로젝트 열기: bevacqua/BridgeStack

공개 메소드들

메소드 설명
ApiEndpointBuilder ( IStackClient client, ApiMethodEnum method, string appKey = null, string accessToken = null ) : System

Instances the ApiEndpointBuilder. appKey and accessToken aren't actually required parameters.

Params ( IQuery parameters ) : IApiEndpointBuilder

Assigns Query fluently.

ToString ( ) : string

Overrides the default ToString method call with a method call that actually builds the endpoint.

Vectorized ( ICollection vectors ) : IApiEndpointBuilder

Assigns Vectors fluently.

비공개 메소드들

메소드 설명
ApiEndpointBuilder ( ) : System

Instances the ApiEndpointBuilder without setting any of the required parameters.

Build ( ) : string

Builds and returns the target endpoint Uri.

BuildParameters ( ) : string

Builds query string parameters, optionally appends authentication parameters.

GetAuthenticationParameters ( ) : string

Appends the application key and access token to the query string parameters. Both of these parameters are optional to the ApiEndpointBuilder.

GetQueryStringParameters ( ) : string

Through reflection, lists the query string parameters, verifies they are conform to constraint attributes, and returns the deserialized version of them.

메소드 상세

ApiEndpointBuilder() 공개 메소드

Instances the ApiEndpointBuilder. appKey and accessToken aren't actually required parameters.
public ApiEndpointBuilder ( IStackClient client, ApiMethodEnum method, string appKey = null, string accessToken = null ) : System
client IStackClient The Stack Exchange client that owns this API endpoint builder.
method ApiMethodEnum The API method to target.
appKey string The application's key. Grants a higher request quota.
accessToken string The user's access token. Grants authentication and access to methods which require that the application be acting on behalf of a user in order to be invoked.
리턴 System

Params() 공개 메소드

Assigns Query fluently.
public Params ( IQuery parameters ) : IApiEndpointBuilder
parameters IQuery The value.
리턴 IApiEndpointBuilder

ToString() 공개 메소드

Overrides the default ToString method call with a method call that actually builds the endpoint.
public ToString ( ) : string
리턴 string

Vectorized() 공개 메소드

Assigns Vectors fluently.
public Vectorized ( ICollection vectors ) : IApiEndpointBuilder
vectors ICollection The value.
리턴 IApiEndpointBuilder