Table of Contents

Class UploadBuilder

Namespace
TypedRest.CodeGeneration.TypeScript.Endpoints.Raw
Assembly
TypedRest.CodeGeneration.TypeScript.dll

Builds TypeScript code for UploadEndpoints.

public class UploadBuilder : BuilderBase<UploadEndpoint>, IBuilder<UploadEndpoint>, IBuilder
Inheritance
object
UploadBuilder
Implements
Inherited Members

Methods

GetBase(string, UploadEndpoint, IEndpointGenerator)

Returns the TypedRest type the endpoint derives from, any additional types generated along the way, and any constructor arguments beyond the referrer and the relative URI.

protected override (TsIdentifier baseType, IEnumerable<ITsType> types, IEnumerable<TsExpression> extraArguments) GetBase(string key, UploadEndpoint endpoint, IEndpointGenerator generator)

Parameters

key string
endpoint UploadEndpoint
generator IEndpointGenerator

Returns

(TsIdentifier baseType, IEnumerable<ITsType> types, IEnumerable<TsExpression> extraArguments)

GetBaseType(UploadEndpoint, IEndpointGenerator)

Returns the TypedRest type the endpoint derives from.

protected override TsIdentifier GetBaseType(UploadEndpoint endpoint, IEndpointGenerator generator)

Parameters

endpoint UploadEndpoint
generator IEndpointGenerator

Returns

TsIdentifier