added new history paging functionality

This commit is contained in:
Michael Simard
2020-12-16 05:54:18 -06:00
parent a674a62dce
commit a7969813ae
2 changed files with 80 additions and 14 deletions

View 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
}
}