aboutsummaryrefslogtreecommitdiff
path: root/OpenSubtitlesHandler/Interfaces
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-10-27 23:17:31 -0400
committerGitHub <noreply@github.com>2016-10-27 23:17:31 -0400
commit57f83a2744fb5ebdf5774d51d2125ea46f4ce8ab (patch)
treef0a8c9137d24160fe8e2955bff7010163f2d4066 /OpenSubtitlesHandler/Interfaces
parent8fcc7a0385b9db202c1f93ee897eb5a11d2759da (diff)
parentf6acc5fbff081728138564867a58b7848c92c467 (diff)
Merge pull request #2256 from MediaBrowser/dev
Dev
Diffstat (limited to 'OpenSubtitlesHandler/Interfaces')
-rw-r--r--OpenSubtitlesHandler/Interfaces/IMethodResponse.cs30
1 files changed, 20 insertions, 10 deletions
diff --git a/OpenSubtitlesHandler/Interfaces/IMethodResponse.cs b/OpenSubtitlesHandler/Interfaces/IMethodResponse.cs
index b8e24f12bd..9c05e357b9 100644
--- a/OpenSubtitlesHandler/Interfaces/IMethodResponse.cs
+++ b/OpenSubtitlesHandler/Interfaces/IMethodResponse.cs
@@ -37,17 +37,17 @@ namespace OpenSubtitlesHandler
protected double seconds;
protected string status;
- protected virtual void LoadAttributes()
+ protected void LoadAttributes()
{
- foreach (Attribute attr in Attribute.GetCustomAttributes(this.GetType()))
- {
- if (attr.GetType() == typeof(MethodResponseDescription))
- {
- this.name = ((MethodResponseDescription)attr).Name;
- this.message = ((MethodResponseDescription)attr).Message;
- break;
- }
- }
+ //foreach (Attribute attr in Attribute.GetCustomAttributes(this.GetType()))
+ //{
+ // if (attr.GetType() == typeof(MethodResponseDescription))
+ // {
+ // this.name = ((MethodResponseDescription)attr).Name;
+ // this.message = ((MethodResponseDescription)attr).Message;
+ // break;
+ // }
+ //}
}
[Description("The name of this response"), Category("MethodResponse")]
@@ -59,4 +59,14 @@ namespace OpenSubtitlesHandler
[Description("The status"), Category("MethodResponse")]
public string Status { get { return status; } set { status = value; } }
}
+
+ public class DescriptionAttribute : Attribute
+ {
+ public DescriptionAttribute(string text) { }
+ }
+
+ public class CategoryAttribute : Attribute
+ {
+ public CategoryAttribute(string text) { }
+ }
}