private/class/class.review.ps1
# Class used for reviews. class Review { [string]$Id; [string]$Title; [string]$Category; [string]$Subcategory; [bool]$Review; $Data; [void]PrintResult() { # If review is true. if ($true -eq $this.Review) { # Get check mark. $emoji = Get-Emoji -Type Crossmark; } else { # Get cross mark. $emoji = Get-Emoji -Type Checkmark; } # Write to log. Write-CustomLog -Message ('{0} [{1}][{2}] {3}' -f $emoji, $this.Category, $this.Subcategory, $this.Title) ` -Level Information ` -NoDateTime -NoLogLevel ` -NoLogFile; } } |