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

commonMain.it.unibo.alchemist.boundary.graphql.client.ConcentrationSubscription.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.Subscription
import com.apollographql.apollo3.api.json.JsonWriter
import com.apollographql.apollo3.api.obj
import it.unibo.alchemist.boundary.graphql.client.adapter.ConcentrationSubscription_ResponseAdapter
import it.unibo.alchemist.boundary.graphql.client.adapter.ConcentrationSubscription_VariablesAdapter
import it.unibo.alchemist.boundary.graphql.client.selections.ConcentrationSubscriptionSelections
import kotlin.Boolean
import kotlin.Double
import kotlin.String
import kotlin.collections.List
import it.unibo.alchemist.boundary.graphql.client.type.Subscription as CompiledSubscription

public data class ConcentrationSubscription(
  public val moleculeName: String,
) : Subscription {
  override val ignoreErrors: Boolean = false

  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,
  ) {
    ConcentrationSubscription_VariablesAdapter.serializeVariables(writer, this,
        customScalarAdapters, withDefaultValues)
  }

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

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

  @ApolloAdaptableWith(ConcentrationSubscription_ResponseAdapter.Data::class)
  public data class Data(
    /**
     * The simulation
     */
    public val simulation: Simulation,
  ) : Subscription.Data

  public data class Simulation(
    /**
     * The time of the simulation
     */
    public val time: Double,
    /**
     * The environment of the simulation
     */
    public val environment: Environment,
  )

  public data class Environment(
    /**
     * The nodes in this environment
     */
    public val nodes: List,
  )

  public data class Node(
    /**
     * The concentration of the given molecule
     */
    public val getConcentration: String?,
  )

  public companion object {
    public const val OPERATION_ID: String =
        "5d55a741f11f95e418d2d5a6a83df559b6602096826234c8045e472acba2582c"

    /**
     * The minimized GraphQL document being sent to the server to save a few bytes.
     * The un-minimized version is:
     *
     * ```
     * subscription ConcentrationSubscription($moleculeName: String!) {
     *   simulation {
     *     time
     *     environment {
     *       nodes {
     *         getConcentration(molecule: {
     *           name: $moleculeName
     *         }
     *         )
     *       }
     *     }
     *   }
     * }
     * ```
     */
    public val OPERATION_DOCUMENT: String
      get() =
          "subscription ConcentrationSubscription(${'$'}moleculeName: String!) { simulation { time environment { nodes { getConcentration(molecule: { name: ${'$'}moleculeName } ) } } } }"

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy