lib/Classes/Public/TMTeam.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
class TMTeam { #region Non-Static Properties [ValidateLength(1, 32)] [System.String]$Code [ValidateRange(0, 100)] [System.Int64]$Level [System.String]$Description [System.String]$Help #endregion Non-Static Properties #region Constructors TMTeam() {} TMTeam([System.String]$_code, [System.Int64]$_level, [System.String]$_description, [System.String]$_help) { $this.Code = $_code $this.Level = $_level $this.Description = $_description $this.Help = $_help } TMTeam([Object]$_object) { $this.Code = $_object.code $this.Level = $_object.level $this.Description = $_object.description $this.Help = $_object.help } #endregion Constructors } |