import { IApiRequest } from "../../../models" ; import { Requests } from "../../Requests" ; import { IUser } from "../../../entities/user" ; export class AllUsersCallBack { constructor ( public users , public totalItems ) { } } export class AllUsers implements IApiRequest < AllUsersCallBack > { public static getURL : string = Requests . ALLUSERS ; public URL : string = AllUsers . getURL ; constructor ( rowsPerPage , page ) { this . URL = this . URL . replace ( /:page/ , page . toString ( ) ) ; this . URL += "?rowsPerPage=" + rowsPerPage ; } }