All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.fitko.fitconnect.api.domain.model.metadata.attachment.ApiAttachment Maven / Gradle / Ivy

Go to download

Library that provides client access to the FIT-Connect api-endpoints for sending, subscribing and routing

There is a newer version: 2.3.5
Show 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();
    }
}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy