From 429d6a03971cebbe7c7d7361c6f6a8d540a614f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20T=C3=A1rraga=20Gim=C3=A9nez?= Date: Fri, 13 Sep 2024 10:33:42 +0200 Subject: [PATCH] models: add image data model, #TASK-6772, #TASK-6766 --- .../opencb/biodata/models/common/Image.java | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 biodata-models/src/main/java/org/opencb/biodata/models/common/Image.java diff --git a/biodata-models/src/main/java/org/opencb/biodata/models/common/Image.java b/biodata-models/src/main/java/org/opencb/biodata/models/common/Image.java new file mode 100644 index 00000000..ffaf2825 --- /dev/null +++ b/biodata-models/src/main/java/org/opencb/biodata/models/common/Image.java @@ -0,0 +1,73 @@ +/* + * + * + */ + +package org.opencb.biodata.models.common; + +public class Image { + + private String name; + private String base64; + private String description; + + public Image() { + } + + public Image(String name, String base64, String description) { + this.name = name; + this.base64 = base64; + this.description = description; + } + + @Override + public String toString() { + final StringBuilder sb = new StringBuilder("Image{"); + sb.append("name='").append(name).append('\''); + sb.append(", base64='").append(base64).append('\''); + sb.append(", description='").append(description).append('\''); + sb.append('}'); + return sb.toString(); + } + + public String getName() { + return name; + } + + public Image setName(String name) { + this.name = name; + return this; + } + + public String getBase64() { + return base64; + } + + public Image setBase64(String base64) { + this.base64 = base64; + return this; + } + + public String getDescription() { + return description; + } + + public Image setDescription(String description) { + this.description = description; + return this; + } +}