package io.kaif.mobile.view.daemon;

import java.util.List;

import javax.inject.Inject;

import io.kaif.mobile.model.Zone;
import io.kaif.mobile.service.ZoneService;
import rx.Observable;

public class ZoneDaemon {

  private final ZoneService zoneService;

  @Inject
  ZoneDaemon(ZoneService zoneService) {
    this.zoneService = zoneService;
  }

  public Observable<List<Zone>> listAll() {
    return zoneService.listAll();
  }

}

@@ -79,24 +79,59 @@
 ct.Inject;%0A%0A
+import io.kaif.mobile.BuildConfig;%0A
 import io.ka
@@ -426,40 +426,232 @@
 ) %7B%0A
+%0A
     
-return zoneService.listAll()
+Observable%3CList%3CZone%3E%3E result = zoneService.listAll();%0A    if (BuildConfig.DEBUG) %7B%0A      return result.map(zones -%3E %7B%0A        zones.add(new Zone(%22test%22, %22%E6%B8%AC%E8%A9%A6%E5%B0%88%E5%8D%80%22));%0A        return zones;%0A      %7D);%0A    %7D%0A    return result
 ;%0A  

add test zone for debug version