UNPKG

imob-sdk

Version:

SDK para acessar a API do Imóvel Periciado.

21 lines (18 loc) 540 B
const { ResponseStatus } = require("../enums/PostEnum"); class PostResponse { constructor(status = ResponseStatus.SUCCESS, data = null, message = '') { this.status = status; this.data = data; this.message = message; this.timestamp = new Date().toISOString(); } toJSON() { return { status: this.status, data: this.data, message: this.message, timestamp: this.timestamp }; } } module.exports = PostResponse;