Exemple #1
0
 public PartnerSendBack stringToPartnerSendBack(String string) {
   String[] strs = string.split(":");
   PartnerSendBack p = new PartnerSendBack();
   p.setId(Translate.stringToInt(strs[0]));
   p.setNum(Translate.stringToInt(strs[1]));
   p.setBind(Translate.stringToInt(strs[2]));
   return p;
 }
Exemple #2
0
  public TaskFblZone toTaskFblZone() {
    TaskFblZone taskFblZone = new TaskFblZone();
    taskFblZone.setZone(zone);

    if (taskIds != null && !taskIds.equals("")) {
      String[] strings = taskIds.split(";");
      for (String string : strings) {
        taskFblZone.getTaskIds().add(Translate.stringToInt(string));
      }
    }

    return taskFblZone;
  }
Exemple #3
0
  public static Vip decode(String string) {
    Vip vip = new Vip();
    if (string != null && !"".equals(string)) {
      String[] strings = string.split("&");

      vip.setLevel(EVip.values()[Translate.stringToInt(strings[0])]);
      vip.setFirstPay(Translate.stringToBoolean(strings[1]));
      vip.setPayScore(Translate.stringToInt(strings[2]));
      vip.setVipTime(Translate.stringToLong(strings[3]));
      vip.setgVipTime(Translate.stringToLong(strings[4]));
      vip.setpVipTime(Translate.stringToLong(strings[5]));
      vip.setdVipTime(Translate.stringToLong(strings[6]));
    }
    return vip;
  }