Start work on integrating Retrofit - Mastodon API definition

This commit is contained in:
Eugen Rochko 2017-03-08 22:08:50 +01:00
commit cff0f35269
5 changed files with 240 additions and 0 deletions

View file

@ -0,0 +1,49 @@
package com.keylesspalace.tusky.entity;
public class Media {
int id;
String type;
String url;
String preview_url;
String text_url;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getType() {
return type;
}
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;
}
}

View file

@ -0,0 +1,58 @@
package com.keylesspalace.tusky.entity;
public class Relationship {
public boolean isFollowing() {
return following;
}
public void setFollowing(boolean following) {
this.following = following;
}
public boolean isFollowed_by() {
return followed_by;
}
public void setFollowed_by(boolean followed_by) {
this.followed_by = followed_by;
}
public boolean isBlocking() {
return blocking;
}
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;
}

View file

@ -0,0 +1,27 @@
package com.keylesspalace.tusky.entity;
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;
}