Interface LanguageIdInterface


  • public interface LanguageIdInterface
    The LanguageIdInterface is a type-safe Retrofit interface that presents all the endpoints that are made to communicate with the Rev AI Language Identification API.
    • Method Detail

      • getJobDetails

        @GET("jobs/{id}")
        retrofit2.Call<LanguageIdJob> getJobDetails​(@Path("id")
                                                    String jobID)
      • getResultObject

        @Headers("Accept: application/vnd.rev.languageid.v1.0+json")
        @GET("jobs/{id}/result")
        retrofit2.Call<LanguageIdResult> getResultObject​(@Path("id")
                                                         String jobID)
      • submitJobLocalFile

        @Multipart
        @POST("jobs")
        retrofit2.Call<LanguageIdJob> submitJobLocalFile​(@Part
                                                         okhttp3.MultipartBody.Part file,
                                                         @Part("options")
                                                         LanguageIdJobOptions options)
      • deleteJob

        @DELETE("jobs/{id}")
        retrofit2.Call<Void> deleteJob​(@Path("id")
                                       String jobID)