From c04df1d10daeb5c2e84941cc864f51ba4166482b Mon Sep 17 00:00:00 2001 From: Vishal Narkhede Date: Tue, 23 May 2023 13:59:52 +0200 Subject: [PATCH] refactor: fixing lint issues --- src/main/java/io/getstream/chat/java/models/Message.java | 8 ++++---- .../io/getstream/chat/java/services/MessageService.java | 9 ++++----- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/main/java/io/getstream/chat/java/models/Message.java b/src/main/java/io/getstream/chat/java/models/Message.java index 4df55c80..ea0d64d4 100644 --- a/src/main/java/io/getstream/chat/java/models/Message.java +++ b/src/main/java/io/getstream/chat/java/models/Message.java @@ -5,11 +5,11 @@ import io.getstream.chat.java.models.Flag.FlagCreateRequestData.FlagCreateRequest; import io.getstream.chat.java.models.Flag.FlagDeleteRequestData.FlagDeleteRequest; import io.getstream.chat.java.models.Flag.FlagMessageQueryRequestData.FlagMessageQueryRequest; +import io.getstream.chat.java.models.Message.MessageCommitRequestData.MessageCommitRequest; import io.getstream.chat.java.models.Message.MessagePartialUpdateRequestData.MessagePartialUpdateRequest; import io.getstream.chat.java.models.Message.MessageRunCommandActionRequestData.MessageRunCommandActionRequest; import io.getstream.chat.java.models.Message.MessageSearchRequestData.MessageSearchRequest; import io.getstream.chat.java.models.Message.MessageSendRequestData.MessageSendRequest; -import io.getstream.chat.java.models.Message.MessageCommitRequestData.MessageCommitRequest; import io.getstream.chat.java.models.Message.MessageTranslateRequestData.MessageTranslateRequest; import io.getstream.chat.java.models.Message.MessageUpdateRequestData.MessageUpdateRequest; import io.getstream.chat.java.models.User.UserRequestObject; @@ -1169,9 +1169,9 @@ protected Call generateCall(Client client) { } @Builder( - builderClassName = "MessageCommitRequest", - builderMethodName = "", - buildMethodName = "internalBuild") + builderClassName = "MessageCommitRequest", + builderMethodName = "", + buildMethodName = "internalBuild") public static class MessageCommitRequestData { public static class MessageCommitRequest extends StreamRequest { @NotNull private String messageId; diff --git a/src/main/java/io/getstream/chat/java/services/MessageService.java b/src/main/java/io/getstream/chat/java/services/MessageService.java index d29a3dba..bd0c4e1b 100644 --- a/src/main/java/io/getstream/chat/java/services/MessageService.java +++ b/src/main/java/io/getstream/chat/java/services/MessageService.java @@ -1,17 +1,16 @@ package io.getstream.chat.java.services; -import io.getstream.chat.java.models.Message; +import io.getstream.chat.java.models.Message.MessageCommitRequestData; +import io.getstream.chat.java.models.Message.MessageCommitResponse; import io.getstream.chat.java.models.Message.MessageDeleteResponse; import io.getstream.chat.java.models.Message.MessageGetManyResponse; import io.getstream.chat.java.models.Message.MessageGetRepliesResponse; -import io.getstream.chat.java.models.Message.MessageCommitResponse; import io.getstream.chat.java.models.Message.MessageGetResponse; import io.getstream.chat.java.models.Message.MessagePartialUpdateRequestData; import io.getstream.chat.java.models.Message.MessagePartialUpdateResponse; import io.getstream.chat.java.models.Message.MessageRunCommandActionRequestData; import io.getstream.chat.java.models.Message.MessageRunCommandActionResponse; import io.getstream.chat.java.models.Message.MessageSearchRequestData; -import io.getstream.chat.java.models.Message.MessageCommitRequestData; import io.getstream.chat.java.models.Message.MessageSearchResponse; import io.getstream.chat.java.models.Message.MessageSendRequestData; import io.getstream.chat.java.models.Message.MessageSendResponse; @@ -58,8 +57,8 @@ Call search( @POST("messages/{id}/commit") Call commit( - @NotNull @Path("id") String messageId, - @NotNull @Body MessageCommitRequestData messageCommitRequestData); + @NotNull @Path("id") String messageId, + @NotNull @Body MessageCommitRequestData messageCommitRequestData); @Multipart @Headers("X-Stream-LogRequestBody: false")