aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/Entities/ActionLog.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-18 15:52:25 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-12-18 15:52:25 +0200
commit41b950b3f3f7fa0384cccd13ed4ef38119bbcbcf (patch)
treef6c535ae38fcf71842f0af4622c806044224974d /Software/Visual_Studio/Tango.BL/Entities/ActionLog.cs
parent615bc666c8d0618d93bc4401a74928535c2cc7f6 (diff)
downloadTango-41b950b3f3f7fa0384cccd13ed4ef38119bbcbcf.tar.gz
Tango-41b950b3f3f7fa0384cccd13ed4ef38119bbcbcf.zip
Fixed ContinueThreadLoadingResponse.
Refactored ActionLog Difference data structure to node tree.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/Entities/ActionLog.cs')
-rw-r--r--Software/Visual_Studio/Tango.BL/Entities/ActionLog.cs20
1 files changed, 10 insertions, 10 deletions
diff --git a/Software/Visual_Studio/Tango.BL/Entities/ActionLog.cs b/Software/Visual_Studio/Tango.BL/Entities/ActionLog.cs
index af88ee7f1..bb122872f 100644
--- a/Software/Visual_Studio/Tango.BL/Entities/ActionLog.cs
+++ b/Software/Visual_Studio/Tango.BL/Entities/ActionLog.cs
@@ -12,7 +12,7 @@ namespace Tango.BL.Entities
{
public class ActionLog : ActionLogBase
{
- private List<ActionLogDifference> _differences;
+ private ActionLogDifference _differenceObject;
[NotMapped]
[JsonIgnore]
@@ -24,35 +24,35 @@ namespace Tango.BL.Entities
[NotMapped]
[JsonIgnore]
- public List<ActionLogDifference> Differences
+ public ActionLogDifference DifferenceObject
{
get
{
- if (_differences != null)
+ if (_differenceObject != null)
{
try
{
- _differences = JsonConvert.DeserializeObject<List<ActionLogDifference>>(Difference);
+ _differenceObject = JsonConvert.DeserializeObject<ActionLogDifference>(Difference);
}
catch
{
- _differences = new List<ActionLogDifference>();
+ _differenceObject = new ActionLogDifference();
}
}
else
{
- _differences = new List<ActionLogDifference>();
+ _differenceObject = new ActionLogDifference();
}
- return _differences;
+ return _differenceObject;
}
set
{
- _differences = value;
+ _differenceObject = value;
- if (_differences != null)
+ if (_differenceObject != null)
{
- Difference = JsonConvert.SerializeObject(_differences);
+ Difference = JsonConvert.SerializeObject(_differenceObject);
}
}
}