discord-jadx/app/src/main/java/f0/a0.java

37 lines
945 B
Java
Raw Normal View History

2021-11-08 18:25:28 +00:00
package f0;
2021-06-27 20:44:35 +00:00
2021-11-08 18:25:28 +00:00
import d0.z.d.m;
2021-06-27 20:44:35 +00:00
import okhttp3.MediaType;
import okhttp3.RequestBody;
import okio.BufferedSink;
2021-08-24 17:45:16 +00:00
import okio.ByteString;
2021-06-27 20:44:35 +00:00
/* compiled from: RequestBody.kt */
2022-03-02 20:59:20 +00:00
/* loaded from: classes3.dex */
2021-06-27 20:44:35 +00:00
public final class a0 extends RequestBody {
2021-08-24 17:45:16 +00:00
public final /* synthetic */ ByteString a;
2021-12-21 23:37:30 +00:00
/* renamed from: b reason: collision with root package name */
2022-03-22 15:40:06 +00:00
public final /* synthetic */ MediaType f3580b;
2021-06-27 20:44:35 +00:00
2021-08-24 17:45:16 +00:00
public a0(ByteString byteString, MediaType mediaType) {
this.a = byteString;
2022-03-22 15:40:06 +00:00
this.f3580b = mediaType;
2021-06-27 20:44:35 +00:00
}
@Override // okhttp3.RequestBody
public long contentLength() {
2022-03-02 20:59:20 +00:00
return this.a.j();
2021-06-27 20:44:35 +00:00
}
@Override // okhttp3.RequestBody
public MediaType contentType() {
2022-03-22 15:40:06 +00:00
return this.f3580b;
2021-06-27 20:44:35 +00:00
}
@Override // okhttp3.RequestBody
public void writeTo(BufferedSink bufferedSink) {
m.checkParameterIsNotNull(bufferedSink, "sink");
2021-11-08 18:25:28 +00:00
bufferedSink.e0(this.a);
2021-06-27 20:44:35 +00:00
}
}