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

namespace JAMM.Kasse.Models
{
    /// <summary>
    /// Model für offene Tische
    /// </summary>
    public class OpenTable
    {
        private Models.Table table;
        private float sum;

        //Konstruktor
        public OpenTable(Models.Table table, float sum)
        {
            this.table = table;
            this.sum = sum;
        }
        
        //ab hier Properties

        public string Name
        {
            get { return table.Name + " (" + table.Number + ")" ; }
        }

        public string Sum
        {
            get { return sum + " €"; }
        }

        public float Summe
        {
            get { return sum;  }
        }
    }
}
