diff options
author | Vitaly Takmazov | 2020-02-27 14:58:00 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-02-27 14:58:00 +0300 |
commit | d4189c5f22ca38fea273af54777c436ee974bc21 (patch) | |
tree | 016aacf9bfabc09cef159db2958a2df656ba782b /src/main/java/com/juick | |
parent | 6d177fbb3e57409b223e835eabc79009a89a1031 (diff) |
Send empty PrivateChats list on PMs API
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r-- | src/main/java/com/juick/model/PrivateChats.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/juick/model/PrivateChats.java b/src/main/java/com/juick/model/PrivateChats.java index ffe9c169..d386e978 100644 --- a/src/main/java/com/juick/model/PrivateChats.java +++ b/src/main/java/com/juick/model/PrivateChats.java @@ -20,6 +20,7 @@ package com.juick.model; import com.fasterxml.jackson.annotation.JsonProperty; import com.juick.Chat; +import java.util.Collections; import java.util.List; /** @@ -28,6 +29,11 @@ import java.util.List; public class PrivateChats { private List<Chat> users; + + public PrivateChats() { + this.users = Collections.emptyList(); + } + @JsonProperty("pms") public List<Chat> getUsers() { return users; |