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

DeleteCommentRequest

Extends:

Request → DeleteCommentRequest

Deletes a comment

Constructor Summary

Public Constructor
public

constructor(comment: Comment)

Deletes a comment

Method Summary

Public Methods
public

Returns if was deleted

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(comment: Comment) source

Deletes a comment

Override:

Request#constructor

Params:

NameTypeAttributeDescription
comment Comment

in place comment object

Public Methods

public format(): boolean source

Returns if was deleted

Override:

Request#format

Return:

boolean