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

FollowedUser

Extends:

Request → FollowedUser

Gets both followed and following users.

Constructor Summary

Public Constructor
public

constructor(user: User, followedType: FollowedType)

Requires authorization

Member Summary

Public Members
public

The user target of the request

Method Summary

Public Methods
public

format()

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(user: User, followedType: FollowedType) source

Requires authorization

Override:

Request#constructor

Params:

NameTypeAttributeDescription
user User

The user to lookup

followedType FollowedType

The type of following

Public Members

public user: User source

The user target of the request

Public Methods

public format() source

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

Override:

Request#format