using Newtonsoft.Json;
namespace RhythmBase.Events
{
///
/// Represents an action to play an animation.
///
public class PlayAnimation : BaseDecorationAction
{
///
/// Initializes a new instance of the class.
///
public PlayAnimation()
{
Type = EventType.PlayAnimation;
Tab = Tabs.Decorations;
}
///
/// Gets the type of the event.
///
public override EventType Type { get; }
///
/// Gets the tab associated with the event.
///
public override Tabs Tab { get; }
///
/// Gets or sets the expression for the animation.
///
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
public string Expression { get; set; } = "";
///
/// Returns a string that represents the current object.
///
/// A string that represents the current object.
public override string ToString() => base.ToString() + string.Format(" Expression:{0}", Expression);
}
}