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

io.github.robothy.sdwebui.sdk.services.DefaultGetFaceRestorersService Maven / Gradle / Ivy

The newest version!
package io.github.robothy.sdwebui.sdk.services;

import io.github.robothy.sdwebui.sdk.GetFaceRestorers;
import io.github.robothy.sdwebui.sdk.SdWebuiBeanContainer;
import io.github.robothy.sdwebui.sdk.models.results.FaceRestorer;

import java.util.Arrays;
import java.util.List;

public class DefaultGetFaceRestorersService implements GetFaceRestorers {

  private final SdWebuiBeanContainer container;

  public DefaultGetFaceRestorersService(SdWebuiBeanContainer container) {
    this.container = container;
  }

  @Override
  public List getFaceRestorers() {
    return Arrays.asList(container.getBean(CommonGetService.class).getData("/sdapi/v1/face-restorers", FaceRestorer[].class));
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy