Files
wapifuzz/parser/Models/UriAttribute.cs
2019-10-24 15:57:28 +02:00

27 lines
659 B
C#

using System;
namespace Models
{
public class UriAttribute
{
public string Name { get; }
public bool Required { get; }
public string ExampleValue { get; set; }
public string Type { get; set; }
public string Format { get; set; }
public string Location { get; set; }
public UriAttribute(string name, bool required)
{
Name = name;
Required = required;
}
public override string ToString()
{
return $"Name: {Name}{Environment.NewLine}Required: {Required}{Environment.NewLine}Example value: {ExampleValue}";
}
}
}