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 ManualRedactionWrapper implements Comparable<ManualRedactionWrapper> {

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


    @Override
    public int compareTo(ManualRedactionWrapper o) {

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

}
