1: using System;
2: using System.Collections.Generic;
3:
4: namespace Ia.Cl.Model
5: {
6: ////////////////////////////////////////////////////////////////////////////
7:
8: /// <summary publish="true">
9: /// TimestampedList
10: /// </summary>
11: ///
12: /// <remarks>
13: /// Copyright © 2020-2021 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
14: ///
15: /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
16: /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
17: ///
18: /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
19: /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
20: ///
21: /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
22: ///
23: /// Copyright notice: This notice may not be removed or altered from any source distribution.
24: /// </remarks>
25: public class TimestampedList<T>
26: {
27: /// <summary/>
28: public DateTime Timestamp { get; set; }
29:
30: /// <summary/>
31: public List<T> List { get; set; }
32:
33: ////////////////////////////////////////////////////////////////////////////
34:
35: /// <summary>
36: ///
37: /// </summary>
38: public TimestampedList()
39: {
40: this.Timestamp = DateTime.MinValue;
41: this.List = new List<T>();
42: }
43:
44: ////////////////////////////////////////////////////////////////////////////
45:
46: /// <summary>
47: ///
48: /// </summary>
49: public TimestampedList(DateTime timestamp, List<T> list)
50: {
51: this.Timestamp = timestamp;
52: this.List = list;
53: }
54:
55: ////////////////////////////////////////////////////////////////////////////
56: ////////////////////////////////////////////////////////////////////////////
57: }
58:
59: ////////////////////////////////////////////////////////////////////////////
60: ////////////////////////////////////////////////////////////////////////////
61: }