28 lines
616 B
C#
28 lines
616 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
namespace IRCRobots
|
|
{
|
|
public class MessageTag
|
|
{
|
|
public MessageTag()
|
|
{
|
|
Tags = new[] {Name, DraftName};
|
|
}
|
|
|
|
public string Name { get; set; }
|
|
public string DraftName { get; set; }
|
|
public IEnumerable<string> Tags { get; }
|
|
|
|
public string? Available(IEnumerable<string> tags)
|
|
{
|
|
return Tags.FirstOrDefault(tag => tag != null && tags.Contains(tag));
|
|
}
|
|
|
|
public string? Get(Dictionary<string, string> tags)
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
}
|