aboutsummaryrefslogtreecommitdiff
path: root/OpenSubtitlesHandler/Interfaces
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-27 18:54:56 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-10-27 18:54:56 -0400
commit31c8c3bf7f1cb5e79d36b0b1d5c28907ea526011 (patch)
tree3cb82628a3d58065d4f2b1bfecace002e5cb0b1e /OpenSubtitlesHandler/Interfaces
parent0d5e95222af2a40d06971baa5ab06a9e5d2fba3d (diff)
make open subtitle project portable
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) { }
+ }
}