using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tango.BL.ValueObjects
{
///
/// Represents an ActionLog difference node value comparison.
///
///
public class ActionLogDifferenceValue : ActionLogDifference
{
///
/// Gets or sets the node value before the change.
///
public Object Before { get; set; }
///
/// Gets or sets the node value after the change.
///
public Object After { get; set; }
///
/// Gets a value indicating whether before and after values are different.
///
[JsonIgnore]
public override bool HasDifference
{
get { return Before != After; }
}
///
/// Returns a that represents this instance.
///
///
/// A that represents this instance.
///
public override string ToString()
{
return $"{Name}: Before: {Before} != After: {After}";
}
}
}