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; + } +}