2019-12-26 23:01:54 -05:00
|
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2019-01-10 17:26:53 -05:00
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
|
|
using nDisplayLauncher.Log;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace nDisplayLauncher.Cluster.Config.Entity
|
|
|
|
|
|
{
|
|
|
|
|
|
public class EntityInfo : EntityBase
|
|
|
|
|
|
{
|
|
|
|
|
|
public ConfigurationVersion Version { get; set; } = ConfigurationVersion.Ver22;
|
|
|
|
|
|
|
|
|
|
|
|
public EntityInfo()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public EntityInfo(string text)
|
|
|
|
|
|
{
|
|
|
|
|
|
try
|
|
|
|
|
|
{
|
|
|
|
|
|
InitializeFromText(text);
|
|
|
|
|
|
}
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
{
|
|
|
|
|
|
AppLogger.Log(ex.Message);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void InitializeFromText(string text)
|
|
|
|
|
|
{
|
2019-06-07 11:22:52 -04:00
|
|
|
|
string StrVersion = Parser.GetStringValue(text, "version");
|
2019-01-10 17:26:53 -05:00
|
|
|
|
Version = ConfigurationVersionHelpers.FromString(StrVersion);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|