class TransactionRepositoryOkHttpImpl extends AbstractRepositoryOkHttpImpl implements TransactionRepository {

  @Override
  public Observable<TransactionAnnounceResponse> announce(SignedTransaction signedTransaction) {

    Callable<AnnounceTransactionInfoDTO> callback =
        () ->
            getClient()
                .announceTransaction(
                    new TransactionPayload().payload(signedTransaction.getPayload()));
    return call(callback, dto -> new TransactionAnnounceResponse(dto.getMessage()));
  }

  public  TransactionRepositoryOkHttpImpl(ApiClient apiClient);

}