Start work on integrating Retrofit - GSON, Authorization
This commit is contained in:
parent
cff0f35269
commit
348d2c8b4f
6 changed files with 74 additions and 112 deletions
|
@ -1,49 +1,17 @@
|
|||
package com.keylesspalace.tusky.entity;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
public class Media {
|
||||
int id;
|
||||
String type;
|
||||
String url;
|
||||
String preview_url;
|
||||
String text_url;
|
||||
public int id;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
public String type;
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
public String url;
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
@SerializedName("preview_url")
|
||||
public String previewUrl;
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
public String getPreview_url() {
|
||||
return preview_url;
|
||||
}
|
||||
|
||||
public void setPreview_url(String preview_url) {
|
||||
this.preview_url = preview_url;
|
||||
}
|
||||
|
||||
public String getText_url() {
|
||||
return text_url;
|
||||
}
|
||||
|
||||
public void setText_url(String text_url) {
|
||||
this.text_url = text_url;
|
||||
}
|
||||
@SerializedName("text_url")
|
||||
public String textUrl;
|
||||
}
|
||||
|
|
|
@ -1,58 +1,18 @@
|
|||
package com.keylesspalace.tusky.entity;
|
||||
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
public class Relationship {
|
||||
public boolean isFollowing() {
|
||||
return following;
|
||||
}
|
||||
public int id;
|
||||
|
||||
public void setFollowing(boolean following) {
|
||||
this.following = following;
|
||||
}
|
||||
public boolean following;
|
||||
|
||||
public boolean isFollowed_by() {
|
||||
return followed_by;
|
||||
}
|
||||
@SerializedName("followed_by")
|
||||
public boolean followedBy;
|
||||
|
||||
public void setFollowed_by(boolean followed_by) {
|
||||
this.followed_by = followed_by;
|
||||
}
|
||||
public boolean blocking;
|
||||
|
||||
public boolean isBlocking() {
|
||||
return blocking;
|
||||
}
|
||||
public boolean muting;
|
||||
|
||||
public void setBlocking(boolean blocking) {
|
||||
this.blocking = blocking;
|
||||
}
|
||||
|
||||
public boolean isMuting() {
|
||||
return muting;
|
||||
}
|
||||
|
||||
public void setMuting(boolean muting) {
|
||||
this.muting = muting;
|
||||
}
|
||||
|
||||
public boolean isRequested() {
|
||||
return requested;
|
||||
}
|
||||
|
||||
public void setRequested(boolean requested) {
|
||||
this.requested = requested;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
int id;
|
||||
boolean following;
|
||||
boolean followed_by;
|
||||
boolean blocking;
|
||||
boolean muting;
|
||||
boolean requested;
|
||||
public boolean requested;
|
||||
}
|
||||
|
|
|
@ -5,23 +5,6 @@ import com.keylesspalace.tusky.Status;
|
|||
import java.util.List;
|
||||
|
||||
public class StatusContext {
|
||||
List<Status> ancestors;
|
||||
|
||||
public List<Status> getAncestors() {
|
||||
return ancestors;
|
||||
}
|
||||
|
||||
public void setAncestors(List<Status> ancestors) {
|
||||
this.ancestors = ancestors;
|
||||
}
|
||||
|
||||
public List<Status> getDescendants() {
|
||||
return descendants;
|
||||
}
|
||||
|
||||
public void setDescendants(List<Status> descendants) {
|
||||
this.descendants = descendants;
|
||||
}
|
||||
|
||||
List<Status> descendants;
|
||||
public List<Status> ancestors;
|
||||
public List<Status> descendants;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue