aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models/Validation/TimelineNameValidator.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2020-02-03 18:38:14 +0800
committerGitHub <noreply@github.com>2020-02-03 18:38:14 +0800
commit97010e98a11ad6fd6c075cee414c30174001fe5d (patch)
tree28ef20f9dfe742008bb934f09b99d1d4719cabaa /Timeline/Models/Validation/TimelineNameValidator.cs
parent1c880744293c9f47ff1241109b72c035680251df (diff)
parentbe8cbe2c4ddf2076cc02bcb2feb1a70d30a4bda0 (diff)
downloadtimeline-97010e98a11ad6fd6c075cee414c30174001fe5d.tar.gz
timeline-97010e98a11ad6fd6c075cee414c30174001fe5d.tar.bz2
timeline-97010e98a11ad6fd6c075cee414c30174001fe5d.zip
Merge pull request #57 from crupest/dev
Add normal timeline feature.
Diffstat (limited to 'Timeline/Models/Validation/TimelineNameValidator.cs')
-rw-r--r--Timeline/Models/Validation/TimelineNameValidator.cs19
1 files changed, 19 insertions, 0 deletions
diff --git a/Timeline/Models/Validation/TimelineNameValidator.cs b/Timeline/Models/Validation/TimelineNameValidator.cs
new file mode 100644
index 00000000..f1ab54e8
--- /dev/null
+++ b/Timeline/Models/Validation/TimelineNameValidator.cs
@@ -0,0 +1,19 @@
+using System;
+
+namespace Timeline.Models.Validation
+{
+ public class TimelineNameValidator : NameValidator
+ {
+ }
+
+ [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter,
+ AllowMultiple = false)]
+ public class TimelineNameAttribute : ValidateWithAttribute
+ {
+ public TimelineNameAttribute()
+ : base(typeof(TimelineNameValidator))
+ {
+
+ }
+ }
+}