Added ability to read comments on claims #920
1 changed files with 3 additions and 16 deletions
|
@ -5,10 +5,11 @@ import android.util.Log;
|
|||
import org.json.JSONException;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class Comment {
|
||||
![]() Done in Done in e88706e
|
||||
private String channelName, text, id, parentId;
|
||||
private final String channelName, text, id, parentId;
|
||||
|
||||
public Comment(String channelName, String text, String id, String parentId) {
|
||||
this.channelName = channelName;
|
||||
|
@ -36,18 +37,4 @@ public class Comment {
|
|||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Channel: " + channelName + " text: " + text + " id: " + id + " parentId: " + parentId;
|
||||
}
|
||||
|
||||
public String getText() {
|
||||
return text;
|
||||
}
|
||||
|
||||
public String getChannelName() {
|
||||
return channelName;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue
You can add the @Data annotation from lombok so you don't have to implement the boilerplate toString and getter methods. https://projectlombok.org/features/Data