package com.example.petstoremobile.api;

import com.example.petstoremobile.dtos.ConversationDTO;
import com.example.petstoremobile.dtos.MessageDTO;
import com.example.petstoremobile.dtos.UpdateConversationStatusRequest;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.PUT;
import retrofit2.http.Path;

//api calls to get conversations
public interface ChatApi {
    
    @GET("api/v1/chat/conversations")
    Call<List<ConversationDTO>> getAllConversations();

    @GET("api/v1/chat/conversations/{conversationId}")
    Call<ConversationDTO> getConversationById(@Path("conversationId") Long conversationId);

    @PUT("api/v1/chat/conversations/{conversationId}")
    Call<ConversationDTO> updateConversationStatus(@Path("conversationId") Long conversationId, @Body UpdateConversationStatusRequest request);

}