Home Manual Reference Source Test Repository
public class | source

Animes

Class for getting anime data from the MongoDB.

Test:

Constructor Summary

Public Constructor
public

Create an animes object.

Method Summary

Public Methods
public

getAnime(req: Request, res: Response, next: Function): Anime

Get info from one anime.

public

getAnimes(req: Request, res: Response, next: Function): String[]

Get all the pages.

public

getPage(req: Request, res: Response, next: Function): Anime[]

Get one page.

public

getRandomAnime(req: Request, res: Response, next: Function): Anime

Get a random anime.

Public Constructors

public constructor source

Create an animes object.

Public Methods

public getAnime(req: Request, res: Response, next: Function): Anime source

Get info from one anime.

Params:

NameTypeAttributeDescription
req Request

The express request object.

res Response

The express response object.

next Function

The next function for Express.

Return:

Anime

The details of a single anime.

Test:

public getAnimes(req: Request, res: Response, next: Function): String[] source

Get all the pages.

Params:

NameTypeAttributeDescription
req Request

The express request object.

res Response

The express response object.

next Function

The next function for Express.

Return:

String[]

A list of pages which are available.

Test:

public getPage(req: Request, res: Response, next: Function): Anime[] source

Get one page.

Params:

NameTypeAttributeDescription
req Request

The express request object.

res Response

The express response object.

next Function

The next function for Express.

Return:

Anime[]

The contents of one page.

Test:

public getRandomAnime(req: Request, res: Response, next: Function): Anime source

Get a random anime.

Params:

NameTypeAttributeDescription
req Request

The express request object.

res Response

The express response object.

next Function

The next function for Express.

Return:

Anime

A random movie.

Test: