NetworkService/LanguageXml.cs

25 lines
591 B
C#
Raw Normal View History

2022-09-04 08:35:19 +09:00
using System.Collections.Generic;
namespace NWService
{
public class LanguageXml
{
public LanguageXml()
{
this.messageMaps = new Dictionary<string, string>();
}
public Dictionary<string, string> messageMaps = new Dictionary<string, string>();
public string GetMessage(string key, string defaultMessage)
{
if (messageMaps.ContainsKey(key))
{
return messageMaps[key];
}
else
{
return defaultMessage;
}
}
}
}