package app.mealsmadeeasy.api.image.view;

import app.mealsmadeeasy.api.user.view.UserInfoView;
import lombok.Builder;
import lombok.Value;
import org.jetbrains.annotations.Nullable;

import java.time.OffsetDateTime;
import java.util.Set;

@Value
@Builder
public class ImageView {
    String url;
    OffsetDateTime created;
    @Nullable OffsetDateTime modified;
    String filename;
    String mimeType;
    @Nullable String alt;
    @Nullable String caption;
    UserInfoView owner;
    boolean isPublic;
    @Nullable Integer height;
    @Nullable Integer width;
    @Nullable Set<UserInfoView> viewers;
}
