mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
17 lines
413 B
C#
17 lines
413 B
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace Kruzya.TelegramBot.Core.Options;
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
public class OptionAttribute : Attribute
|
|
{
|
|
public string OptionId { get; }
|
|
public object DefaultValue { get; }
|
|
|
|
public OptionAttribute(string optionId, object defaultValue = default)
|
|
{
|
|
OptionId = optionId;
|
|
DefaultValue = defaultValue;
|
|
}
|
|
} |