| | 1 | | using System; |
| | 2 | | using System.Text; |
| | 3 | |
|
| | 4 | | namespace SharpHoundCommonLib.OutputTypes |
| | 5 | | { |
| | 6 | | public class LocalGroupAPIResult : APIResult |
| | 7 | | { |
| 13 | 8 | | public string ObjectIdentifier { get; set; } |
| 5 | 9 | | public string Name { get; set; } |
| 16 | 10 | | public TypedPrincipal[] Results { get; set; } = Array.Empty<TypedPrincipal>(); |
| 10 | 11 | | public NamedPrincipal[] LocalNames { get; set; } = Array.Empty<NamedPrincipal>(); |
| | 12 | |
|
| | 13 | | public override string ToString() |
| 0 | 14 | | { |
| 0 | 15 | | var builder = new StringBuilder(); |
| 0 | 16 | | builder.AppendLine($"Local group {Name} ({ObjectIdentifier})"); |
| 0 | 17 | | foreach (var x in Results) builder.AppendLine(x.ToString()); |
| | 18 | |
|
| 0 | 19 | | builder.AppendLine("Extra Names:"); |
| | 20 | |
|
| 0 | 21 | | foreach (var x in LocalNames) builder.AppendLine(x.ToString()); |
| 0 | 22 | | return builder.ToString(); |
| 0 | 23 | | } |
| | 24 | | } |
| | 25 | | } |