Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladik-gif committed Oct 16, 2024
1 parent 1837240 commit cad3e0e
Showing 1 changed file with 18 additions and 33 deletions.
51 changes: 18 additions & 33 deletions src/main/java/com/chat/yourway/config/openapi/OpenApiMessages.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

@NoArgsConstructor
public class OpenApiMessages {

public static final String SUCCESSFULLY = "Successfully";
public static final String SUCCESSFULLY_REGISTERED = "Contact successfully registered";
public static final String VALUE_NOT_UNIQUE = "The field value is not unique";
Expand All @@ -13,30 +12,22 @@ public class OpenApiMessages {
public static final String CONTACT_NOT_FOUND = "Contact wasn't found in repository";
public static final String CONTACT_UNAUTHORIZED = "Contact authorization error";
public static final String SUCCESSFULLY_REFRESHED_TOKEN = "Contact successfully refreshed token";
public static final String SUCCESSFULLY_ACTIVATED_ACCOUNT =
"Contact account successfully activated";
public static final String EMAIL_TOKEN_NOT_FOUND =
"Email token for contact wasn't found in repository";
public static final String SUCCESSFULLY_CHANGING_PASSWORD =
"Contact successfully changing password";
public static final String SUCCESSFULLY_ACTIVATED_ACCOUNT = "Contact account successfully activated";
public static final String EMAIL_TOKEN_NOT_FOUND = "Email token for contact wasn't found in repository";
public static final String SUCCESSFULLY_CHANGING_PASSWORD = "Contact successfully changing password";
public static final String INVALID_OLD_PASSWORD = "Old password is not correct";
public static final String SUCCESSFULLY_SEND_REQUEST_RESTORE_PASSWORD =
"Contact successfully sent request to restored password";
public static final String SUCCESSFULLY_RESTORED_PASSWORD =
"Contact successfully restored password";
public static final String SUCCESSFULLY_UPDATED_CONTACT_PROFILE =
"Contact profile successfully updated";
public static final String SUCCESSFULLY_RECEIVED_CONTACT_PROFILE =
"Contact profile successfully received";
"Contact successfully sent request to restored password";
public static final String SUCCESSFULLY_RESTORED_PASSWORD = "Contact successfully restored password";
public static final String SUCCESSFULLY_UPDATED_CONTACT_PROFILE = "Contact profile successfully updated";
public static final String SUCCESSFULLY_RECEIVED_CONTACT_PROFILE = "Contact profile successfully received";
public static final String SUCCESSFULLY_REPORTED_MESSAGE = "Message is reported successfully";
public static final String MESSAGE_NOT_FOUND = "Message wasn't found in repository";
public static final String MESSAGE_HAS_ALREADY_REPORTED = "You have already made report";
public static final String SUCCESSFULLY_SUBSCRIBED =
"Contact successfully subscribed to the topic";
public static final String SUCCESSFULLY_SUBSCRIBED = "Contact successfully subscribed to the topic";
public static final String TOPIC_NOT_FOUND = "Topic wasn't found in repository";
public static final String ALREADY_SUBSCRIBED = "Contact already subscribed to the topic";
public static final String SUCCESSFULLY_UNSUBSCRIBED =
"Contact successfully unsubscribed from the topic";
public static final String SUCCESSFULLY_UNSUBSCRIBED = "Contact successfully unsubscribed from the topic";
public static final String CONTACT_WASNT_SUBSCRIBED = "Contact wasn't subscribed to the topic";
public static final String SUCCESSFULLY_CREATED_TOPIC = "Topic successfully created";
public static final String SUCCESSFULLY_FOUND_TOPIC = "Topic successfully found";
Expand All @@ -45,22 +36,16 @@ public class OpenApiMessages {
public static final String SUCCESSFULLY_UPDATED_TOPIC = "Topic successfully updated";
public static final String INVALID_VALUE = "Invalid value of request object field";
public static final String SUCCESSFULLY_FOUND_MESSAGE = "Message successfully found";
public static final String SUCCESSFULLY_PERMITTED_SENDING_PRIVATE_MESSAGES = "Successfully permitted sending private messages";
public static final String SUCCESSFULLY_PROHIBITED_SENDING_PRIVATE_MESSAGES = "Successfully prohibited sending private messages";

public static final String SUCCESSFULLY_ADD_TOPIC_TO_FAVOURITE =
"Topic added to favourite successfully";
public static final String SUCCESSFULLY_REMOVE_TOPIC_FROM_FAVOURITE =
"Topic removed from favourite successfully";

public static final String SUCCESSFULLY_COMPLAIN_TOPIC =
"Topic was complained successfully";
public static final String USER_DID_NOT_SUBSCRIBED_TO_TOPIC =
"User did not subscribe to topic";

public static final String SUCCESSFULLY_PERMITTED_SENDING_PRIVATE_MESSAGES =
"Successfully permitted sending private messages";
public static final String SUCCESSFULLY_PROHIBITED_SENDING_PRIVATE_MESSAGES =
"Successfully prohibited sending private messages";
public static final String SUCCESSFULLY_ADD_TOPIC_TO_FAVOURITE = "Topic added to favourite successfully";
public static final String SUCCESSFULLY_REMOVE_TOPIC_FROM_FAVOURITE = "Topic removed from favourite successfully";
public static final String SUCCESSFULLY_COMPLAIN_TOPIC = "Topic was complained successfully";
public static final String USER_DID_NOT_SUBSCRIBED_TO_TOPIC = "User did not subscribe to topic";
public static final String SEARCH_TOPIC_VALIDATION = "Must contains only characters and digits";
public static final String OWNER_CANT_UNSUBSCRIBED = "Owner can't unsubscribed from topic";
public static final String RECIPIENT_EMAIL_NOT_EXIST = "Recipient email does not exist";
public static final String SUCCESSFULLY_LOGGED_OUT = "Successfully logged out";

}
}

0 comments on commit cad3e0e

Please sign in to comment.