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

commonMain.it.unibo.alchemist.boundary.graphql.client.PauseSimulationMutation.kt Maven / Gradle / Ivy

There is a newer version: 34.1.4
Show newest version
//
// AUTO-GENERATED FILE. DO NOT MODIFY.
//
// This class was automatically generated by Apollo GraphQL version '4.0.0-beta.7'.
//
package it.unibo.alchemist.boundary.graphql.client

import com.apollographql.apollo3.annotations.ApolloAdaptableWith
import com.apollographql.apollo3.api.Adapter
import com.apollographql.apollo3.api.CompiledField
import com.apollographql.apollo3.api.CustomScalarAdapters
import com.apollographql.apollo3.api.Mutation
import com.apollographql.apollo3.api.json.JsonWriter
import com.apollographql.apollo3.api.obj
import it.unibo.alchemist.boundary.graphql.client.adapter.PauseSimulationMutation_ResponseAdapter
import it.unibo.alchemist.boundary.graphql.client.selections.PauseSimulationMutationSelections
import kotlin.Any
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import it.unibo.alchemist.boundary.graphql.client.type.Mutation as CompiledMutation

public class PauseSimulationMutation() : Mutation {
  override val ignoreErrors: Boolean = false

  override fun equals(other: Any?): Boolean = other != null && other::class == this::class

  override fun hashCode(): Int = this::class.hashCode()

  override fun id(): String = OPERATION_ID

  override fun document(): String = OPERATION_DOCUMENT

  override fun name(): String = OPERATION_NAME

  override fun serializeVariables(
    writer: JsonWriter,
    customScalarAdapters: CustomScalarAdapters,
    withDefaultValues: Boolean,
  ) {
    // This operation doesn't have any variable
  }

  override fun adapter(): Adapter = PauseSimulationMutation_ResponseAdapter.Data.obj()

  override fun rootField(): CompiledField = CompiledField.Builder(
    name = "data",
    type = CompiledMutation.type
  )
  .selections(selections = PauseSimulationMutationSelections.__root)
  .build()

  @ApolloAdaptableWith(PauseSimulationMutation_ResponseAdapter.Data::class)
  public data class Data(
    /**
     * Pause the simulation
     */
    public val pause: String,
  ) : Mutation.Data

  public companion object {
    public const val OPERATION_ID: String =
        "80e9e064d0812e6d09c71249a324a8ddd5c6ca1fe10f75d03f4324aa1c5b2e7d"

    /**
     * The minimized GraphQL document being sent to the server to save a few bytes.
     * The un-minimized version is:
     *
     * ```
     * mutation PauseSimulation {
     *   pause
     * }
     * ```
     */
    public val OPERATION_DOCUMENT: String
      get() = "mutation PauseSimulation { pause }"

    public const val OPERATION_NAME: String = "PauseSimulation"
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy