core.src.api.NamedEventResource.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web3j-openapi-codegen Show documentation
Show all versions of web3j-openapi-codegen Show documentation
web3j-openapi project code generators
package {{packageName}}.core.{{contractName}}.events
{{#modelImports}}
{{import}}
{{/modelImports}}
import io.swagger.v3.oas.annotations.Operation
import org.web3j.openapi.core.EventResource
import java.util.concurrent.CompletableFuture
import javax.annotation.processing.Generated
import javax.ws.rs.POST
import javax.ws.rs.Produces
import javax.ws.rs.core.MediaType
@Generated
interface {{eventName}}EventResource : EventResource<{{eventName}}EventResponse> {
@POST
@Produces(MediaType.APPLICATION_JSON)
@Operation(
tags = ["{{contractNameCap}} Events"],
summary = "Get the {{eventName}} event"
)
override fun findBy(transactionReceiptModel: org.web3j.openapi.core.models.TransactionReceiptModel):
List<{{eventName}}EventResponse>
override fun onEvent(onEvent: ({{eventName}}EventResponse) -> Unit): CompletableFuture =
CompletableFuture.completedFuture(null)
}