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