// Path: libs/voice/src/main/java/com/africastalking/voice/CallResponse.java
// public final class CallResponse {
//     public String status;
//     public String phoneNumber;
//     public String errorMessage;
// 
//     @Override
//     public String toString() {
//         return new Gson().toJson(this);
//     }
// }
// 
// Path: libs/voice/src/main/java/com/africastalking/voice/QueuedCallsResponse.java
// public final class QueuedCallsResponse {
//     public String phoneNumber;
//     public String queueName;
//     public int numCalls;
// 
//     @Override
//     public String toString() {
//         return new Gson().toJson(this);
//     }
// }


import com.africastalking.voice.CallResponse;
import com.africastalking.voice.QueuedCallsResponse;
import retrofit2.Call;
import retrofit2.http.*;
package com.africastalking;



interface IVoice {

    @FormUrlEncoded
    @POST("call")
    Call<CallResponse> call(@Field("username") String username, @Field("to") String to,
                            @Field("from") String from);

    @FormUrlEncoded
    @POST("/queueStatus")
// Path: libs/voice/src/main/java/com/africastalking/voice/CallResponse.java
// public final class CallResponse {
//     public String status;
//     public String phoneNumber;
//     public String errorMessage;
// 
//     @Override
//     public String toString() {
//         return new Gson().toJson(this);
//     }
// }
// 
// Path: libs/voice/src/main/java/com/africastalking/voice/QueuedCallsResponse.java
// public final class QueuedCallsResponse {
//     public String phoneNumber;
//     public String queueName;
//     public int numCalls;
// 
//     @Override
//     public String toString() {
//         return new Gson().toJson(this);
//     }
// }


// Path: libs/voice/src/main/java/com/africastalking/IVoice.java
import com.africastalking.voice.CallResponse;
import com.africastalking.voice.QueuedCallsResponse;
import retrofit2.Call;
import retrofit2.http.*;

package com.africastalking;



interface IVoice {

    @FormUrlEncoded
    @POST("call")
    Call<CallResponse> call(@Field("username") String username, @Field("to") String to,
                            @Field("from") String from);

    @FormUrlEncoded
    @POST("/queueStatus")
    Call<QueuedCallsResponse> queueStatus(@Field("username") String username, @Field("phoneNumbers") String phoneNumbers);