Discover stuff
This commit is contained in:
@@ -11,6 +11,8 @@ import org.joinmastodon.android.ui.utils.BlurHashDecoder;
|
||||
import org.joinmastodon.android.ui.utils.BlurHashDrawable;
|
||||
import org.parceler.Parcel;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Parcel
|
||||
public class Card extends BaseModel{
|
||||
@RequiredField
|
||||
@@ -31,6 +33,7 @@ public class Card extends BaseModel{
|
||||
public String image;
|
||||
public String embedUrl;
|
||||
public String blurhash;
|
||||
public List<History> history;
|
||||
|
||||
public transient Drawable blurhashPlaceholder;
|
||||
|
||||
@@ -60,6 +63,7 @@ public class Card extends BaseModel{
|
||||
", image='"+image+'\''+
|
||||
", embedUrl='"+embedUrl+'\''+
|
||||
", blurhash='"+blurhash+'\''+
|
||||
", history="+history+
|
||||
'}';
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package org.joinmastodon.android.model;
|
||||
|
||||
import org.joinmastodon.android.api.ObjectValidationException;
|
||||
import org.joinmastodon.android.api.RequiredField;
|
||||
|
||||
public class FollowSuggestion extends BaseModel{
|
||||
@RequiredField
|
||||
public Account account;
|
||||
// public String source;
|
||||
|
||||
@Override
|
||||
public void postprocess() throws ObjectValidationException{
|
||||
super.postprocess();
|
||||
account.postprocess();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user