﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Linq;

namespace Catfish.Core.Models.Contents.Workflow
{
    public class Button : XmlModel
    {
        public static readonly string TagName = "button";
        public static readonly string TextAtt = "text";
        public static readonly string ReturnAtt = "return";
        public string Text
        {
            get => GetAttribute("text", null as string);
            set => SetAttribute("text", value);
        }

        public string Return
        {
            get => GetAttribute("return", null as string);
            set => SetAttribute("return", value);
        }
        
        public Button(XElement data)
            : base(data)
        {

        }
        public Button()
            : base(new XElement(TagName))
        {

        }
    }
}
