package com.alterdekim.game.controller.result.async;

import com.alterdekim.game.entity.PhoneMessage;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@JsonRootName(value = "phone")
public class PhoneMessages {
    @JacksonXmlProperty(localName = "messages")
    @JacksonXmlElementWrapper(useWrapping = true, localName = "messages")
    private List<PhoneMessage> messages;
}
