package com.iqser.red.service.persistence.service.v1.api.shared.model.manual;

import java.time.OffsetDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class ManualRedactionWrapperModel implements Comparable<ManualRedactionWrapperModel> {

    private String id;
    private OffsetDateTime date;
    private Object item;


    @Override
    public int compareTo(ManualRedactionWrapperModel o) {

        // Descending
        return o.date.compareTo(this.date);
    }

}
