prep for statistics table
This commit is contained in:
23
Sources/App/Content/MatchHistory.swift
Normal file
23
Sources/App/Content/MatchHistory.swift
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// MatchHistory.swift
|
||||
// App
|
||||
//
|
||||
// Created by Michael Simard on 12/15/20.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import Fluent
|
||||
import Vapor
|
||||
|
||||
final class MatchHistory: Content {
|
||||
var total:Int
|
||||
var matches:[Match]
|
||||
var hasMorePages:Bool
|
||||
|
||||
init( total:Int, matches:[Match],hasMorePages:Bool) {
|
||||
self.total = total;
|
||||
self.matches = matches
|
||||
self.hasMorePages = hasMorePages
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user