congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Subscription.variables
Code IndexAdd Tabnine to your IDE (free)

How to use
variables
method
in
com.apollographql.apollo.api.Subscription

Best Java code snippets using com.apollographql.apollo.api.Subscription.variables (Showing top 2 results out of 315)

origin: apollographql/apollo-android

static String idForSubscription(Subscription<?, ?, ?> subscription) {
 return subscription.operationId() + "$" + subscription.variables().valueMap().hashCode();
}
origin: apollographql/apollo-android

 @Override public void writeToJson(@NotNull JsonWriter writer) throws IOException {
  checkNotNull(writer, "writer == null");
  writer.name(JSON_KEY_ID).value(subscriptionId);
  writer.name(JSON_KEY_TYPE).value(TYPE);
  writer.name(JSON_KEY_PAYLOAD).beginObject();
  writer.name(JSON_KEY_QUERY).value(subscription.queryDocument().replaceAll("\\n", ""));
  writer.name(JSON_KEY_VARIABLES).beginObject();
  subscription.variables().marshaller().marshal(new InputFieldJsonWriter(writer, scalarTypeAdapters));
  writer.endObject();
  writer.name(JSON_KEY_OPERATION_NAME).value(subscription.name().name());
  writer.endObject();
 }
}
com.apollographql.apollo.apiSubscriptionvariables

Popular methods of Subscription

  • name
  • operationId
  • queryDocument
  • responseFieldMapper

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Collectors (java.util.stream)
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now