lib/Classes/Public/TMReference.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 |
class TMReference { [Object]$Id [String]$Name TMReference() {} TMReference([Int]$_id, [String]$_name) { $this.Id = $_id $this.Name = $_name } TMReference([String]$_name, [Int]$_id) { $this.Id = $_id $this.Name = $_name } TMReference([Object]$_object) { $this.Id = $_object.id $this.Name = $_object.name } TMReference([Int]$_id) { $this.Id = $_id $this.Name = "" } TMReference([String]$_name) { $this.Id = $null $this.Name = $_name } } |