package com.inspect.patrol.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.stream.Collectors;

@Setter
@Getter
public class LinkageAlarmNotifyEntity {
    private List<LinkageAlarmNotifyEntity.Item> items;

    public List toItemContentList() {
        return this.items.stream().map((item) -> item.content).collect(Collectors.toList());
    }

    @Setter
    @Getter
    public static class Item {
        private String content;

    }
}
