Home timeline auto-refresh

close #32
This commit is contained in:
Grishka
2022-04-28 23:22:55 +03:00
parent e8eb12532a
commit f73849dbb7
15 changed files with 531 additions and 22 deletions

View File

@@ -0,0 +1,14 @@
package org.joinmastodon.android.model;
public class CacheablePaginatedResponse<T> extends PaginatedResponse<T>{
private final boolean fromCache;
public CacheablePaginatedResponse(T items, String maxID, boolean fromCache){
super(items, maxID);
this.fromCache=fromCache;
}
public boolean isFromCache(){
return fromCache;
}
}

View File

@@ -54,6 +54,7 @@ public class Status extends BaseModel implements DisplayItemsParent{
public boolean pinned;
public transient boolean spoilerRevealed;
public transient boolean hasGapAfter;
@Override
public void postprocess() throws ObjectValidationException{