package com.caliverse.admin.dynamodb.domain.atrrib;

import com.caliverse.admin.dynamodb.entity.MailItem;
import com.caliverse.admin.dynamodb.entity.SystemMessage;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.fasterxml.jackson.databind.node.ArrayNode;
import lombok.*;
import software.amazon.awssdk.enhanced.dynamodb.mapper.annotations.DynamoDbBean;

import java.util.List;

@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@DynamoDbBean
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class SystemMetaMailAttrib extends DynamoDBAttribBase {

    @JsonProperty("mail_id")
    private Integer mailId;

    @JsonProperty("sender_nickname")
    private List<SystemMessage> senderNickName;

    private List<SystemMessage> title;

    private List<SystemMessage> text;

    @JsonProperty("start_time")
    private String startTime;

    @JsonProperty("end_time")
    private String endTime;

    @JsonProperty("item_list")
    private List<MailItem> itemList;
}
