package com.smarthomies.realtimetalk.network.apis; import com.smarthomies.realtimetalk.models.network.ContactRequest; import com.smarthomies.realtimetalk.models.network.SearchRequest; import com.smarthomies.realtimetalk.models.network.UsersResponse; import com.smarthomies.realtimetalk.network.NetworkingConstants; import retrofit2.http.Body; import retrofit2.http.DELETE; import retrofit2.http.GET; import retrofit2.http.POST; import rx.Observable; /** * Created by ensar on 15/11/16. */ public interface ContactsAPI { @POST(NetworkingConstants.API_SEARCH_ENDPOINT) Observable searchUsers(@Body SearchRequest searchRequest); @GET(NetworkingConstants.API_CONTACTS_ENDPOINT) Observable getContacts(); @POST(NetworkingConstants.API_CONTACTS_ENDPOINT) Observable saveContact(@Body ContactRequest contactRequest); @DELETE(NetworkingConstants.API_CONTACTS_ENDPOINT) Observable deleteContact(@Body ContactRequest contactRequest); }