dev.fitko.fitconnect.api.domain.model.metadata.attachment.ApiAttachment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
Library that provides client access to the FIT-Connect api-endpoints for sending, subscribing and
routing
The newest version!
package dev.fitko.fitconnect.api.domain.model.metadata.attachment;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import dev.fitko.fitconnect.api.domain.model.metadata.Hash;
import dev.fitko.fitconnect.api.domain.model.metadata.Signature;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
import java.util.UUID;
@Data
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ApiAttachment {
@JsonProperty("hash")
private Hash hash;
@JsonProperty("signature")
private Signature signature;
@JsonProperty("purpose")
private Purpose purpose;
@JsonProperty("filename")
private String filename;
@JsonProperty("description")
private String description;
@JsonProperty("mimeType")
private String mimeType;
@JsonProperty("attachmentId")
private UUID attachmentId;
@JsonProperty("fragments")
private List fragments;
@JsonIgnore
public boolean hasFragments() {
return fragments != null && !fragments.isEmpty();
}
}