forked from GNOME/chronojump
/
event.cs
97 lines (78 loc) · 2.08 KB
/
event.cs
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
* This file is part of ChronoJump
*
* ChronoJump 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 2 of the License, or
* (at your option) any later version.
*
* ChronoJump 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, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Copyright (C) 2004-2009 Xavier de Blas <xaviblas@gmail.com>
*/
using System;
using System.Data;
using System.Text; //StringBuilder
public partial class Event
{
protected int personID;
protected string personName;
protected int sessionID;
protected int uniqueID;
protected string type;
protected string description;
protected int simulated;
public Event() {
}
//used to select an event at Sqlite.addSimulatedInEventTables
public Event(string [] eventString) {
}
public virtual void HolaServer (ChronojumpServer myServer) {
}
public virtual int InsertAtDB (bool dbconOpened, string tableName) {
Console.WriteLine("++++++++");
return -1;
}
public string Type
{
get { return type; }
set { type = value; }
}
public string Description
{
get { return description; }
set { description = value; }
}
public int UniqueID
{
get { return uniqueID; }
set { uniqueID = value; }
}
public int SessionID
{
get { return sessionID; }
set { sessionID = value; }
}
public int PersonID
{
get { return personID; }
set { personID = value; }
}
public int Simulated {
get { return simulated; }
set { simulated = value; }
}
public string PersonName
{
//get { return personName; }
get { return SqlitePerson.SelectAttribute(personID, Constants.Name); }
}
~Event() {}
}