92 lines
2.2 KiB
Java
92 lines
2.2 KiB
Java
package com.facetec.sdk;
|
|
|
|
import java.io.IOException;
|
|
import java.nio.charset.Charset;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import okhttp3.HttpUrl;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class jy extends ki {
|
|
private static final jz a = jz.d("application/x-www-form-urlencoded");
|
|
private final List<String> d;
|
|
private final List<String> e;
|
|
|
|
jy(List<String> list, List<String> list2) {
|
|
this.d = km.e(list);
|
|
this.e = km.e(list2);
|
|
}
|
|
|
|
@Override // com.facetec.sdk.ki
|
|
public final long a() {
|
|
return b(null, true);
|
|
}
|
|
|
|
@Override // com.facetec.sdk.ki
|
|
public final void d(mv mvVar) throws IOException {
|
|
b(mvVar, false);
|
|
}
|
|
|
|
private long b(mv mvVar, boolean z) {
|
|
ms d;
|
|
if (z) {
|
|
d = new ms();
|
|
} else {
|
|
d = mvVar.d();
|
|
}
|
|
int size = this.d.size();
|
|
for (int i = 0; i < size; i++) {
|
|
if (i > 0) {
|
|
d.h(38);
|
|
}
|
|
d.e(this.d.get(i));
|
|
d.h(61);
|
|
d.e(this.e.get(i));
|
|
}
|
|
if (!z) {
|
|
return 0L;
|
|
}
|
|
long c = d.c();
|
|
d.t();
|
|
return c;
|
|
}
|
|
|
|
/* loaded from: classes.dex */
|
|
public static final class a {
|
|
private final List<String> a;
|
|
private final List<String> c;
|
|
private final Charset d;
|
|
|
|
public a() {
|
|
this((byte) 0);
|
|
}
|
|
|
|
private a(byte b) {
|
|
this.a = new ArrayList();
|
|
this.c = new ArrayList();
|
|
this.d = null;
|
|
}
|
|
|
|
public final a d(String str, String str2) {
|
|
if (str == null) {
|
|
throw new NullPointerException("name == null");
|
|
}
|
|
if (str2 == null) {
|
|
throw new NullPointerException("value == null");
|
|
}
|
|
this.a.add(kc.b(str, HttpUrl.FORM_ENCODE_SET, this.d));
|
|
this.c.add(kc.b(str2, HttpUrl.FORM_ENCODE_SET, this.d));
|
|
return this;
|
|
}
|
|
|
|
public final jy a() {
|
|
return new jy(this.a, this.c);
|
|
}
|
|
}
|
|
|
|
@Override // com.facetec.sdk.ki
|
|
public final jz b() {
|
|
return a;
|
|
}
|
|
}
|