Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2023
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. public final void c(Request.Builder builder) {
  2. String d2;
  3. r24.j(builder, "builder");
  4. if (j()) {
  5. String str = this.i;
  6. r24.g(str);
  7. builder.addHeader("x-client-profile", str);
  8. }
  9. if (k()) {
  10. builder.addHeader("x-auth-token", String.valueOf(this.b.f()));
  11. }
  12. builder.addHeader(c.i, "application/json; charset=utf-8");
  13. builder.addHeader("x-api-key", f());
  14. long currentTimeMillis = System.currentTimeMillis();
  15. builder.addHeader("x-timestamp", String.valueOf(currentTimeMillis));
  16. if (!hc7.f32877a.k(this.f25125a)) {
  17. d2 = e(String.valueOf(currentTimeMillis * 1155));
  18. } else {
  19. d2 = d(String.valueOf(currentTimeMillis * 1151));
  20. r24.g(d2);
  21. }
  22. builder.addHeader("x-api-hash", d2);
  23. String c2 = this.f25126c.c();
  24. r24.i(c2, "devicePreferences.installationId");
  25. builder.addHeader("x-device-id", c2);
  26. String str2 = this.m;
  27. if (str2 != null) {
  28. builder.addHeader("adid", str2);
  29. }
  30. String str3 = this.n;
  31. if (str3 != null) {
  32. builder.addHeader("X-Device-Descriptor-Id", str3);
  33. }
  34. String language = kt4.b(this.f25125a).getLanguage();
  35. r24.i(language, "getSelectedLocale(mContext).language");
  36. builder.addHeader("x-language", language);
  37. String c3 = ec2.f31285a.c(this.f25125a);
  38. r24.g(c3);
  39. builder.addHeader("X-Activity-Session-Id", c3);
  40. if (this.f25127d.c() == 0) {
  41. builder.addHeader("CMPPermissionAdDisabled", "false");
  42. }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement