aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.Statistics/Models/LiquidQuantityModel.cs
blob: 37602258feb4d370a25be5b51660b3cb9b4a6286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.BL.Entities;
using Tango.BL.Enumerations;

namespace Tango.FSE.Statistics.Models
{
    public class LiquidQuantityModel
    {
        public double Quantity { get; set; }
        public LiquidType LiquidType { get; set; }

        public double Liters
        {
            get { return Quantity / 1000000000d; }
        }

        public String Title
        {
            get
            {
                return LiquidType.Name + $": {Liters.ToString("0.0000")} Liters";
            }
        }
    }
}