IW4M-Admin/SharedLibraryCore/Helpers/MessageToken.cs

21 lines
449 B
C#
Raw Normal View History

using System;
2018-04-08 02:44:42 -04:00
namespace SharedLibraryCore.Helpers
{
public class MessageToken
{
public string Name { get; private set; }
Func<Server, string> Value;
public MessageToken(string Name, Func<Server, string> Value)
{
this.Name = Name;
this.Value = Value;
}
public string Process(Server server)
{
return this.Value(server);
}
}
}