| | 1 | | using SharpHoundCommonLib.Enums; |
| | 2 | |
|
| | 3 | | namespace SharpHoundCommonLib |
| | 4 | | { |
| | 5 | | public class ResolvedSearchResult |
| | 6 | | { |
| | 7 | | private string _displayName; |
| | 8 | | private string _objectID; |
| | 9 | |
|
| | 10 | | public string DisplayName |
| | 11 | | { |
| 12 | 12 | | get => _displayName?.ToUpper(); |
| 12 | 13 | | set => _displayName = value; |
| | 14 | | } |
| | 15 | |
|
| 12 | 16 | | public Label ObjectType { get; set; } |
| | 17 | |
|
| | 18 | | public string ObjectId |
| | 19 | | { |
| 7 | 20 | | get => _objectID; |
| 7 | 21 | | set => _objectID = value.ToUpper(); |
| | 22 | | } |
| | 23 | |
|
| 8 | 24 | | public bool Deleted { get; set; } |
| | 25 | |
|
| 12 | 26 | | public string Domain { get; set; } |
| 12 | 27 | | public string DomainSid { get; set; } |
| 10 | 28 | | public bool IsDomainController { get; set; } |
| | 29 | |
|
| | 30 | | public override string ToString() |
| 0 | 31 | | { |
| 0 | 32 | | return $"{DisplayName} - {ObjectType}"; |
| 0 | 33 | | } |
| | 34 | | } |
| | 35 | | } |