Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public final void c(Request.Builder builder) {
- String d2;
- r24.j(builder, "builder");
- if (j()) {
- String str = this.i;
- r24.g(str);
- builder.addHeader("x-client-profile", str);
- }
- if (k()) {
- builder.addHeader("x-auth-token", String.valueOf(this.b.f()));
- }
- builder.addHeader(c.i, "application/json; charset=utf-8");
- builder.addHeader("x-api-key", f());
- long currentTimeMillis = System.currentTimeMillis();
- builder.addHeader("x-timestamp", String.valueOf(currentTimeMillis));
- if (!hc7.f32877a.k(this.f25125a)) {
- d2 = e(String.valueOf(currentTimeMillis * 1155));
- } else {
- d2 = d(String.valueOf(currentTimeMillis * 1151));
- r24.g(d2);
- }
- builder.addHeader("x-api-hash", d2);
- String c2 = this.f25126c.c();
- r24.i(c2, "devicePreferences.installationId");
- builder.addHeader("x-device-id", c2);
- String str2 = this.m;
- if (str2 != null) {
- builder.addHeader("adid", str2);
- }
- String str3 = this.n;
- if (str3 != null) {
- builder.addHeader("X-Device-Descriptor-Id", str3);
- }
- String language = kt4.b(this.f25125a).getLanguage();
- r24.i(language, "getSelectedLocale(mContext).language");
- builder.addHeader("x-language", language);
- String c3 = ec2.f31285a.c(this.f25125a);
- r24.g(c3);
- builder.addHeader("X-Activity-Session-Id", c3);
- if (this.f25127d.c() == 0) {
- builder.addHeader("CMPPermissionAdDisabled", "false");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement