Discover stuff

This commit is contained in:
Grishka
2022-03-02 12:38:14 +03:00
parent bb9cf5f5df
commit 9f0b55918d
41 changed files with 1435 additions and 71 deletions

View File

@@ -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+
'}';
}

View File

@@ -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();
}
}