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

com.symphony.bdk.bot.sdk.event.model.MessageAttachment Maven / Gradle / Ivy

package com.symphony.bdk.bot.sdk.event.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import model.Attachment;

/**
 * Symphony message attachment details
 *
 * @author Gabriel Berberian
 */
@Data
@NoArgsConstructor
public class MessageAttachment {

  private String id;
  private String name;
  private Long size;
  private AttachmentImageInfo image;

  public MessageAttachment(Attachment attachment) {
    this.id = attachment.getId();
    this.name = attachment.getName();
    this.size = attachment.getSize();
    this.image =
        attachment.getImage() != null ? new AttachmentImageInfo(attachment.getImage()) : null;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy