import java.util.Set;

// TODO: create REST client when API ready
// @Path("/objects")
public class TristarDataService {

    @Inject
    private TristarDataSet camerasDataSet;

    // @GET @Path("/cameras")
    // @Produces("application/json")
    public List<TristarObject> getAllCameras() {
        ImmutableMap<Integer, TristarObject> camerasMap = camerasDataSet.fetchAll(TristarObjectType.CAMERA);
        return camerasMap.values().asList();
    }