using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tango.DataStore.Remote { public class RemoteDataStoreGetResponse { public DataType DataType { get; set; } private Object _value; public Object Value { get { return DataType == DataType.Proto ? ProtoObject : _value; } set { if (value is DataStoreProtoObject protoValue) { ProtoObject = protoValue; } else { _value = value; } } } public DataStoreProtoObject ProtoObject { get; set; } } }