iotgateway/Plugins/PluginInterface/MethodAttribute.cs

24 lines
689 B
C#
Raw Permalink Normal View History

2021-12-12 06:55:48 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PluginInterface
{
[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
public class MethodAttribute: Attribute
{
public string Name { get; }
public ProtectTypeEnum Protect_Type { get; }
public string Description { get; }
public MethodAttribute(string name, ProtectTypeEnum protect_Type = ProtectTypeEnum.ReadOnly, string description = "")
{
Name = name;
Protect_Type = protect_Type;
Description = description;
}
}
}