aboutsummaryrefslogtreecommitdiff
path: root/client/src/service
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/service')
-rw-r--r--client/src/service/Licences.scala31
-rw-r--r--client/src/service/Poses.scala58
2 files changed, 89 insertions, 0 deletions
diff --git a/client/src/service/Licences.scala b/client/src/service/Licences.scala
new file mode 100644
index 0000000..77bfe5d
--- /dev/null
+++ b/client/src/service/Licences.scala
@@ -0,0 +1,31 @@
+package yoga.service
+
+import java.net.URI
+
+import yoga.model.Licence
+
+object Licences {
+
+ object CreativeCommons {
+
+ val attributionAlike_2_5: Licence =
+ Licence(
+ name = "Creative Commons Attribution 2.5 Generic",
+ uri = URI.create("https://creativecommons.org/licenses/by/2.5/deed.en")
+ )
+
+ val attributionAlike_3_0: Licence =
+ Licence(
+ name = "Creative Commons Attribution-Share Alike 3.0 Unported license",
+ uri = URI.create("https://creativecommons.org/licenses/by-sa/3.0/deed.en")
+ )
+
+ val attributionAlike_4_0: Licence =
+ Licence(
+ name = "Creative Commons Attribution 4.0 International license",
+ uri = URI.create("https://creativecommons.org/licenses/by/4.0/deed.en")
+ )
+
+ }
+
+}
diff --git a/client/src/service/Poses.scala b/client/src/service/Poses.scala
new file mode 100644
index 0000000..584c13c
--- /dev/null
+++ b/client/src/service/Poses.scala
@@ -0,0 +1,58 @@
+package yoga.service
+
+import java.net.URI
+
+import yoga.model.{ Pose, PoseCategory, FileRights }
+
+object Poses {
+
+ def values: Seq[Pose] = Seq(
+ Pose(
+ name = "Downward-Facing Dog",
+ category = PoseCategory.Standing,
+ image = URI.create("downward-facing-dog.jpg"),
+ rights = FileRights(
+ author = "Joseph RENGER",
+ licence = Licences.CreativeCommons.attributionAlike_3_0
+ )
+ ),
+ Pose(
+ name = "Downward-Facing Tree",
+ otherNames = Seq("Yoga Handstand"),
+ category = PoseCategory.Balancing,
+ image = URI.create("downward-facing-tree.jpg"),
+ rights = FileRights(
+ author = "Chiswick Chap",
+ licence = Licences.CreativeCommons.attributionAlike_4_0,
+ modification = Some("cropped 81 % horizontally, 9 % vertically using CropTool with precise mode.")
+ )
+ ),
+ // Pose(
+ // name = "Shooting bow",
+ // otherNames = Seq("Archer", "Bow and arrow"),
+ // category = PoseCategory.Sitting,
+ // image = URI.create("shooting-bow.jpg"),
+ // licence = Licences.CreativeCommons.attributionAlike_4_0
+ // ),
+ // Pose(
+ // name = "Ananta’s pose",
+ // otherNames = Seq("Vishnu’s Couch pose"),
+ // category = PoseCategory.Reclining,
+ // image = URI.create("ananta-pose.jpg"),
+ // licence = Licences.CreativeCommons.attributionAlike_4_0
+ // ),
+ // Pose(
+ // name = "Crescent Moon",
+ // category = PoseCategory.Standing,
+ // image = URI.create("crescent-moon.jpg"),
+ // licence = Licences.CreativeCommons.attributionAlike_3_0
+ // ),
+ // Pose(
+ // name = "Half moon",
+ // category = PoseCategory.Standing,
+ // image = URI.create("half-moon.jpg"),
+ // licence = Licences.CreativeCommons.attributionAlike_3_0
+ // )
+ )
+
+}