package com.discord.models.domain; import c.d.b.a.a; import com.discord.models.domain.Model; import d0.z.d.m; import kotlin.jvm.internal.Ref$LongRef; import kotlin.jvm.internal.Ref$ObjectRef; /* compiled from: ModelUserNote.kt */ public final class ModelUserNote { private final String note; private final long noteUserId; /* compiled from: ModelUserNote.kt */ public static final class Update { /* renamed from: id reason: collision with root package name */ private final long f2157id; private final String note; /* compiled from: ModelUserNote.kt */ public static final class Parser implements Model.Parser { public static final Parser INSTANCE = new Parser(); private Parser() { } @Override // com.discord.models.domain.Model.Parser public Update parse(Model.JsonReader jsonReader) { m.checkNotNullParameter(jsonReader, "reader"); Ref$LongRef ref$LongRef = new Ref$LongRef(); ref$LongRef.element = 0; Ref$ObjectRef ref$ObjectRef = new Ref$ObjectRef(); ref$ObjectRef.element = ""; jsonReader.nextObject(new ModelUserNote$Update$Parser$parse$1(ref$LongRef, jsonReader, ref$ObjectRef)); return new Update(ref$LongRef.element, ref$ObjectRef.element); } } public Update(long j, String str) { m.checkNotNullParameter(str, "note"); this.f2157id = j; this.note = str; } public static /* synthetic */ Update copy$default(Update update, long j, String str, int i, Object obj) { if ((i & 1) != 0) { j = update.f2157id; } if ((i & 2) != 0) { str = update.note; } return update.copy(j, str); } public final long component1() { return this.f2157id; } public final String component2() { return this.note; } public final Update copy(long j, String str) { m.checkNotNullParameter(str, "note"); return new Update(j, str); } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof Update)) { return false; } Update update = (Update) obj; return this.f2157id == update.f2157id && m.areEqual(this.note, update.note); } public final long getId() { return this.f2157id; } public final String getNote() { return this.note; } public int hashCode() { long j = this.f2157id; int i = ((int) (j ^ (j >>> 32))) * 31; String str = this.note; return i + (str != null ? str.hashCode() : 0); } public String toString() { StringBuilder R = a.R("Update(id="); R.append(this.f2157id); R.append(", note="); return a.H(R, this.note, ")"); } } public ModelUserNote(long j, String str) { this.noteUserId = j; this.note = str; } public static /* synthetic */ ModelUserNote copy$default(ModelUserNote modelUserNote, long j, String str, int i, Object obj) { if ((i & 1) != 0) { j = modelUserNote.noteUserId; } if ((i & 2) != 0) { str = modelUserNote.note; } return modelUserNote.copy(j, str); } public final long component1() { return this.noteUserId; } public final String component2() { return this.note; } public final ModelUserNote copy(long j, String str) { return new ModelUserNote(j, str); } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof ModelUserNote)) { return false; } ModelUserNote modelUserNote = (ModelUserNote) obj; return this.noteUserId == modelUserNote.noteUserId && m.areEqual(this.note, modelUserNote.note); } public final String getNote() { return this.note; } public final long getNoteUserId() { return this.noteUserId; } public int hashCode() { long j = this.noteUserId; int i = ((int) (j ^ (j >>> 32))) * 31; String str = this.note; return i + (str != null ? str.hashCode() : 0); } public String toString() { StringBuilder R = a.R("ModelUserNote(noteUserId="); R.append(this.noteUserId); R.append(", note="); return a.H(R, this.note, ")"); } }