Update UserService.java

Signed-off-by: jeet041 <mahorjitendra@gmail.com>
This commit is contained in:
jeet041 2025-04-24 00:46:17 +05:30 committed by GitHub
parent a3b9c39b86
commit 4463e5fa34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,14 +1,18 @@
// File: UserService.java
public class UserService {
public String getUserName(int userId) {
return "User" + userId;
return "FeatureBranch_User_" + userId; // Changed logic
}
public boolean isUserActive(int userId) {
return true;
return false; // Changed logic
}
public void updateUserStatus(int userId, boolean isActive) {
// update logic here
System.out.println("Feature Branch: Updating user " + userId + " to " + (isActive ? "active" : "inactive"));
}
public void deactivateUser(int userId) {
System.out.println("Feature Branch: Deactivating user " + userId);
}
}