// Created with MonoDevelop
//
//    Copyright (C) 2024 Hiperscan GmbH Dresden, Germany
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.


using System;

namespace Hiperscan.SGS.Benchtop.LightSourceControl
{
    public class LightSourceOperatingTimes
    {
        public UInt32 Lamp1OperatingTimeSeconds;
        public UInt32 Lamp1SwitchedCycles;
        public UInt32 Lamp2OperatingTimeSeconds;
        public UInt32 Lamp2SwitchedCycles;
        public UInt32 Lamp3OperatingTimeSeconds;
        public UInt32 Lamp3SwitchedCycles;
        public UInt32 SystemOperatingTimeSeconds;

        public override string ToString()
        {
            return string.Format("Lamp 1 seconds = {0}\n" +
                                 "Lamp 1 switces = {1}\n" +
                                 "Lamp 2 seconds = {2}\n" +
                                 "Lamp 2 switces = {3}\n" +
                                 "Lamp 3 seconds = {4}\n" +
                                 "Lamp 3 switces = {5}\n" +
                                 "System seconds = {6}",
                                 this.Lamp1OperatingTimeSeconds,
                                 this.Lamp1SwitchedCycles,
                                 this.Lamp2OperatingTimeSeconds,
                                 this.Lamp2SwitchedCycles,
                                 this.Lamp3OperatingTimeSeconds,
                                 this.Lamp3SwitchedCycles,
                                 this.SystemOperatingTimeSeconds);
        }
    }
}
