diff options
Diffstat (limited to 'src/main/java/com/juick/server/api/PM.java')
-rw-r--r-- | src/main/java/com/juick/server/api/PM.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/juick/server/api/PM.java b/src/main/java/com/juick/server/api/PM.java index 8e4cb6c9..d5860057 100644 --- a/src/main/java/com/juick/server/api/PM.java +++ b/src/main/java/com/juick/server/api/PM.java @@ -17,9 +17,9 @@ package com.juick.server.api; -import com.juick.Chat; -import com.juick.Message; -import com.juick.User; +import com.juick.model.Chat; +import com.juick.model.Message; +import com.juick.model.User; import com.juick.model.AnonymousUser; import com.juick.model.PrivateChats; import com.juick.server.util.HttpBadRequestException; @@ -56,7 +56,7 @@ public class PM { private WebApp webApp; @RequestMapping(value = "/api/pm", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) - public List<com.juick.Message> doGetPM( + public List<Message> doGetPM( @Visitor User visitor, @RequestParam(required = false) String uname) { int uid = 0; @@ -74,7 +74,7 @@ public class PM { } @RequestMapping(value = "/api/pm", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) - public com.juick.Message doPostPM( + public Message doPostPM( @Visitor User visitor, @RequestParam String uname, @RequestParam String body) { @@ -92,7 +92,7 @@ public class PM { } if (pmQueriesService.createPM(visitor.getUid(), userTo.getUid(), body)) { - com.juick.Message jmsg = new com.juick.Message(); + Message jmsg = new Message(); jmsg.setUser(visitor); jmsg.setText(body); jmsg.setTo(userTo); |