LeagueStats/server-v2/app/Parsers/MatchParser.ts

19 lines
453 B
TypeScript
Raw Normal View History

2021-09-12 18:18:19 +00:00
import { MatchDto } from 'App/Services/Jax/src/Endpoints/MatchEndpoint'
class MatchParser {
public async parseOneMatch(match: MatchDto) {
// TODO: parse + store in database
// From the MatchDto, we need these Models in the DB:
// - 1x Match
// - 10x MatchPlayer
// - 2x MatchTeam
}
public async parse(matches: MatchDto[]) {
// TODO
// Loop on all matches and call .parse on it
}
}
export default new MatchParser()