1:
2: namespace Ia.TentPlay.Cl.Model.Business
3: {
4: ////////////////////////////////////////////////////////////////////////////
5:
6: /// <summary publish="true">
7: /// Support class for TentPlay business model
8: /// </summary>
9: ///
10: /// <remarks>
11: /// Copyright © 2012-2018 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
12: ///
13: /// 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
14: /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
15: ///
16: /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
17: /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18: ///
19: /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
20: ///
21: /// Copyright notice: This notice may not be removed or altered from any source distribution.
22: /// </remarks>
23: public class Default
24: {
25: ////////////////////////////////////////////////////////////////////////////
26:
27: /// <summary>
28: ///
29: /// </summary>
30: public Default()
31: {
32: }
33:
34: ////////////////////////////////////////////////////////////////////////////
35:
36: /// <summary>
37: /// The Version Code used in AndroidManifest.xml will be generated as the number of hours passed from 2018-01-01 00:00
38: /// </summary>
39: public static int VersionCode
40: {
41: get
42: {
43: DateTime start, now;
44: TimeSpan timeSpan;
45:
46: start = DateTime.Parse("2018-01-01");
47: now = DateTime.UtcNow.AddHours(3);
48:
49: timeSpan = now - start;
50:
51: return (int)Math.Floor(timeSpan.TotalHours);
52: }
53: }
54:
55: ////////////////////////////////////////////////////////////////////////////
56: ////////////////////////////////////////////////////////////////////////////
57: }
58:
59: ////////////////////////////////////////////////////////////////////////////
60: ////////////////////////////////////////////////////////////////////////////
61: }