[FieldDefinition(1, Label = "Port", Type = FieldType.Textbox)]
[FieldDefinition(1, Label = "Port", Type = FieldType.Textbox)]
publicInt32Port{get;set;}
publicInt32Port{get;set;}
[FieldDefinition(2, Label = "Url Base", Type = FieldType.Textbox, Advanced = true, HelpText = "Adds a prefix to the transmission rpc url, see http://[host]:[port]/[urlBase]/transmission/rpc")]
[FieldDefinition(2, Label = "Url Base", Type = FieldType.Textbox, Advanced = true, HelpText = "Adds a prefix to the transmission rpc url, eg http://[host]:[port]/[urlBase]/rpc,defaultsto'/transmission/'")]
publicStringUrlBase{get;set;}
publicStringUrlBase{get;set;}
[FieldDefinition(3, Label = "Username", Type = FieldType.Textbox)]
[FieldDefinition(3, Label = "Username", Type = FieldType.Textbox)]
returnruleBuilder.SetValidator(newRegularExpressionValidator("^https?://[-a-z0-9.]+",RegexOptions.IgnoreCase)).WithMessage("must be valid URL that starts with http(s)://");
returnruleBuilder.SetValidator(newRegularExpressionValidator("^https?://[-a-z0-9.]+",RegexOptions.IgnoreCase)).WithMessage("must be valid URL that starts with http(s)://");
returnruleBuilder.SetValidator(newRegularExpressionValidator(@"^(?!\/?https?://[-a-z0-9.]+)",RegexOptions.IgnoreCase)).WithMessage("Must be a valid URL path (ie: '/sonarr')");
returnruleBuilder.SetValidator(newRegularExpressionValidator(@"^(?!\/?https?://[-a-z0-9.]+)",RegexOptions.IgnoreCase)).WithMessage("Must be a valid URL path (ie: '/sonarr')");