Пример #1
0
  @Override
  public SkyData toSkyData() {
    SkyData data = new SkyData();

    if (getType() != null) {
      data.add("type", getType());
    }

    data.add("dlanName", getDlanName());
    data.add("dlanId", getDlanId());
    //        data.add("isEncrypt", getIsEncrypt());

    data.add("cmd", this.getCmd());
    data.add("cmdservice", this.getService().toString());
    data.add("cmdparams", this.getCmdparams());

    Iterator<DlanPushData> iter = list.iterator();
    int i = 0;
    while (iter.hasNext()) {
      data.add("child" + i, iter.next().toSkyData());
      i++;
    }
    data.add("childcount", i);

    data.add("errorlog", errLog);

    return data;
  }
Пример #2
0
  @Override
  public SkyData toSkyData() {
    Log.v("heni", "NoSignalData toSkyData.");
    SkyData data = new SkyData();
    if (getType() != null) {
      data.add("type", getType());
    }
    if (curSource != null) {
      data.add("source", curSource);
    }
    data.add("isNosignal", isNosignal);

    data.add("cmd", this.getCmd());
    data.add("cmdservice", this.getService().toString());
    data.add("cmdparams", this.getCmdparams());
    return data;
  }