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

34 lines
836 B
Java
Raw Normal View History

2021-10-19 23:48:27 +00:00
package e0;
2021-06-27 20:44:35 +00:00
2021-10-19 23:48:27 +00:00
import c0.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 */
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
}
}