Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ interface ApiService {

@GET("historico_sessao")
fun obterHistoricoSessao(
@Query("empresa_id") empresaId: Int,
@Query("funcionario_id") funcionarioId: Int,
@Query("session_id") sessionId: String
): Call<HistoricoSessaoResponse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import retrofit2.converter.gson.GsonConverterFactory
import java.util.concurrent.TimeUnit

object ChatBotClient {
private const val BASE_URL = "http://98.91.17.130:8000"
private const val BASE_URL = "http://52.91.140.61:8000"

val okHttpClient = OkHttpClient.Builder()
.connectTimeout(20, TimeUnit.SECONDS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ class ChatbotRepository {
fun obterHistoricoFuncionario(funcionarioId: Int) =
ChatBotClient.instance.obterHistoricoFuncionario(funcionarioId)

fun obterHistoricoSessao(funcionarioId: Int, sessionId: String) =
ChatBotClient.instance.obterHistoricoSessao(funcionarioId, sessionId)
fun obterHistoricoSessao(empresaId: Int, funcionarioId: Int, sessionId: String) =
ChatBotClient.instance.obterHistoricoSessao(empresaId, funcionarioId, sessionId)
}
2 changes: 1 addition & 1 deletion app/src/main/java/com/example/projetosaveit/ui/Chatbot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class Chatbot : AppCompatActivity() {
private fun carregarHistoricoMensagens(sessionId: String) {
Log.d("Chatbot", "Carregando historico de MENSAGENS da sessao: $sessionId")

chatbotRepository.obterHistoricoSessao(funcionarioId, sessionId).enqueue(object : Callback<HistoricoSessaoResponse> {
chatbotRepository.obterHistoricoSessao(empresaId, funcionarioId, sessionId).enqueue(object : Callback<HistoricoSessaoResponse> {
override fun onResponse(
call: Call<HistoricoSessaoResponse>,
response: Response<HistoricoSessaoResponse>
Expand Down