mirror of
https://github.com/logos-storage/logos-storage-nim-cs-dist-tests.git
synced 2026-01-03 14:03:09 +00:00
18 lines
381 B
C#
18 lines
381 B
C#
namespace CodexPlugin.OverwatchSupport
|
|
{
|
|
public class NameIdMap
|
|
{
|
|
private readonly Dictionary<string, string> map = new Dictionary<string, string>();
|
|
|
|
public void Add(string name, string peerId)
|
|
{
|
|
map.Add(name, peerId);
|
|
}
|
|
|
|
public string GetPeerId(string name)
|
|
{
|
|
return map[name];
|
|
}
|
|
}
|
|
}
|