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

com.github.twitch4j.graphql.internal.CreateModeratorCommentMutation Maven / Gradle / Ivy

The newest version!
// AUTO-GENERATED FILE. DO NOT MODIFY.
//
// This class was automatically generated by Apollo GraphQL plugin from the GraphQL queries it found.
// It should not be modified by hand.
//
package com.github.twitch4j.graphql.internal;

import com.apollographql.apollo.api.Mutation;
import com.apollographql.apollo.api.Operation;
import com.apollographql.apollo.api.OperationName;
import com.apollographql.apollo.api.Response;
import com.apollographql.apollo.api.ResponseField;
import com.apollographql.apollo.api.ScalarTypeAdapters;
import com.apollographql.apollo.api.internal.InputFieldMarshaller;
import com.apollographql.apollo.api.internal.InputFieldWriter;
import com.apollographql.apollo.api.internal.OperationRequestBodyComposer;
import com.apollographql.apollo.api.internal.QueryDocumentMinifier;
import com.apollographql.apollo.api.internal.ResponseFieldMapper;
import com.apollographql.apollo.api.internal.ResponseFieldMarshaller;
import com.apollographql.apollo.api.internal.ResponseReader;
import com.apollographql.apollo.api.internal.ResponseWriter;
import com.apollographql.apollo.api.internal.SimpleOperationResponseParser;
import com.apollographql.apollo.api.internal.UnmodifiableMapBuilder;
import com.apollographql.apollo.api.internal.Utils;
import com.github.twitch4j.graphql.internal.type.CreateModeratorCommentInput;
import com.github.twitch4j.graphql.internal.type.CustomType;
import java.io.IOException;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
import okio.Buffer;
import okio.BufferedSource;
import okio.ByteString;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class CreateModeratorCommentMutation implements Mutation {
  public static final String OPERATION_ID = "0c80414da6153b9a5a6f1c5874339029d48b856a1b5edcc33a4d7639ed45d14f";

  public static final String QUERY_DOCUMENT = QueryDocumentMinifier.minify(
    "mutation createModeratorComment($createModeratorCommentInput: CreateModeratorCommentInput!) {\n"
        + "  createModeratorComment(input: $createModeratorCommentInput) {\n"
        + "    __typename\n"
        + "    comment {\n"
        + "      __typename\n"
        + "      id\n"
        + "      timestamp\n"
        + "      channel {\n"
        + "        __typename\n"
        + "        id\n"
        + "      }\n"
        + "      author {\n"
        + "        __typename\n"
        + "        id\n"
        + "        login\n"
        + "        displayName\n"
        + "        chatColor\n"
        + "      }\n"
        + "      details {\n"
        + "        __typename\n"
        + "        text\n"
        + "      }\n"
        + "    }\n"
        + "  }\n"
        + "}"
  );

  public static final OperationName OPERATION_NAME = new OperationName() {
    @Override
    public String name() {
      return "createModeratorComment";
    }
  };

  private final CreateModeratorCommentMutation.Variables variables;

  public CreateModeratorCommentMutation(@NotNull CreateModeratorCommentInput createModeratorCommentInput) {
    Utils.checkNotNull(createModeratorCommentInput, "createModeratorCommentInput == null");
    variables = new CreateModeratorCommentMutation.Variables(createModeratorCommentInput);
  }

  @Override
  public String operationId() {
    return OPERATION_ID;
  }

  @Override
  public String queryDocument() {
    return QUERY_DOCUMENT;
  }

  @Override
  public CreateModeratorCommentMutation.Data wrapData(CreateModeratorCommentMutation.Data data) {
    return data;
  }

  @Override
  public CreateModeratorCommentMutation.Variables variables() {
    return variables;
  }

  @Override
  public ResponseFieldMapper responseFieldMapper() {
    return new Data.Mapper();
  }

  public static Builder builder() {
    return new Builder();
  }

  @Override
  public OperationName name() {
    return OPERATION_NAME;
  }

  @Override
  @NotNull
  public Response parse(@NotNull final BufferedSource source,
      @NotNull final ScalarTypeAdapters scalarTypeAdapters) throws IOException {
    return SimpleOperationResponseParser.parse(source, this, scalarTypeAdapters);
  }

  @Override
  @NotNull
  public Response parse(@NotNull final ByteString byteString,
      @NotNull final ScalarTypeAdapters scalarTypeAdapters) throws IOException {
    return parse(new Buffer().write(byteString), scalarTypeAdapters);
  }

  @Override
  @NotNull
  public Response parse(@NotNull final BufferedSource source)
      throws IOException {
    return parse(source, ScalarTypeAdapters.DEFAULT);
  }

  @Override
  @NotNull
  public Response parse(@NotNull final ByteString byteString)
      throws IOException {
    return parse(byteString, ScalarTypeAdapters.DEFAULT);
  }

  @Override
  @NotNull
  public ByteString composeRequestBody(@NotNull final ScalarTypeAdapters scalarTypeAdapters) {
    return OperationRequestBodyComposer.compose(this, false, true, scalarTypeAdapters);
  }

  @NotNull
  @Override
  public ByteString composeRequestBody() {
    return OperationRequestBodyComposer.compose(this, false, true, ScalarTypeAdapters.DEFAULT);
  }

  @Override
  @NotNull
  public ByteString composeRequestBody(final boolean autoPersistQueries,
      final boolean withQueryDocument, @NotNull final ScalarTypeAdapters scalarTypeAdapters) {
    return OperationRequestBodyComposer.compose(this, autoPersistQueries, withQueryDocument, scalarTypeAdapters);
  }

  public static final class Builder {
    private @NotNull CreateModeratorCommentInput createModeratorCommentInput;

    Builder() {
    }

    public Builder createModeratorCommentInput(@NotNull CreateModeratorCommentInput createModeratorCommentInput) {
      this.createModeratorCommentInput = createModeratorCommentInput;
      return this;
    }

    public CreateModeratorCommentMutation build() {
      Utils.checkNotNull(createModeratorCommentInput, "createModeratorCommentInput == null");
      return new CreateModeratorCommentMutation(createModeratorCommentInput);
    }
  }

  public static final class Variables extends Operation.Variables {
    private final @NotNull CreateModeratorCommentInput createModeratorCommentInput;

    private final transient Map valueMap = new LinkedHashMap<>();

    Variables(@NotNull CreateModeratorCommentInput createModeratorCommentInput) {
      this.createModeratorCommentInput = createModeratorCommentInput;
      this.valueMap.put("createModeratorCommentInput", createModeratorCommentInput);
    }

    public @NotNull CreateModeratorCommentInput createModeratorCommentInput() {
      return createModeratorCommentInput;
    }

    @Override
    public Map valueMap() {
      return Collections.unmodifiableMap(valueMap);
    }

    @Override
    public InputFieldMarshaller marshaller() {
      return new InputFieldMarshaller() {
        @Override
        public void marshal(InputFieldWriter writer) throws IOException {
          writer.writeObject("createModeratorCommentInput", createModeratorCommentInput.marshaller());
        }
      };
    }
  }

  /**
   * Data from the response after executing this GraphQL operation
   */
  public static class Data implements Operation.Data {
    static final ResponseField[] $responseFields = {
      ResponseField.forObject("createModeratorComment", "createModeratorComment", new UnmodifiableMapBuilder(1)
      .put("input", new UnmodifiableMapBuilder(2)
        .put("kind", "Variable")
        .put("variableName", "createModeratorCommentInput")
        .build())
      .build(), true, Collections.emptyList())
    };

    final @Nullable CreateModeratorComment createModeratorComment;

    private transient volatile String $toString;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    public Data(@Nullable CreateModeratorComment createModeratorComment) {
      this.createModeratorComment = createModeratorComment;
    }

    /**
     * createModeratorComment creates and returns a comment on the target user in the given channel.
     * Requester must be a moderator or higher in the channel.
     */
    public @Nullable CreateModeratorComment createModeratorComment() {
      return this.createModeratorComment;
    }

    @SuppressWarnings({"rawtypes", "unchecked"})
    public ResponseFieldMarshaller marshaller() {
      return new ResponseFieldMarshaller() {
        @Override
        public void marshal(ResponseWriter writer) {
          writer.writeObject($responseFields[0], createModeratorComment != null ? createModeratorComment.marshaller() : null);
        }
      };
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "Data{"
          + "createModeratorComment=" + createModeratorComment
          + "}";
      }
      return $toString;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof Data) {
        Data that = (Data) o;
        return ((this.createModeratorComment == null) ? (that.createModeratorComment == null) : this.createModeratorComment.equals(that.createModeratorComment));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int h = 1;
        h *= 1000003;
        h ^= (createModeratorComment == null) ? 0 : createModeratorComment.hashCode();
        $hashCode = h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    public static final class Mapper implements ResponseFieldMapper {
      final CreateModeratorComment.Mapper createModeratorCommentFieldMapper = new CreateModeratorComment.Mapper();

      @Override
      public Data map(ResponseReader reader) {
        final CreateModeratorComment createModeratorComment = reader.readObject($responseFields[0], new ResponseReader.ObjectReader() {
          @Override
          public CreateModeratorComment read(ResponseReader reader) {
            return createModeratorCommentFieldMapper.map(reader);
          }
        });
        return new Data(createModeratorComment);
      }
    }
  }

  /**
   * Result of a createModeratorComment mutation.
   */
  public static class CreateModeratorComment {
    static final ResponseField[] $responseFields = {
      ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList()),
      ResponseField.forObject("comment", "comment", null, true, Collections.emptyList())
    };

    final @NotNull String __typename;

    final @Nullable Comment comment;

    private transient volatile String $toString;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    public CreateModeratorComment(@NotNull String __typename, @Nullable Comment comment) {
      this.__typename = Utils.checkNotNull(__typename, "__typename == null");
      this.comment = comment;
    }

    public @NotNull String __typename() {
      return this.__typename;
    }

    /**
     * The moderator comment created.
     */
    public @Nullable Comment comment() {
      return this.comment;
    }

    @SuppressWarnings({"rawtypes", "unchecked"})
    public ResponseFieldMarshaller marshaller() {
      return new ResponseFieldMarshaller() {
        @Override
        public void marshal(ResponseWriter writer) {
          writer.writeString($responseFields[0], __typename);
          writer.writeObject($responseFields[1], comment != null ? comment.marshaller() : null);
        }
      };
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "CreateModeratorComment{"
          + "__typename=" + __typename + ", "
          + "comment=" + comment
          + "}";
      }
      return $toString;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof CreateModeratorComment) {
        CreateModeratorComment that = (CreateModeratorComment) o;
        return this.__typename.equals(that.__typename)
         && ((this.comment == null) ? (that.comment == null) : this.comment.equals(that.comment));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int h = 1;
        h *= 1000003;
        h ^= __typename.hashCode();
        h *= 1000003;
        h ^= (comment == null) ? 0 : comment.hashCode();
        $hashCode = h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    public static final class Mapper implements ResponseFieldMapper {
      final Comment.Mapper commentFieldMapper = new Comment.Mapper();

      @Override
      public CreateModeratorComment map(ResponseReader reader) {
        final String __typename = reader.readString($responseFields[0]);
        final Comment comment = reader.readObject($responseFields[1], new ResponseReader.ObjectReader() {
          @Override
          public Comment read(ResponseReader reader) {
            return commentFieldMapper.map(reader);
          }
        });
        return new CreateModeratorComment(__typename, comment);
      }
    }
  }

  /**
   * ModLogsCommentsEntry defines an entry of a user's moderation history on a channel.
   */
  public static class Comment {
    static final ResponseField[] $responseFields = {
      ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList()),
      ResponseField.forCustomType("id", "id", null, false, CustomType.ID, Collections.emptyList()),
      ResponseField.forCustomType("timestamp", "timestamp", null, false, CustomType.TIME, Collections.emptyList()),
      ResponseField.forObject("channel", "channel", null, true, Collections.emptyList()),
      ResponseField.forObject("author", "author", null, true, Collections.emptyList()),
      ResponseField.forObject("details", "details", null, true, Collections.emptyList())
    };

    final @NotNull String __typename;

    final @NotNull String id;

    final @NotNull Object timestamp;

    final @Nullable Channel channel;

    final @Nullable Author author;

    final @Nullable Details details;

    private transient volatile String $toString;

    private transient volatile int $hashCode;

    private transient volatile boolean $hashCodeMemoized;

    public Comment(@NotNull String __typename, @NotNull String id, @NotNull Object timestamp,
        @Nullable Channel channel, @Nullable Author author, @Nullable Details details) {
      this.__typename = Utils.checkNotNull(__typename, "__typename == null");
      this.id = Utils.checkNotNull(id, "id == null");
      this.timestamp = Utils.checkNotNull(timestamp, "timestamp == null");
      this.channel = channel;
      this.author = author;
      this.details = details;
    }

    public @NotNull String __typename() {
      return this.__typename;
    }

    /**
     * UUID of the moderator comment.
     */
    public @NotNull String id() {
      return this.id;
    }

    /**
     * Timestamp when comment was created.
     */
    public @NotNull Object timestamp() {
      return this.timestamp;
    }

    /**
     * Channel is where the moderator comment was created.
     */
    public @Nullable Channel channel() {
      return this.channel;
    }

    /**
     * Author is the moderator that created the comment.
     */
    public @Nullable Author author() {
      return this.author;
    }

    /**
     * Details about the moderator comment.
     */
    public @Nullable Details details() {
      return this.details;
    }

    @SuppressWarnings({"rawtypes", "unchecked"})
    public ResponseFieldMarshaller marshaller() {
      return new ResponseFieldMarshaller() {
        @Override
        public void marshal(ResponseWriter writer) {
          writer.writeString($responseFields[0], __typename);
          writer.writeCustom((ResponseField.CustomTypeField) $responseFields[1], id);
          writer.writeCustom((ResponseField.CustomTypeField) $responseFields[2], timestamp);
          writer.writeObject($responseFields[3], channel != null ? channel.marshaller() : null);
          writer.writeObject($responseFields[4], author != null ? author.marshaller() : null);
          writer.writeObject($responseFields[5], details != null ? details.marshaller() : null);
        }
      };
    }

    @Override
    public String toString() {
      if ($toString == null) {
        $toString = "Comment{"
          + "__typename=" + __typename + ", "
          + "id=" + id + ", "
          + "timestamp=" + timestamp + ", "
          + "channel=" + channel + ", "
          + "author=" + author + ", "
          + "details=" + details
          + "}";
      }
      return $toString;
    }

    @Override
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }
      if (o instanceof Comment) {
        Comment that = (Comment) o;
        return this.__typename.equals(that.__typename)
         && this.id.equals(that.id)
         && this.timestamp.equals(that.timestamp)
         && ((this.channel == null) ? (that.channel == null) : this.channel.equals(that.channel))
         && ((this.author == null) ? (that.author == null) : this.author.equals(that.author))
         && ((this.details == null) ? (that.details == null) : this.details.equals(that.details));
      }
      return false;
    }

    @Override
    public int hashCode() {
      if (!$hashCodeMemoized) {
        int h = 1;
        h *= 1000003;
        h ^= __typename.hashCode();
        h *= 1000003;
        h ^= id.hashCode();
        h *= 1000003;
        h ^= timestamp.hashCode();
        h *= 1000003;
        h ^= (channel == null) ? 0 : channel.hashCode();
        h *= 1000003;
        h ^= (author == null) ? 0 : author.hashCode();
        h *= 1000003;
        h ^= (details == null) ? 0 : details.hashCode();
        $hashCode = h;
        $hashCodeMemoized = true;
      }
      return $hashCode;
    }

    public static final class Mapper implements ResponseFieldMapper {
      final Channel.Mapper channelFieldMapper = new Channel.Mapper();

      final Author.Mapper authorFieldMapper = new Author.Mapper();

      final Details.Mapper detailsFieldMapper = new Details.Mapper();

      @Override
      public Comment map(ResponseReader reader) {
        final String __typename = reader.readString($responseFields[0]);
        final String id = reader.readCustomType((ResponseField.CustomTypeField) $responseFields[1]);
        final Object timestamp = reader.readCustomType((ResponseField.CustomTypeField) $responseFields[2]);
        final Channel channel = reader.readObject($responseFields[3], new ResponseReader.ObjectReader() {
          @Override
          public Channel read(ResponseReader reader) {
            return channelFieldMapper.map(reader);
          }
        });
        final Author author = reader.readObject($responseFields[4], new ResponseReader.ObjectReader() {
          @Override
          public Author read(ResponseReader reader) {
            return authorFieldMapper.map(reader);
          }
        });
        final Details details = reader.readObject($responseFields[5], new ResponseReader.ObjectReader
() { @Override public Details read(ResponseReader reader) { return detailsFieldMapper.map(reader); } }); return new Comment(__typename, id, timestamp, channel, author, details); } } } /** * Twitch user. */ public static class Channel { static final ResponseField[] $responseFields = { ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList()), ResponseField.forCustomType("id", "id", null, false, CustomType.ID, Collections.emptyList()) }; final @NotNull String __typename; final @NotNull String id; private transient volatile String $toString; private transient volatile int $hashCode; private transient volatile boolean $hashCodeMemoized; public Channel(@NotNull String __typename, @NotNull String id) { this.__typename = Utils.checkNotNull(__typename, "__typename == null"); this.id = Utils.checkNotNull(id, "id == null"); } public @NotNull String __typename() { return this.__typename; } /** * The user's unique identifier. */ public @NotNull String id() { return this.id; } @SuppressWarnings({"rawtypes", "unchecked"}) public ResponseFieldMarshaller marshaller() { return new ResponseFieldMarshaller() { @Override public void marshal(ResponseWriter writer) { writer.writeString($responseFields[0], __typename); writer.writeCustom((ResponseField.CustomTypeField) $responseFields[1], id); } }; } @Override public String toString() { if ($toString == null) { $toString = "Channel{" + "__typename=" + __typename + ", " + "id=" + id + "}"; } return $toString; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof Channel) { Channel that = (Channel) o; return this.__typename.equals(that.__typename) && this.id.equals(that.id); } return false; } @Override public int hashCode() { if (!$hashCodeMemoized) { int h = 1; h *= 1000003; h ^= __typename.hashCode(); h *= 1000003; h ^= id.hashCode(); $hashCode = h; $hashCodeMemoized = true; } return $hashCode; } public static final class Mapper implements ResponseFieldMapper { @Override public Channel map(ResponseReader reader) { final String __typename = reader.readString($responseFields[0]); final String id = reader.readCustomType((ResponseField.CustomTypeField) $responseFields[1]); return new Channel(__typename, id); } } } /** * Twitch user. */ public static class Author { static final ResponseField[] $responseFields = { ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList()), ResponseField.forCustomType("id", "id", null, false, CustomType.ID, Collections.emptyList()), ResponseField.forString("login", "login", null, false, Collections.emptyList()), ResponseField.forString("displayName", "displayName", null, false, Collections.emptyList()), ResponseField.forString("chatColor", "chatColor", null, true, Collections.emptyList()) }; final @NotNull String __typename; final @NotNull String id; final @NotNull String login; final @NotNull String displayName; final @Nullable String chatColor; private transient volatile String $toString; private transient volatile int $hashCode; private transient volatile boolean $hashCodeMemoized; public Author(@NotNull String __typename, @NotNull String id, @NotNull String login, @NotNull String displayName, @Nullable String chatColor) { this.__typename = Utils.checkNotNull(__typename, "__typename == null"); this.id = Utils.checkNotNull(id, "id == null"); this.login = Utils.checkNotNull(login, "login == null"); this.displayName = Utils.checkNotNull(displayName, "displayName == null"); this.chatColor = chatColor; } public @NotNull String __typename() { return this.__typename; } /** * The user's unique identifier. */ public @NotNull String id() { return this.id; } /** * The user's standard alphanumeric Twitch name. */ public @NotNull String login() { return this.login; } /** * A user-styled version of their login. * For international users, this could be the user's login with localized characters. */ public @NotNull String displayName() { return this.displayName; } /** * Hex color of the user's name in chat, e.g. "#ccaa44". */ public @Nullable String chatColor() { return this.chatColor; } @SuppressWarnings({"rawtypes", "unchecked"}) public ResponseFieldMarshaller marshaller() { return new ResponseFieldMarshaller() { @Override public void marshal(ResponseWriter writer) { writer.writeString($responseFields[0], __typename); writer.writeCustom((ResponseField.CustomTypeField) $responseFields[1], id); writer.writeString($responseFields[2], login); writer.writeString($responseFields[3], displayName); writer.writeString($responseFields[4], chatColor); } }; } @Override public String toString() { if ($toString == null) { $toString = "Author{" + "__typename=" + __typename + ", " + "id=" + id + ", " + "login=" + login + ", " + "displayName=" + displayName + ", " + "chatColor=" + chatColor + "}"; } return $toString; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof Author) { Author that = (Author) o; return this.__typename.equals(that.__typename) && this.id.equals(that.id) && this.login.equals(that.login) && this.displayName.equals(that.displayName) && ((this.chatColor == null) ? (that.chatColor == null) : this.chatColor.equals(that.chatColor)); } return false; } @Override public int hashCode() { if (!$hashCodeMemoized) { int h = 1; h *= 1000003; h ^= __typename.hashCode(); h *= 1000003; h ^= id.hashCode(); h *= 1000003; h ^= login.hashCode(); h *= 1000003; h ^= displayName.hashCode(); h *= 1000003; h ^= (chatColor == null) ? 0 : chatColor.hashCode(); $hashCode = h; $hashCodeMemoized = true; } return $hashCode; } public static final class Mapper implements ResponseFieldMapper { @Override public Author map(ResponseReader reader) { final String __typename = reader.readString($responseFields[0]); final String id = reader.readCustomType((ResponseField.CustomTypeField) $responseFields[1]); final String login = reader.readString($responseFields[2]); final String displayName = reader.readString($responseFields[3]); final String chatColor = reader.readString($responseFields[4]); return new Author(__typename, id, login, displayName, chatColor); } } } /** * ModLogsCommentDetails contains the details of a moderator comment. */ public static class Details { static final ResponseField[] $responseFields = { ResponseField.forString("__typename", "__typename", null, false, Collections.emptyList()), ResponseField.forString("text", "text", null, true, Collections.emptyList()) }; final @NotNull String __typename; final @Nullable String text; private transient volatile String $toString; private transient volatile int $hashCode; private transient volatile boolean $hashCodeMemoized; public Details(@NotNull String __typename, @Nullable String text) { this.__typename = Utils.checkNotNull(__typename, "__typename == null"); this.text = text; } public @NotNull String __typename() { return this.__typename; } /** * Body of the comment. */ public @Nullable String text() { return this.text; } @SuppressWarnings({"rawtypes", "unchecked"}) public ResponseFieldMarshaller marshaller() { return new ResponseFieldMarshaller() { @Override public void marshal(ResponseWriter writer) { writer.writeString($responseFields[0], __typename); writer.writeString($responseFields[1], text); } }; } @Override public String toString() { if ($toString == null) { $toString = "Details{" + "__typename=" + __typename + ", " + "text=" + text + "}"; } return $toString; } @Override public boolean equals(Object o) { if (o == this) { return true; } if (o instanceof Details) { Details that = (Details) o; return this.__typename.equals(that.__typename) && ((this.text == null) ? (that.text == null) : this.text.equals(that.text)); } return false; } @Override public int hashCode() { if (!$hashCodeMemoized) { int h = 1; h *= 1000003; h ^= __typename.hashCode(); h *= 1000003; h ^= (text == null) ? 0 : text.hashCode(); $hashCode = h; $hashCodeMemoized = true; } return $hashCode; } public static final class Mapper implements ResponseFieldMapper
{ @Override public Details map(ResponseReader reader) { final String __typename = reader.readString($responseFields[0]); final String text = reader.readString($responseFields[1]); return new Details(__typename, text); } } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy