package org.jboss.resteasy.rxjava2;

import jakarta.ws.rs.client.Entity;
import jakarta.ws.rs.client.RxInvoker;
import jakarta.ws.rs.core.GenericType;
import jakarta.ws.rs.core.Response;

import io.reactivex.Single;

public interface SingleRxInvoker extends RxInvoker<Single<?>>
{
   @Override
   Single<Response> get();

   @Override
   <T> Single<T> get(Class<T> responseType);

   @Override
   <T> Single<T> get(GenericType<T> responseType);

   @Override
   Single<Response> put(Entity<?> entity);

   @Override
   <T> Single<T> put(Entity<?> entity, Class<T> clazz);

   @Override
   <T> Single<T> put(Entity<?> entity, GenericType<T> type);

   @Override
   Single<Response> post(Entity<?> entity);

   @Override
   <T> Single<T> post(Entity<?> entity, Class<T> clazz);

   @Override
   <T> Single<T> post(Entity<?> entity, GenericType<T> type);

   @Override
   Single<Response> delete();

   @Override
   <T> Single<T> delete(Class<T> responseType);

   @Override
   <T> Single<T> delete(GenericType<T> responseType);

   @Override
   Single<Response> head();

   @Override
   Single<Response> options();

   @Override
   <T> Single<T> options(Class<T> responseType);

   @Override
   <T> Single<T> options(GenericType<T> responseType);

   @Override
   Single<Response> trace();

   @Override
   <T> Single<T> trace(Class<T> responseType);

   @Override
   <T> Single<T> trace(GenericType<T> responseType);

   @Override
   Single<Response> method(String name);

   @Override
   <T> Single<T> method(String name, Class<T> responseType);

   @Override
   <T> Single<T> method(String name, GenericType<T> responseType);

   @Override
   Single<Response> method(String name, Entity<?> entity);

   @Override
   <T> Single<T> method(String name, Entity<?> entity, Class<T> responseType);

   @Override
   <T> Single<T> method(String name, Entity<?> entity, GenericType<T> responseType);

}
