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;
}
Aggregations