Added ability to read comments on claims #920

Merged
clay53 merged 4 commits from comments into master 2020-05-30 01:47:50 +02:00
Showing only changes of commit e88706e500 - Show all commits

View file

@ -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 {
akinwale commented 2020-05-28 11:00:50 +02:00 (Migrated from github.com)
Review

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

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
clay53 commented 2020-05-29 01:31:20 +02:00 (Migrated from github.com)
Review

Done in e88706e

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;
}
}