mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
18 lines
453 B
TypeScript
18 lines
453 B
TypeScript
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()
|