Example #1
0
 public static void a(Context context, String str, h hVar) {
   LoginData f = a.f(context);
   if (f.isValid()) {
     O a = f.a(f);
     a.a(f.bc, str);
     cn.com.smartdevices.bracelet.j.a.b(d.b, e.a(g.P), a, hVar);
     return;
   }
   f.getClass();
   hVar.onFailure(af.a, new Header[0], new byte[0], new Throwable());
 }
Example #2
0
 public static void a(Context context, h hVar, long j) {
   LoginData f = a.f(context);
   if (f.isValid()) {
     O a = f.a(f);
     a.a(com.xiaomi.channel.relationservice.data.a.h, 1);
     a.a(l.f, j);
     cn.com.smartdevices.bracelet.j.a.a(d.b, e.a(g.P), a, hVar);
     return;
   }
   f.getClass();
   hVar.onFailure(af.a, new Header[0], new byte[0], new Throwable());
 }
Example #3
0
 public static void a(i iVar, String str, String str2, String str3, h hVar) {
   if (iVar == null || str == null) {
     throw new IllegalArgumentException();
   }
   O a = f.a(iVar.o);
   if (C0595q.a(iVar.m)) {
     if (TextUtils.isEmpty(str2)) {
       a.a(b.b, "\"\"");
     } else {
       a.a(b.b, str2);
     }
     if (TextUtils.isEmpty(str3)) {
       a.a(SocialConstants.PARAM_SUMMARY, "\"\"");
     } else {
       a.a(SocialConstants.PARAM_SUMMARY, str3);
     }
   } else {
     a.a(f.s, str2);
   }
   if (iVar.p > 0) {
     a.a(l.f, iVar.p);
   }
   if (!TextUtils.isEmpty(iVar.r)) {
     a.a(cn.com.smartdevices.bracelet.shoes.sync.b.g.a, iVar.r);
   }
   if (iVar.j >= 0) {
     a.a(ParamKey.COUNT, com.xiaomi.e.a.f + iVar.j);
   }
   a.a(cn.com.smartdevices.bracelet.shoes.sync.b.g.t, iVar.i);
   a.a(l.c, com.xiaomi.e.a.f + iVar.m);
   a.a(o.L, com.xiaomi.e.a.f + iVar.n);
   a.a(f.r, com.xiaomi.e.a.f + str2.length());
   a.a(cn.com.smartdevices.bracelet.shoes.sync.b.g.n, cn.com.smartdevices.bracelet.gps.e.b.e());
   d.b.c(cn.com.smartdevices.bracelet.j.h.b(str, a.c(f.c)), a, (S) hVar);
 }
Example #4
0
 public static void a(i iVar, String str, h hVar) {
   if (iVar == null || str == null) {
     throw new IllegalArgumentException();
   }
   O a = f.a(iVar.o);
   a.a(cn.com.smartdevices.bracelet.shoes.sync.b.g.t, iVar.i);
   a.a(l.c, String.valueOf(iVar.m));
   a.a(o.L, String.valueOf(iVar.n));
   a.a(f.x, 1);
   if (iVar.j > 0) {
     a.a(ParamKey.COUNT, com.xiaomi.e.a.f + iVar.j);
     a.a(f.as, com.xiaomi.e.a.f + iVar.j);
   }
   if (!TextUtils.isEmpty(iVar.k)) {
     a.a(f.v, iVar.k);
   }
   if (!TextUtils.isEmpty(iVar.l)) {
     a.a(f.w, iVar.l);
   }
   if (!TextUtils.isEmpty(iVar.r)) {
     a.a(cn.com.smartdevices.bracelet.shoes.sync.b.g.a, iVar.r);
   }
   if (iVar.p > 0) {
     a.a(l.f, iVar.p);
   } else if (!TextUtils.isEmpty(iVar.q)) {
     a.a(l.f, iVar.q);
   }
   d.b.c(cn.com.smartdevices.bracelet.j.h.b(str, a.c(f.c)), a, (S) hVar);
 }