11 lines
323 B
C#
11 lines
323 B
C#
namespace Lagrange.OneBot.Message;
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public class SegmentSubscriberAttribute(Type entity, string type, string? sendType = null) : Attribute
|
|
{
|
|
public Type Entity { get; } = entity;
|
|
|
|
public string Type { get; } = type;
|
|
|
|
public string SendType { get; } = sendType ?? type;
|
|
} |