io.automatiko.engine.addons.services.receiveemail.Attachment Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of automatiko-receive-email-addon Show documentation
Show all versions of automatiko-receive-email-addon Show documentation
Receive Email Services Addon for Automatiko Engine
package io.automatiko.engine.addons.services.receiveemail;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.automatiko.engine.workflow.file.ByteArrayFile;
import io.quarkus.runtime.annotations.RegisterForReflection;
@RegisterForReflection
public class Attachment extends ByteArrayFile {
public Attachment(String name, byte[] content) {
super(name, content == null ? new byte[0] : content);
}
public Attachment(@JsonProperty("name") String name, @JsonProperty("content") byte[] content,
@JsonProperty("attributes") Map attributes) {
super(name, content, attributes);
}
}