Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model/Tag/Tag.js')
-rw-r--r--src/Model/Tag/Tag.js45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/Model/Tag/Tag.js b/src/Model/Tag/Tag.js
new file mode 100644
index 0000000..1cff8b7
--- /dev/null
+++ b/src/Model/Tag/Tag.js
@@ -0,0 +1,45 @@
+import Properties from '../../Configuration/Tag';
+import AbstractRevisionModel from '../AbstractRevisionModel';
+
+export default class Tag extends AbstractRevisionModel {
+
+ /**
+ *
+ * @param {Object} [data={}]
+ */
+ constructor(data = {}) {
+ super(Properties, data);
+ }
+
+ /**
+ * @return {String}
+ */
+ getLabel() {
+ return this.getProperty('label');
+ }
+
+ /**
+ * @param {String} value
+ *
+ * @return {Tag}
+ */
+ setLabel(value) {
+ return this.setProperty('label', value);
+ }
+
+ /**
+ * @return {String}
+ */
+ getColor() {
+ return this.getProperty('color');
+ }
+
+ /**
+ * @param {String} value
+ *
+ * @return {Tag}
+ */
+ setColor(value) {
+ return this.setProperty('color', value);
+ }
+} \ No newline at end of file