Add generic methods
This commit is contained in:
parent
ae31001fcf
commit
b734a3078a
1 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,12 @@
|
||||||
(defgeneric survey-data-dir-p (survey)
|
(defgeneric survey-data-dir-p (survey)
|
||||||
(:documentation "Check if the survey's data directory exists."))
|
(:documentation "Check if the survey's data directory exists."))
|
||||||
|
|
||||||
|
(defgeneric survey-properties-title (survey)
|
||||||
|
(:documentation "Get title property."))
|
||||||
|
|
||||||
|
(defgeneric survey-properties-description (survey)
|
||||||
|
(:documentation "Get description property."))
|
||||||
|
|
||||||
(defmethod survey-id-p ((survey survey))
|
(defmethod survey-id-p ((survey survey))
|
||||||
(let ((ids (mapcar #'car (load-response (make-surveys-db-file)))))
|
(let ((ids (mapcar #'car (load-response (make-surveys-db-file)))))
|
||||||
(if (member (parse-integer (survey-id survey)) ids) t nil)))
|
(if (member (parse-integer (survey-id survey)) ids) t nil)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue