package de.beyondsoft.ownchat.data.api.services;

import de.beyondsoft.ownchat.data.api.responses.RegisterResponse;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by laszloffiferenc on 3/2/17.
 */
public interface RegisterService {
    @FormUrlEncoded
    @POST("api/user/register-device")
    Observable<RegisterResponse> registerDevice(
            @Field("device_id") String deviceId,
            @Field("fcm_token") String token
    );

    @GET("api/user/logout")
    Observable<RegisterResponse> unregisterDevice(@Query("device_id") String deviceId);
}
