[gnome-maps/wip/mlundblad/add-email-and-takeaway: 1/4] place: Add property for take-away




commit a70e1ccee33a79991cf97c735521cde8f06d2bef
Author: Marcus Lundblad <ml update uu se>
Date:   Thu Apr 29 23:54:32 2021 +0200

    place: Add property for take-away

 src/place.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/src/place.js b/src/place.js
index 603fc33e..821ffb10 100644
--- a/src/place.js
+++ b/src/place.js
@@ -78,6 +78,9 @@ class Place extends Geocode.Place {
         this._toilets = params.toilets;
         delete params.toilets;
 
+        this._takeaway = params.takeaway;
+        delete params.takeaway;
+
         this._note = params.note;
         delete params.note;
 
@@ -226,6 +229,14 @@ class Place extends Geocode.Place {
         return this._toilets;
     }
 
+    set takeaway(v) {
+        this._takeaway = v;
+    }
+
+    get takeaway() {
+        return this._takeaway;
+    }
+
     set note(v) {
         this._note = v;
     }
@@ -332,6 +343,7 @@ class Place extends Geocode.Place {
                  internetAccess: this.internetAccess,
                  religion: this.religion,
                  toilets: this.toilets,
+                 takeaway: this.takeaway,
                  note: this.note };
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]