All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.hekr.iotos.softgateway.sample.DeviceResponse Maven / Gradle / Ivy

There is a newer version: 3.5.30
Show newest version
package me.hekr.iotos.softgateway.sample;

import java.util.List;
import lombok.Data;
import me.hekr.iotos.softgateway.network.http.PageableResponse;

@Data
public class DeviceResponse implements PageableResponse {
  List devices;

  public DeviceResponse() {}

  public DeviceResponse(List devices) {
    this.devices = devices;
  }

  public boolean hasMore() {
    return devices != null && !devices.isEmpty();
  }

  @Override
  public List getItems() {
    return devices;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy