| 123456789101112131415161718192021222324252627 |
- using System;
- namespace Model
- {
- [AttributeUsage(AttributeTargets.Class)]
- public abstract class AEventAttribute: Attribute
- {
- public EventType Type { get; private set; }
- private ServerType ServerType { get; set; }
- protected AEventAttribute(EventType type, ServerType serverType)
- {
- this.Type = type;
- this.ServerType = serverType;
- }
- public bool Contains(ServerType serverType)
- {
- if ((this.ServerType & serverType) == 0)
- {
- return false;
- }
- return true;
- }
- }
- }
|