import { inject , injectable } from 'inversify' ; import * as apid from '../../../../../api' ; import IRepositoryModel from '../IRepositoryModel' ; import IDropLogApiModel from './IDropLogApiModel' ; @ injectable ( ) export default class DropLogApiModel implements IDropLogApiModel { private repository : IRepositoryModel ; constructor ( @ inject ( 'IRepositoryModel' ) repository ) { this . repository = repository ; } param dropLogFileId param maxsize return public async get ( dropLogFileId , maxsize = 512 ) { const result = await this . repository . getText ( `/dropLogs/${ dropLogFileId . toString ( 10 ) }` , { params : { maxsize : maxsize , } , } ) ; return result . data ; } }