2021-06-27 20:44:35 +00:00
|
|
|
package f0;
|
|
|
|
|
|
|
|
import d0.z.d.m;
|
|
|
|
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 */
|
|
|
|
public final class a0 extends RequestBody {
|
2021-08-24 17:45:16 +00:00
|
|
|
public final /* synthetic */ ByteString a;
|
2021-06-27 20:44:35 +00:00
|
|
|
public final /* synthetic */ MediaType b;
|
|
|
|
|
2021-08-24 17:45:16 +00:00
|
|
|
public a0(ByteString byteString, MediaType mediaType) {
|
|
|
|
this.a = byteString;
|
2021-06-27 20:44:35 +00:00
|
|
|
this.b = mediaType;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // okhttp3.RequestBody
|
|
|
|
public long contentLength() {
|
2021-08-24 17:45:16 +00:00
|
|
|
return (long) this.a.j();
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override // okhttp3.RequestBody
|
|
|
|
public MediaType contentType() {
|
|
|
|
return this.b;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // okhttp3.RequestBody
|
|
|
|
public void writeTo(BufferedSink bufferedSink) {
|
|
|
|
m.checkParameterIsNotNull(bufferedSink, "sink");
|
2021-08-24 17:45:16 +00:00
|
|
|
bufferedSink.d0(this.a);
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|