package ru.soune.nocopy.dto.tokenoperation;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;
import ru.soune.nocopy.entity.tokenoperation.TokenOperation;

import java.util.List;

@Data
@Builder
public class TokenOperationPageDto {

    @JsonProperty("content")
    private List<TokenOperation> content;

    @JsonProperty("page_number")
    private int pageNumber;

    @JsonProperty("page_size")
    private int pageSize;

    @JsonProperty("total_elements")
    private long totalElements;

    @JsonProperty("total_pages")
    private int totalPages;

    @JsonProperty("is_last")
    private boolean last;

    @JsonProperty("is_first")
    private boolean first;
}
