2017-05-31 01:31:56 -04:00
|
|
|
|
using System;
|
|
|
|
|
|
2017-06-12 17:47:31 -04:00
|
|
|
|
namespace SharedLibrary.Helpers
|
2017-05-31 01:31:56 -04:00
|
|
|
|
{
|
|
|
|
|
public class MessageToken
|
|
|
|
|
{
|
|
|
|
|
public string Name { get; private set; }
|
|
|
|
|
Func<string> Value;
|
|
|
|
|
public MessageToken(string Name, Func<string> Value)
|
|
|
|
|
{
|
|
|
|
|
this.Name = Name;
|
|
|
|
|
this.Value = Value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return Value().ToString();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|