@Streaming @GET("/rooms/{roomId}/chatMessages") Observable<Response> getRoomMessagesStream(@Path("roomId") String roomId);
@Streaming @GET("/rooms/{roomId}/events") Observable<Response> getRoomEventsStream(@Path("roomId") String roomId); }
/** * Convert publicly accessible url to HTML and retrieve the result as a stream containing the HTML using the given * token * @param token The token to use to authenticate the request * @param url The url to view * @param params Additional parameters to use for the request * @return A response whose InputStream contains the HTML of the document. Use response.getBody().in() to access the * html. This stream must be closed after use. * @throws HodErrorException */ @GET(URL) @Streaming Response viewUrl( @Header("token") AuthenticationToken<?, ?> token, @Query("url") String url, @QueryMap Map<String, Object> params ) throws HodErrorException;
/** * Convert an object store object to HTML and retrieve the result as a stream containing the HTML using the given * token * @param token The token to use to authenticate the request * @param reference The object store reference to view * @param params Additional parameters to use for the request * @return A response whose InputStream contains the HTML of the document. Use response.getBody().in() to access the * html. This stream must be closed after use. * @throws HodErrorException */ @GET(URL) @Streaming Response viewReference( @Header("token") AuthenticationToken<?, ?> token, @Query("reference") String reference, @QueryMap Map<String, Object> params ) throws HodErrorException;
/** * Convert a file to HTML and retrieve the result as a stream containing the HTML using the given token * @param token The token to use to authenticate the request * @param file The file to view * @param params Additional parameters to use for the request * @return A response whose InputStream contains the HTML of the document. Use response.getBody().in() to access the * html. This stream must be closed after use. * @throws HodErrorException */ @POST(URL) @Multipart @Streaming Response viewFile( @Header("token") AuthenticationToken<?, ?> token, @Part("file") TypedOutput file, @PartMap Map<String, Object> params ) throws HodErrorException;