Home Reference Source
import RemoteEnum from '~/models/Request/RemoteEnum.js'
public class | source

RemoteEnum

Extends:

Request → RemoteEnum

Loads a remote enum given a url

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

format()

public

async run()

Inherited Summary

From class Request
protected
public

cancel()

Cancels the request.

public

format(data: Object): Object

Formats the request object and returns an object of Request<T>'s T.

public

async run(o: Object): Promise

Performs the request

Public Constructors

public constructor(endpoint: EnumEndpoint) source

Creates request given path. Provide options as object

Override:

Request#constructor

Params:

NameTypeAttributeDescription
endpoint EnumEndpoint

The target endpoint

Public Methods

public format() source

Formats the request object and returns an object of Request<T>'s T.

Override:

Request#format

public async run() source

Performs the request

Override:

Request#run