All Downloads are FREE. Search and download functionalities are using the official Maven repository.

core.src.api.NamedEventResource.mustache Maven / Gradle / Ivy

There is a newer version: 4.8.4
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy