modules/FeedProcessor/AuditLog/Event/Score.psm1

using module '..\..\..\Enums.psm1'
using module '..\..\..\Helper\ObjectHelper.psm1'
using module '..\..\..\Helper\DateTimeHelper.psm1'

class Score {
    [string] $periodId
    [int] $playingMinute
    [string] $homeScore
    [string] $awayScore
    [string[]] $scores
    [string] $currentServer
    [PsCustomObject] $data

    Score([string] $periodId, [string] $homeScore, [string] $awayScore, [string[]] $scores, [string] $currentServer, [string] $playingMinute, [string] $data){
        $this.periodId = $periodId
        $this.playingMinute = $playingMinute
        $this.homeScore = $homeScore
        $this.awayScore = $awayScore
        $this.scores = $scores
        $this.currentServer = $currentServer
        $this.data = $data
    }

    [Score] Copy(){
        $score = [Score]::new()

        $score.periodId = $this.periodId
        $score.playingMinute = $this.playingMinute
        $score.homeScore = $this.homeScore
        $score.awayScore = $this.awayScore
        $score.scores = $this.scores
        $score.currentServer = $this.currentServer
        $score.data = $this.data

        return $score
    }
}