package com.overlook.android.fing.engine.j.a.e; import com.overlook.android.fing.engine.model.contacts.Contact; import com.overlook.android.fing.engine.model.net.HardwareAddress; import com.overlook.android.fing.engine.model.net.Node; import com.overlook.android.fing.engine.model.net.g; import com.overlook.android.fing.engine.model.speedtest.InternetSpeedServer; import com.overlook.android.fing.engine.model.speedtest.IstAnalysis; import com.overlook.android.fing.engine.model.speedtest.IstAnalysisOutage; import com.overlook.android.fing.engine.model.speedtest.IstAnalysisSample; import com.overlook.android.fing.engine.services.agent.fingbox.digitalfence.DigitalFenceFilter; import com.overlook.android.fing.engine.services.agent.fingbox.digitalfence.DigitalFenceRunner; import com.overlook.android.fing.engine.services.agent.hsp.HailstormApiException; import com.overlook.android.fing.engine.services.agent.hsp.a; import com.overlook.android.fing.engine.services.htc.PortMapping; import e.f.a.a.a.c1; import e.f.a.a.a.c3; import e.f.a.a.a.c5; import e.f.a.a.a.d1; import e.f.a.a.a.d3; import e.f.a.a.a.d5; import e.f.a.a.a.e3; import e.f.a.a.a.e5; import e.f.a.a.a.e8; import e.f.a.a.a.f3; import e.f.a.a.a.f5; import e.f.a.a.a.g3; import e.f.a.a.a.g4; import e.f.a.a.a.g5; import e.f.a.a.a.h1; import e.f.a.a.a.h3; import e.f.a.a.a.h4; import e.f.a.a.a.h5; import e.f.a.a.a.i3; import e.f.a.a.a.i4; import e.f.a.a.a.j3; import e.f.a.a.a.j4; import e.f.a.a.a.k3; import e.f.a.a.a.k4; import e.f.a.a.a.k5; import e.f.a.a.a.l2; import e.f.a.a.a.l3; import e.f.a.a.a.l4; import e.f.a.a.a.l5; import e.f.a.a.a.m2; import e.f.a.a.a.m3; import e.f.a.a.a.m5; import e.f.a.a.a.n2; import e.f.a.a.a.n3; import e.f.a.a.a.n4; import e.f.a.a.a.n5; import e.f.a.a.a.o2; import e.f.a.a.a.o4; import e.f.a.a.a.o5; import e.f.a.a.a.p2; import e.f.a.a.a.p4; import e.f.a.a.a.p5; import e.f.a.a.a.q2; import e.f.a.a.a.q5; import e.f.a.a.a.r2; import e.f.a.a.a.r5; import e.f.a.a.a.s1; import e.f.a.a.a.s4; import e.f.a.a.a.s7; import e.f.a.a.a.t2; import e.f.a.a.a.t4; import e.f.a.a.a.u2; import e.f.a.a.a.u5; import e.f.a.a.a.u7; import e.f.a.a.a.u9; import e.f.a.a.a.v5; import e.f.a.a.a.w2; import e.f.a.a.a.w3; import e.f.a.a.a.w4; import e.f.a.a.a.x2; import e.f.a.a.a.x3; import e.f.a.a.a.x4; import e.f.a.a.a.y2; import e.f.a.a.a.z2; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.Iterator; import java.util.List; import java.util.TimeZone; /* compiled from: FingboxApiClient */ public class p extends com.overlook.android.fing.engine.services.agent.hsp.a { /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class a implements a.AbstractC0154a<r5> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14854a; final /* synthetic */ Contact b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ List f14855c; /* renamed from: d reason: collision with root package name */ final /* synthetic */ List f14856d; a(p pVar, String str, Contact contact, List list, List list2) { this.f14854a = str; this.b = contact; this.f14855c = list; this.f14856d = list2; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { q5.b f0 = q5.f0(); f0.G(this.f14854a); f0.J(q5.c.PUT_CONTACT); f0.H(this.b.g()); f0.I(u9.a(this.b)); for (HardwareAddress hardwareAddress : this.f14855c) { f0.z(com.google.protobuf.d.i(hardwareAddress.k())); } for (HardwareAddress hardwareAddress2 : this.f14856d) { f0.A(com.google.protobuf.d.i(hardwareAddress2.k())); } bVar.N0(f0); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public r5 b(s4 s4Var) { if (s4Var.F4()) { return s4Var.Y2(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class a0 implements a.AbstractC0154a<x3> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14857a; final /* synthetic */ d1 b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ com.overlook.android.fing.engine.model.net.p f14858c; /* renamed from: d reason: collision with root package name */ final /* synthetic */ boolean f14859d; /* renamed from: e reason: collision with root package name */ final /* synthetic */ List f14860e; /* renamed from: f reason: collision with root package name */ final /* synthetic */ List f14861f; /* renamed from: g reason: collision with root package name */ final /* synthetic */ List f14862g; a0(p pVar, String str, d1 d1Var, com.overlook.android.fing.engine.model.net.p pVar2, boolean z, List list, List list2, List list3) { this.f14857a = str; this.b = d1Var; this.f14858c = pVar2; this.f14859d = z; this.f14860e = list; this.f14861f = list2; this.f14862g = list3; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { w3.b i0 = w3.i0(); i0.I(this.f14857a); i0.J(((c1) this.b).e(this.f14858c)); i0.K(this.f14859d); for (Node node : this.f14860e) { e8 I = u9.I(node); if (I != null) { i0.z(I); } } for (Node node2 : this.f14861f) { e8 I2 = u9.I(node2); if (I2 != null) { i0.A(I2); } } for (Node node3 : this.f14862g) { e8 I3 = u9.I(node3); if (I3 != null) { i0.B(I3); } } bVar.A0(i0); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public x3 b(s4 s4Var) { if (s4Var.Q3()) { return s4Var.i2(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class b implements a.AbstractC0154a<r5> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14863a; final /* synthetic */ String b; b(p pVar, String str, String str2) { this.f14863a = str; this.b = str2; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { q5.b f0 = q5.f0(); f0.G(this.f14863a); f0.J(q5.c.REMOVE_CONTACT); f0.H(this.b); bVar.N0(f0); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public r5 b(s4 s4Var) { if (s4Var.F4()) { return s4Var.Y2(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class b0 implements a.AbstractC0154a<x3> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14864a; final /* synthetic */ List b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ List f14865c; /* renamed from: d reason: collision with root package name */ final /* synthetic */ List f14866d; b0(p pVar, String str, List list, List list2, List list3) { this.f14864a = str; this.b = list; this.f14865c = list2; this.f14866d = list3; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { w3.b i0 = w3.i0(); i0.I(this.f14864a); for (Node node : this.b) { e8 I = u9.I(node); if (I != null) { i0.z(I); } } for (Node node2 : this.f14865c) { e8 I2 = u9.I(node2); if (I2 != null) { i0.A(I2); } } for (Node node3 : this.f14866d) { e8 I3 = u9.I(node3); if (I3 != null) { i0.B(I3); } } bVar.A0(i0); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public x3 b(s4 s4Var) { if (s4Var.Q3()) { return s4Var.i2(); } return null; } } /* compiled from: FingboxApiClient */ class c implements a.AbstractC0154a<j4> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14867a; final /* synthetic */ String b; c(p pVar, String str, String str2) { this.f14867a = str; this.b = str2; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { i4.b W = i4.W(); W.C(this.f14867a); W.D(this.b); bVar.C0(W); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public j4 b(s4 s4Var) { if (s4Var.c4()) { return s4Var.u2(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class c0 implements a.AbstractC0154a<f5> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14868a; final /* synthetic */ long b; c0(p pVar, String str, long j) { this.f14868a = str; this.b = j; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { e5.b W = e5.W(); W.C(this.f14868a); W.D(this.b); bVar.I0(W); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public f5 b(s4 s4Var) { if (s4Var.t4()) { return s4Var.M2(); } return null; } } /* compiled from: FingboxApiClient */ class d implements a.AbstractC0154a<l4> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14869a; final /* synthetic */ long b; d(p pVar, String str, long j) { this.f14869a = str; this.b = j; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { k4.b T = k4.T(); T.C(this.f14869a); T.D(this.b); bVar.D0(T); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public l4 b(s4 s4Var) { if (s4Var.e4()) { return s4Var.w2(); } return null; } } /* compiled from: FingboxApiClient */ class e implements a.AbstractC0154a<h4> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14870a; final /* synthetic */ long b; e(p pVar, String str, long j) { this.f14870a = str; this.b = j; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { g4.b T = g4.T(); T.C(this.f14870a); T.D(this.b); bVar.B0(T); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public h4 b(s4 s4Var) { if (s4Var.a4()) { return s4Var.s2(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class f implements a.AbstractC0154a<l3> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14871a; final /* synthetic */ String b; f(p pVar, String str, String str2) { this.f14871a = str; this.b = str2; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { k3.b T = k3.T(); T.C(this.f14871a); T.D(this.b); bVar.y0(T); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public l3 b(s4 s4Var) { if (s4Var.E3()) { return s4Var.W1(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class g implements a.AbstractC0154a<n3> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14872a; final /* synthetic */ long b; g(p pVar, String str, long j) { this.f14872a = str; this.b = j; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { m3.b T = m3.T(); T.C(this.f14872a); T.D(this.b); bVar.z0(T); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public n3 b(s4 s4Var) { if (s4Var.G3()) { return s4Var.Y1(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class h implements a.AbstractC0154a<j3> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14873a; final /* synthetic */ long b; h(p pVar, String str, long j) { this.f14873a = str; this.b = j; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { i3.b T = i3.T(); T.C(this.f14873a); T.D(this.b); bVar.x0(T); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public j3 b(s4 s4Var) { if (s4Var.C3()) { return s4Var.U1(); } return null; } } /* compiled from: FingboxApiClient */ class i implements a.AbstractC0154a<x2> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14874a; final /* synthetic */ String b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ DigitalFenceFilter f14875c; i(p pVar, String str, String str2, DigitalFenceFilter digitalFenceFilter) { this.f14874a = str; this.b = str2; this.f14875c = digitalFenceFilter; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { w2.b W = w2.W(); W.C(this.f14874a); W.D(this.b); DigitalFenceFilter digitalFenceFilter = this.f14875c; if (digitalFenceFilter != null) { W.E(u9.O(digitalFenceFilter)); } bVar.s0(W); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public x2 b(s4 s4Var) { if (s4Var.q3()) { return s4Var.I1(); } return null; } } /* compiled from: FingboxApiClient */ class j implements a.AbstractC0154a<u2> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14876a; final /* synthetic */ long b; j(p pVar, String str, long j) { this.f14876a = str; this.b = j; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { t2.b T = t2.T(); T.C(this.f14876a); T.D(this.b); bVar.r0(T); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public u2 b(s4 s4Var) { if (s4Var.o3()) { return s4Var.G1(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class k implements a.AbstractC0154a<d5> { k(p pVar) { } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { bVar.G0(c5.J()); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public d5 b(s4 s4Var) { if (s4Var.r4()) { return s4Var.K2(); } return null; } } /* compiled from: FingboxApiClient */ class l implements a.AbstractC0154a<p2> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14877a; final /* synthetic */ DigitalFenceRunner.RadioDevice b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ String f14878c; l(p pVar, String str, DigitalFenceRunner.RadioDevice radioDevice, String str2) { this.f14877a = str; this.b = radioDevice; this.f14878c = str2; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { o2.b a0 = o2.a0(); a0.D(this.f14877a); a0.C(u9.n(this.b.e())); a0.F(u9.P(this.b)); String str = this.f14878c; if (str != null) { a0.E(str); } bVar.p0(a0); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public p2 b(s4 s4Var) { if (s4Var.k3()) { return s4Var.C1(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class m implements a.AbstractC0154a<r2> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14879a; final /* synthetic */ String b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ List f14880c; m(p pVar, String str, String str2, List list) { this.f14879a = str; this.b = str2; this.f14880c = list; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { q2.b Y = q2.Y(); Y.E(this.f14879a); Y.F(this.b); for (HardwareAddress hardwareAddress : this.f14880c) { Y.z(u9.n(hardwareAddress)); } bVar.q0(Y); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public r2 b(s4 s4Var) { if (s4Var.m3()) { return s4Var.E1(); } return null; } } /* compiled from: FingboxApiClient */ class n implements a.AbstractC0154a<f3> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14881a; final /* synthetic */ String b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ List f14882c; n(p pVar, String str, String str2, List list) { this.f14881a = str; this.b = str2; this.f14882c = list; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { e3.b V = e3.V(); V.E(this.f14881a); V.F(this.b); for (HardwareAddress hardwareAddress : this.f14882c) { e8.b V2 = e8.V2(); V2.j0(u9.n(hardwareAddress)); V.z(V2); } bVar.v0(V); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public f3 b(s4 s4Var) { if (s4Var.y3()) { return s4Var.Q1(); } return null; } } /* compiled from: FingboxApiClient */ class o implements a.AbstractC0154a<h3> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14883a; final /* synthetic */ long b; o(p pVar, String str, long j) { this.f14883a = str; this.b = j; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { g3.b T = g3.T(); T.C(this.f14883a); T.D(this.b); bVar.w0(T); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public h3 b(s4 s4Var) { if (s4Var.A3()) { return s4Var.S1(); } return null; } } /* renamed from: com.overlook.android.fing.engine.j.a.e.p$p reason: collision with other inner class name */ /* compiled from: FingboxApiClient */ class C0143p implements a.AbstractC0154a<d3> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14884a; final /* synthetic */ long b; C0143p(p pVar, String str, long j) { this.f14884a = str; this.b = j; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { c3.b T = c3.T(); T.C(this.f14884a); T.D(this.b); bVar.u0(T); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public d3 b(s4 s4Var) { if (s4Var.w3()) { return s4Var.O1(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class q implements a.AbstractC0154a<l5> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14885a; final /* synthetic */ int b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ int f14886c; /* renamed from: d reason: collision with root package name */ final /* synthetic */ String f14887d; /* renamed from: e reason: collision with root package name */ final /* synthetic */ String f14888e; q(p pVar, String str, int i2, int i3, String str2, String str3) { this.f14885a = str; this.b = i2; this.f14886c = i3; this.f14887d = str2; this.f14888e = str3; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { HardwareAddress o; k5.b g0 = k5.g0(); g0.E(this.f14885a); g0.H(this.b); g0.F(this.f14886c); String str = this.f14887d; if (str != null) { g0.G(str); } String str2 = this.f14888e; if (!(str2 == null || (o = HardwareAddress.o(str2)) == null)) { g0.z(com.google.protobuf.d.i(o.k())); } bVar.K0(g0); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public l5 b(s4 s4Var) { if (s4Var.z4()) { return s4Var.S2(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class r implements a.AbstractC0154a<h5> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14889a; final /* synthetic */ long b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ long f14890c; /* renamed from: d reason: collision with root package name */ final /* synthetic */ int f14891d; /* renamed from: e reason: collision with root package name */ final /* synthetic */ List f14892e; r(p pVar, String str, long j, long j2, int i2, List list) { this.f14889a = str; this.b = j; this.f14890c = j2; this.f14891d = i2; this.f14892e = list; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { g5.b d0 = g5.d0(); d0.E(this.f14889a); d0.H(this.b); d0.F(this.f14890c); d0.G(this.f14891d); for (g.d dVar : this.f14892e) { p4.b L = p4.L(); for (HardwareAddress hardwareAddress : dVar.a()) { L.z(u9.n(hardwareAddress)); } d0.z(L); } bVar.J0(d0); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public h5 b(s4 s4Var) { if (s4Var.v4()) { return s4Var.O2(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class s implements a.AbstractC0154a<n5> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14893a; final /* synthetic */ long b; s(p pVar, String str, long j) { this.f14893a = str; this.b = j; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { m5.b T = m5.T(); T.C(this.f14893a); T.D(this.b); bVar.L0(T); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public n5 b(s4 s4Var) { if (s4Var.B4()) { return s4Var.U2(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class t implements a.AbstractC0154a<p5> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14894a; final /* synthetic */ String b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ String[] f14895c; /* renamed from: d reason: collision with root package name */ final /* synthetic */ String f14896d; t(p pVar, String str, String str2, String[] strArr, String str3) { this.f14894a = str; this.b = str2; this.f14895c = strArr; this.f14896d = str3; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { o5.b Y = o5.Y(); Y.E(this.f14894a); Y.G(this.b); String[] strArr = this.f14895c; if (strArr.length > 0) { for (String str : strArr) { Y.z(str); } } String str2 = this.f14896d; if (str2 != null) { Y.F(str2); } bVar.M0(Y); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public p5 b(s4 s4Var) { if (s4Var.D4()) { return s4Var.W2(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class u implements a.AbstractC0154a<v5> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14897a; final /* synthetic */ String b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ List f14898c; u(p pVar, String str, String str2, List list) { this.f14897a = str; this.b = str2; this.f14898c = list; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { u5.b V = u5.V(); V.E(this.f14897a); V.F(this.b); List list = this.f14898c; if (list != null && !list.isEmpty()) { for (PortMapping portMapping : this.f14898c) { V.z(u9.c0(portMapping)); } } bVar.O0(V); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public v5 b(s4 s4Var) { if (s4Var.J4()) { return s4Var.c3(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class v implements a.AbstractC0154a<x4> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14899a; final /* synthetic */ String b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ String f14900c; v(p pVar, String str, String str2, String str3) { this.f14899a = str; this.b = str2; this.f14900c = str3; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { w4.b a0 = w4.a0(); a0.C(this.f14899a); a0.D(this.b); a0.F(this.f14900c); a0.E(TimeZone.getDefault().getID()); bVar.F0(a0); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public x4 b(s4 s4Var) { if (s4Var.l4()) { return s4Var.E2(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class w implements a.AbstractC0154a<x4> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14901a; w(p pVar, String str) { this.f14901a = str; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { w4.b a0 = w4.a0(); a0.C("fallback"); a0.D("fallback"); a0.F(this.f14901a); a0.E(TimeZone.getDefault().getID()); bVar.F0(a0); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public x4 b(s4 s4Var) { if (s4Var.l4()) { return s4Var.E2(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class x implements a.AbstractC0154a<n2> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14902a; x(p pVar, String str) { this.f14902a = str; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { m2.b W = m2.W(); W.C(this.f14902a); W.E(""); bVar.o0(W); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public n2 b(s4 s4Var) { if (s4Var.i3()) { return s4Var.A1(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class y implements a.AbstractC0154a<z2> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14903a; final /* synthetic */ boolean b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ int f14904c; /* renamed from: d reason: collision with root package name */ final /* synthetic */ long f14905d; y(p pVar, String str, boolean z, int i2, long j) { this.f14903a = str; this.b = z; this.f14904c = i2; this.f14905d = j; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { y2.b d0 = y2.d0(); d0.C(this.f14903a); d0.G(this.b); d0.F(this.f14904c); long j = this.f14905d; if (j > 0) { d0.E(j); } Calendar instance = Calendar.getInstance(); instance.set(11, 0); instance.set(12, 0); instance.set(13, 0); instance.set(14, 0); d0.D(instance.getTimeInMillis()); bVar.t0(d0); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public z2 b(s4 s4Var) { if (s4Var.s3()) { return s4Var.K1(); } return null; } } /* access modifiers changed from: package-private */ /* compiled from: FingboxApiClient */ public class z implements a.AbstractC0154a<x3> { /* renamed from: a reason: collision with root package name */ final /* synthetic */ String f14906a; final /* synthetic */ d1 b; /* renamed from: c reason: collision with root package name */ final /* synthetic */ com.overlook.android.fing.engine.model.net.p f14907c; /* renamed from: d reason: collision with root package name */ final /* synthetic */ boolean f14908d; z(p pVar, String str, d1 d1Var, com.overlook.android.fing.engine.model.net.p pVar2, boolean z) { this.f14906a = str; this.b = d1Var; this.f14907c = pVar2; this.f14908d = z; } @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public void a(s4.b bVar) { w3.b i0 = w3.i0(); i0.I(this.f14906a); i0.J(((c1) this.b).e(this.f14907c)); i0.K(this.f14908d); bVar.A0(i0); } /* Return type fixed from 'com.google.protobuf.m' to match base method */ @Override // com.overlook.android.fing.engine.services.agent.hsp.a.AbstractC0154a public x3 b(s4 s4Var) { if (s4Var.Q3()) { return s4Var.i2(); } return null; } } public p() { super(null); } public void A(String str, String str2, String str3, String... strArr) throws HailstormApiException { a("https://api.fing.io/1/fingboxReqMailReport", new t(this, str, str3, strArr, str2)); } public void B(String str, com.overlook.android.fing.engine.model.net.p pVar, d1 d1Var, boolean z2) throws HailstormApiException { a("https://api.fing.io/1/fingboxPutNetwork", new z(this, str, d1Var, pVar, z2)); } public void C(String str, com.overlook.android.fing.engine.model.net.p pVar, d1 d1Var, List<Node> list, List<Node> list2, List<Node> list3, boolean z2) throws HailstormApiException { a("https://api.fing.io/1/fingboxPutNetwork", new a0(this, str, d1Var, pVar, z2, list, list2, list3)); } public void D(String str, List<Node> list, List<Node> list2, List<Node> list3) throws HailstormApiException { a("https://api.fing.io/1/fingboxPutNetwork", new b0(this, str, list, list2, list3)); } public h4 E(String str, long j2) throws HailstormApiException { return (h4) a("https://api.fing.io/1/fingboxWifiSweetSpot", new e(this, str, j2)); } public j4 F(String str, String str2) throws HailstormApiException { return (j4) a("https://api.fing.io/1/fingboxWifiSweetSpot", new c(this, str, str2)); } public l4 G(String str, long j2) throws HailstormApiException { return (l4) a("https://api.fing.io/1/fingboxWifiSweetSpot", new d(this, str, j2)); } public com.overlook.android.fing.engine.j.a.b e(String str, String str2, String str3) throws HailstormApiException { x4 x4Var = (x4) a("https://api.fing.io/1/fingboxActivateAgent", new v(this, str2, str, str3)); if (x4Var.M()) { return u9.g(x4Var.K()); } return null; } public com.overlook.android.fing.engine.j.a.b f(String str) throws HailstormApiException { x4 x4Var = (x4) a("https://api.fing.io/1/fingboxActivateAgent", new w(this, str)); if (x4Var.M()) { return u9.g(x4Var.K()); } return null; } public d3 g(String str, long j2) throws HailstormApiException { return (d3) a("https://api.fing.io/1/fingboxIBH", new C0143p(this, str, j2)); } public f3 h(String str, String str2, List<HardwareAddress> list) throws HailstormApiException { return (f3) a("https://api.fing.io/1/fingboxIBH", new n(this, str, str2, list)); } public h3 i(String str, long j2) throws HailstormApiException { return (h3) a("https://api.fing.io/1/fingboxIBH", new o(this, str, j2)); } public void j(String str) throws HailstormApiException { a("https://api.fing.io/1/fingboxDeactivateAgent", new x(this, str)); } public p2 k(String str, DigitalFenceRunner.RadioDevice radioDevice, String str2) throws HailstormApiException { return (p2) a("https://api.fing.io/1/fingboxDigitalFence", new l(this, str, radioDevice, str2)); } public u2 l(String str, long j2) throws HailstormApiException { return (u2) a("https://api.fing.io/1/fingboxDigitalFence", new j(this, str, j2)); } public r2 m(String str, String str2, List<HardwareAddress> list) throws HailstormApiException { return (r2) a("https://api.fing.io/1/fingboxDigitalFence", new m(this, str, str2, list)); } public x2 n(String str, String str2, DigitalFenceFilter digitalFenceFilter) throws HailstormApiException { return (x2) a("https://api.fing.io/1/fingboxDigitalFence", new i(this, str, str2, digitalFenceFilter)); } public List<com.overlook.android.fing.engine.j.a.b> o() throws HailstormApiException { ArrayList arrayList = new ArrayList(); for (l2 l2Var : ((d5) a("https://api.fing.io/1/fingboxGetAgents", new k(this))).K()) { arrayList.add(u9.g(l2Var)); } return arrayList; } public com.overlook.android.fing.engine.model.net.g p(String str, List<g.d> list, long j2, long j3, int i2) throws HailstormApiException { h5 h5Var = (h5) a("https://api.fing.io/1/fingboxGetDevAvail", new r(this, str, j2, j3, i2, list)); List<o4> M = h5Var.M(); List<n4> P = h5Var.P(); com.overlook.android.fing.engine.model.net.g gVar = new com.overlook.android.fing.engine.model.net.g(); ArrayList arrayList = new ArrayList(); for (int i3 = 0; i3 < list.size(); i3++) { g.d dVar = list.get(i3); o4 o4Var = M.get(i3); g.c cVar = new g.c(); if (o4Var.a0()) { new Date(o4Var.T()); } if (o4Var.b0()) { new Date(o4Var.W()); } cVar.f(dVar); if (o4Var.d0()) { cVar.e(u9.W(o4Var.Y())); if (cVar.b().a() > 0.0f) { ArrayList arrayList2 = new ArrayList(); for (int i4 = 0; i4 < o4Var.V(); i4++) { arrayList2.add(u9.W(o4Var.U(i4))); } cVar.d(arrayList2); arrayList.add(cVar); } } } gVar.f(arrayList); ArrayList arrayList3 = new ArrayList(); for (n4 n4Var : P) { g.b bVar = new g.b(); n4Var.S(); bVar.b(!n4Var.U() || n4Var.P()); arrayList3.add(bVar); } gVar.i(arrayList3); gVar.h(System.currentTimeMillis()); gVar.g(j2); gVar.j(j3); return gVar; } public com.overlook.android.fing.engine.model.contacts.a q(String str, long j2) throws HailstormApiException { Contact.d dVar; f5 f5Var = (f5) a("https://api.fing.io/1/fingboxContacts", new c0(this, str, j2)); if (!f5Var.M()) { return null; } e.f.a.a.a.i K = f5Var.K(); ArrayList arrayList = new ArrayList(K.M()); for (e.f.a.a.a.h hVar : K.O()) { Contact.b bVar = new Contact.b(); bVar.p(hVar.l0()); bVar.m(hVar.i0()); if (hVar.t0()) { bVar.n(hVar.j0()); } if (hVar.w0()) { bVar.q(hVar.m0()); } if (hVar.q0()) { bVar.k(hVar.e0()); } if (hVar.z0()) { bVar.t(hVar.p0()); } if (hVar.y0()) { bVar.s(hVar.o0().w()); } if (hVar.x0()) { bVar.r(hVar.n0()); } if (hVar.r0()) { try { dVar = Contact.d.valueOf(hVar.f0()); } catch (Throwable unused) { dVar = null; } bVar.l(dVar); } if (hVar.u0()) { int ordinal = hVar.k0().ordinal(); if (ordinal == 0) { bVar.o(Contact.c.MALE); } else if (ordinal == 1) { bVar.o(Contact.c.FEMALE); } } else { bVar.o(Contact.c.f15411a); } arrayList.add(new Contact(bVar)); } return new com.overlook.android.fing.engine.model.contacts.a(arrayList, K.S()); } public List<com.overlook.android.fing.engine.model.event.e> r(String str, int i2, int i3, String str2, String str3) throws HailstormApiException { List<h1> L = ((l5) a("https://api.fing.io/1/fingboxGetEventLog", new q(this, str, i2, i3, str2, str3))).L(); ArrayList arrayList = new ArrayList(L.size()); for (h1 h1Var : L) { com.overlook.android.fing.engine.model.event.c f2 = u9.f(h1Var); if (f2 != null) { arrayList.add(f2); } } return arrayList; } public IstAnalysis s(String str, long j2) throws HailstormApiException { Double d2; n5 n5Var = (n5) a("https://api.fing.io/1/fingboxGetIstAnalysis", new s(this, str, j2)); ArrayList arrayList = new ArrayList(n5Var.m0()); for (s7 s7Var : n5Var.n0()) { arrayList.add(new InternetSpeedServer(s7Var.U(), s7Var.V(), s7Var.W(), s7Var.X())); } ArrayList arrayList2 = new ArrayList(n5Var.i0()); ArrayList arrayList3 = new ArrayList(n5Var.f0()); Iterator<t4> it = n5Var.j0().iterator(); while (true) { d2 = null; r3 = null; r3 = null; InternetSpeedServer internetSpeedServer = null; if (!it.hasNext()) { break; } t4 next = it.next(); IstAnalysisSample.b bVar = new IstAnalysisSample.b(); bVar.t(next.g0()); bVar.m(next.g0() ? Double.valueOf(next.Y()) : null); bVar.v(next.g0() ? Double.valueOf(next.j0()) : null); bVar.s(next.g0() ? Double.valueOf(next.f0()) : null); bVar.p((!next.g0() || !next.o0()) ? null : Double.valueOf(next.c0())); bVar.r((!next.g0() || !next.q0()) ? null : Double.valueOf(next.e0())); bVar.q((!next.g0() || !next.p0()) ? null : Double.valueOf(next.d0())); bVar.n((!next.g0() || next.a0() < 0 || next.a0() >= arrayList.size()) ? null : (InternetSpeedServer) arrayList.get(next.a0())); if (next.g0() && next.k0() >= 0 && next.k0() < arrayList.size()) { internetSpeedServer = (InternetSpeedServer) arrayList.get(next.k0()); } bVar.w(internetSpeedServer); bVar.u(next.i0()); bVar.o(next.b0()); arrayList2.add(bVar.l()); } for (s1 s1Var : n5Var.g0()) { arrayList3.add(new IstAnalysisOutage(s1Var.O() - s1Var.M(), s1Var.O(), s1Var.M())); } ArrayList arrayList4 = new ArrayList(n5Var.o0()); ArrayList arrayList5 = new ArrayList(n5Var.q0()); for (u7 u7Var : n5Var.p0()) { arrayList4.add(u9.w(u7Var)); } for (u7 u7Var2 : n5Var.r0()) { arrayList5.add(u9.w(u7Var2)); } IstAnalysis.b m2 = IstAnalysis.m(); m2.n(arrayList2); m2.m(arrayList3); m2.t(n5Var.A0() ? Double.valueOf(n5Var.t0()) : null); m2.u(n5Var.B0() ? Double.valueOf(n5Var.u0()) : null); m2.v(n5Var.D0() ? Double.valueOf(n5Var.w0()) : null); m2.w(n5Var.C0() ? Double.valueOf(n5Var.v0()) : null); m2.s(n5Var.z0() ? u9.w(n5Var.s0()) : null); m2.q(arrayList4); m2.r(arrayList5); m2.o(n5Var.x0() ? Double.valueOf(n5Var.k0()) : null); if (n5Var.y0()) { d2 = Double.valueOf(n5Var.l0()); } m2.p(d2); return m2.l(); } public com.overlook.android.fing.engine.model.net.p t(String str, long j2, boolean z2, int i2, d1 d1Var) throws HailstormApiException { z2 z2Var = (z2) a("https://api.fing.io/1/fingboxGetNetwork", new y(this, str, z2, i2, j2)); if (!z2Var.f0()) { return null; } return ((c1) d1Var).c(z2Var.e0(), z2Var.c0(), z2Var.Y(), z2Var.d0(), z2Var.a0(), z2Var.X()); } public j3 u(String str, long j2) throws HailstormApiException { return (j3) a("https://api.fing.io/1/fingboxIST", new h(this, str, j2)); } public l3 v(String str, String str2) throws HailstormApiException { return (l3) a("https://api.fing.io/1/fingboxIST", new f(this, str, str2)); } public n3 w(String str, long j2) throws HailstormApiException { return (n3) a("https://api.fing.io/1/fingboxIST", new g(this, str, j2)); } public void x(String str, Contact contact, List<HardwareAddress> list, List<HardwareAddress> list2) throws HailstormApiException { a("https://api.fing.io/1/fingboxContacts", new a(this, str, contact, list, list2)); } public void y(String str, String str2) throws HailstormApiException { a("https://api.fing.io/1/fingboxContacts", new b(this, str, str2)); } public void z(String str, String str2, List<PortMapping> list) throws HailstormApiException { a("https://api.fing.io/1/fingboxHtcRefresh", new u(this, str, str2, list)); } }