package p2; import android.util.JsonReader; import android.util.JsonToken; import java.io.IOException; import java.io.Reader; /* loaded from: classes.dex */ public abstract class n { static n a(long j10) { return new h(j10); } public static n b(Reader reader) { JsonReader jsonReader = new JsonReader(reader); try { jsonReader.beginObject(); while (jsonReader.hasNext()) { if (jsonReader.nextName().equals("nextRequestWaitMillis")) { return jsonReader.peek() == JsonToken.STRING ? a(Long.parseLong(jsonReader.nextString())) : a(jsonReader.nextLong()); } jsonReader.skipValue(); } throw new IOException("Response is missing nextRequestWaitMillis field."); } finally { jsonReader.close(); } } public abstract long c(); }