import { IDtoConverter } from "../interfaces" ; import { ITrendDto } from "../dtos" ; import { ITrend } from "../models" ; export class TrendDtoConverter implements IDtoConverter < ITrendDto , ITrend > { public convertFromDto ( dto ) { const result = { exchange : dto . exchange , baseTradingSymbol : dto . baseTradingSymbol , quoteTradingSymbol : dto . quoteTradingSymbol , trend : dto . trend , date : dto . date } ; return result ; } public convertToDto ( model ) { const result = { exchange : model . exchange , baseTradingSymbol : model . baseTradingSymbol , quoteTradingSymbol : model . quoteTradingSymbol , trend : model . trend , date : model . date } ; return result ; } }