com.askfast.util.AskFastRestService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of askfast-api-java Show documentation
Show all versions of askfast-api-java Show documentation
AskFast Library to use the AskFast system
package com.askfast.util;
import java.util.List;
import java.util.Set;
import com.askfast.askfastapi.model.ModifyCall;
import com.askfast.model.Adapter;
import com.askfast.model.DDRRecord;
import com.askfast.model.Dialog;
import com.askfast.model.DialogRequest;
import com.askfast.model.Recording;
import com.askfast.model.RestResponse;
import com.askfast.model.Result;
import com.askfast.model.TTSUser;
import retrofit.client.Response;
import retrofit.http.Body;
import retrofit.http.DELETE;
import retrofit.http.GET;
import retrofit.http.POST;
import retrofit.http.PUT;
import retrofit.http.Path;
import retrofit.http.Query;
public interface AskFastRestService {
// Starting a dialog
@POST("/startDialog")
public Result startDialog(@Body DialogRequest req);
// Adapter calls
@GET("/adapter")
public List getAdapters(@Query("type") String type, @Query("owned") boolean owned);
// Adapter calls
@GET("/adapter/{adapterId}")
public Adapter getAdapter(@Path("adapterId") String adapterId);
@POST("/adapter/{adapterId}")
public Response buyAdapter(@Path("adapterId") String adapterId);
@PUT("/adapter/{adapterId}")
Adapter updateAdapter(@Path("adapterId") String adapterId, @Body Adapter adapter);
@GET("/free_adapters")
public Set getFreeAdapters(@Query("adapterType") String adapterType, @Query("address") String address);
@DELETE("/adapter/{adapterId}")
public Response removeAdapter(@Path("adapterId") String adapterId);
// Dialog calls
@GET("/dialog")
public Set
© 2015 - 2025 Weber Informatics LLC | Privacy Policy