diff options
author | Alexander Alexeev | 2016-11-21 13:37:53 +0700 |
---|---|---|
committer | Vitaly Takmazov | 2016-11-23 13:03:04 +0300 |
commit | e9aa20922c82bfad64adbcb6466ebdac23a84244 (patch) | |
tree | 9eb58c293fd7047f7b119d9f4937724a715b0ecd /juick-server/src/main/java/com/juick/server/protocol | |
parent | 9d3b2623dac8fe3af4d0a8d05dad8ea96ea92f3d (diff) |
field names for core objects are corrected ( standard name conventions used)
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/protocol')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java b/juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java index 6fa3790e..eb579712 100644 --- a/juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java +++ b/juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java @@ -248,16 +248,16 @@ public class JuickProtocol { String retValUpdated; if (input[0].toLowerCase().equals("on")) { newStatus = UserQueries.ActiveStatus.Active; - retValUpdated = "Notifications are activated for " + user.getJID(); + retValUpdated = "Notifications are activated for " + user.getJid(); } else { newStatus = UserQueries.ActiveStatus.Inactive; - retValUpdated = "Notifications are disabled for " + user.getJID(); + retValUpdated = "Notifications are disabled for " + user.getJid(); } - if (UserQueries.setActiveStatusForJID(sql, user.getJID(), newStatus)) { + if (UserQueries.setActiveStatusForJID(sql, user.getJid(), newStatus)) { return new ProtocolReply(retValUpdated, Optional.empty()); } else { - return new ProtocolReply(String.format("Subscriptions status for %s was not changed", user.getJID()), + return new ProtocolReply(String.format("Subscriptions status for %s was not changed", user.getJid()), Optional.empty()); } } |