using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VSview
{
    /// <summary>
    /// Class for sending commands to the detector
    /// </summary>
    public class Message
    {
        #region Public properties

        /// <summary>
        /// Command to be send to detector
        /// </summary>
        public string Command { get; set; }

        /// <summary>
        /// Determines if command and detector response to command should be displayed in log
        /// </summary>
        public bool ShowInLog { get; set; }

        #endregion

        #region Constructor
        /// <summary>
        /// Main constructor
        /// </summary>
        /// <param name="comm"></param>
        /// <param name="show"></param>
        public Message(string comm, bool show = false)
        {
            Command = comm;
            ShowInLog = show;
        }

        #endregion

    }
}
