aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-02-27 14:58:00 +0300
committerGravatar Vitaly Takmazov2020-02-27 14:58:00 +0300
commitd4189c5f22ca38fea273af54777c436ee974bc21 (patch)
tree016aacf9bfabc09cef159db2958a2df656ba782b /src/main/java/com/juick
parent6d177fbb3e57409b223e835eabc79009a89a1031 (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.java6
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;