summaryrefslogtreecommitdiff
path: root/Aktywator/ParyTournament.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-07-30 01:44:48 +0200
committeremkael <emkael@tlen.pl>2017-07-30 01:44:48 +0200
commitcfe97d223573c4792e5d42a4443c139fd8c87381 (patch)
treefc40d2ec06d712c4fbf6832ad894ab120a330402 /Aktywator/ParyTournament.cs
parentf14238e95bf1a10789585bf7632c5506daecc630 (diff)
Refactoring MySQL tournament names: generalization
Diffstat (limited to 'Aktywator/ParyTournament.cs')
-rw-r--r--Aktywator/ParyTournament.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/Aktywator/ParyTournament.cs b/Aktywator/ParyTournament.cs
new file mode 100644
index 0000000..8d80d9f
--- /dev/null
+++ b/Aktywator/ParyTournament.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace Aktywator
+{
+ class ParyTournament: MySQLTournament
+ {
+ public ParyTournament(string name)
+ : base(name)
+ {
+ }
+
+ override internal string getTypeLabel()
+ {
+ return "Pary";
+ }
+
+ override public string getSectionsNum()
+ {
+ return this.mysql.selectOne("SELECT COUNT(DISTINCT seknum) FROM sektory;");
+ }
+
+ override public string getTablesNum()
+ {
+ return this.mysql.selectOne("SELECT COUNT(*) FROM sektory;");
+ }
+
+ }
+}