[gnome-games] generic: Add GenericDeveloper & GenericPublisher
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] generic: Add GenericDeveloper & GenericPublisher
- Date: Sun, 22 Jul 2018 09:22:08 +0000 (UTC)
commit 891cf61fadf46da63d4f1e46a155e1bde532d659
Author: 1PunMan <saurabhsingh412 gmail com>
Date: Thu May 10 15:47:20 2018 +0530
generic: Add GenericDeveloper & GenericPublisher
These will be used in a subsequent commit to providegame developer &
publisher to GenericGame.
src/generic/generic-developer.vala | 13 +++++++++++++
src/generic/generic-publisher.vala | 13 +++++++++++++
src/meson.build | 2 ++
3 files changed, 28 insertions(+)
---
diff --git a/src/generic/generic-developer.vala b/src/generic/generic-developer.vala
new file mode 100644
index 0000000..3499c94
--- /dev/null
+++ b/src/generic/generic-developer.vala
@@ -0,0 +1,13 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+public class Games.GenericDeveloper : Object, Developer {
+ private string developer;
+
+ public GenericDeveloper (string developer) {
+ this.developer = developer;
+ }
+
+ public string get_developer () {
+ return developer;
+ }
+}
diff --git a/src/generic/generic-publisher.vala b/src/generic/generic-publisher.vala
new file mode 100644
index 0000000..bbebea9
--- /dev/null
+++ b/src/generic/generic-publisher.vala
@@ -0,0 +1,13 @@
+// This file is part of GNOME Games. License: GPL-3.0+.
+
+public class Games.GenericPublisher : Object, Publisher {
+ private string publisher;
+
+ public GenericPublisher (string publisher) {
+ this.publisher = publisher;
+ }
+
+ public string get_publisher () {
+ return publisher;
+ }
+}
diff --git a/src/meson.build b/src/meson.build
index bbc4f78..71cd94f 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -70,10 +70,12 @@ vala_sources = [
'gamepad/gamepad-mapping-builder.vala',
'generic/generic-cooperative.vala',
+ 'generic/generic-developer.vala',
'generic/generic-game.vala',
'generic/generic-game-uri-adapter.vala',
'generic/generic-genre.vala',
'generic/generic-players.vala',
+ 'generic/generic-publisher.vala',
'generic/generic-release-date.vala',
'generic/generic-title.vala',
'generic/generic-uid.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]