Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.askfast.util;
 
 import java.util.List;
 import java.util.Set;
public interface AskFastRestService {
        // Starting a dialog
    
	@POST("/startDialog")
	// Adapter calls	
	@GET("/adapter")
	public Set<AdaptergetAdapters(@Query("type"String type);
	@POST("/adapter/{adapterId}")
        public Response buyAdapter(@Path("adapterId"String adapterId);
	@GET("/free_adapters")
	public Set<AdaptergetFreeAdapters(@Query("adapterType"String adapterType, @Query("address"String address);
	@DELETE("/adapter/{adapterId}")
	public Response removeAdapter(@Path("adapterId"String adapterId);
	// Dialog calls
	@GET("/dialog")
        public Set<DialoggetDialogs();
	@GET("/dialog/{dialogId}")
        public Dialog getDialog(@Path("dialogId"String dialogId);
        
	@POST("/dialog")
        public Dialog createDialog(@Body Dialog dialog);
	@PUT("/dialog/{dialogId}")
        public Dialog updateDialog(@Path("dialogId"String dialogId, @Body Dialog dialog);
	@DELETE("/dialog/{dialogId}")
        public Response removeDialog(@Path("dialogId"String dialogId);
	// DDR calls
	@GET("/ddr")
        public List<DDRRecordgetDDRRecords(@Query("adapterId"String adapterId,
            @Query("fromAddress"String fromAddress, @Query("typeId"String typeId, @Query("status"String status,
            @Query("startTime"Long startTime, @Query("endTime"Long endTime,
            @Query("sessionKeys"String delimitedSessionKeys, @Query("offset"Integer offset, @Query("limit"Integer limit,
            @Query("shouldGenerateCosts"Boolean shouldGenerateCosts,
            @Query("shouldIncludeServiceCosts"Boolean shouldIncludeServiceCosts);
New to GrepCode? Check out our FAQ X