package com.p3.bewoplaner.data.api.services;

import com.p3.bewoplaner.data.api.responses.ProfileResponse;
import com.p3.bewoplaner.data.api.responses.UploadImageResponse;

import okhttp3.MultipartBody;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import rx.Observable;

/**
 * Created by imarneanu on 2/23/17.
 */
public interface ProfileService {
    @GET("api/user/profile")
    Observable<ProfileResponse> getProfile();

    @FormUrlEncoded
    @POST("api/user/profile")
    Observable<ProfileResponse> updateProfile(@Field("mobile") String phoneNumber);

    @POST("api/user/profile/image")
    @Multipart
    Observable<UploadImageResponse> uploadProfileImage(@Part MultipartBody.Part filePart);
}
