Search in sources :

Example 1 with Pagination

use of io.nem.symbol.sdk.openapi.vertx.model.Pagination in project nem2-sdk-java by nemtech.

the class MetadataRepositoryVertxImplTest method getMetadataEntriesDTO.

private MetadataPage getMetadataEntriesDTO() {
    MetadataPage metadataPage = new MetadataPage();
    metadataPage.setPagination(new Pagination().pageNumber(1).pageSize(2));
    List<MetadataInfoDTO> data = new ArrayList<>();
    data.add(createMetadataDto(ConvertUtils.toSize16Hex(BigInteger.valueOf(10)), MetadataTypeEnum.NUMBER_0, null));
    data.add(createMetadataDto(ConvertUtils.toSize16Hex(BigInteger.valueOf(20)), MetadataTypeEnum.NUMBER_1, "11111"));
    data.add(createMetadataDto(ConvertUtils.toSize16Hex(BigInteger.valueOf(30)), MetadataTypeEnum.NUMBER_2, "22222"));
    metadataPage.setData(data);
    return metadataPage;
}
Also used : MetadataPage(io.nem.symbol.sdk.openapi.vertx.model.MetadataPage) Pagination(io.nem.symbol.sdk.openapi.vertx.model.Pagination) ArrayList(java.util.ArrayList) MetadataInfoDTO(io.nem.symbol.sdk.openapi.vertx.model.MetadataInfoDTO)

Aggregations

MetadataInfoDTO (io.nem.symbol.sdk.openapi.vertx.model.MetadataInfoDTO)1 MetadataPage (io.nem.symbol.sdk.openapi.vertx.model.MetadataPage)1 Pagination (io.nem.symbol.sdk.openapi.vertx.model.Pagination)1 ArrayList (java.util.ArrayList)1