Account timelines

This commit is contained in:
Grishka
2022-01-18 22:49:14 +03:00
parent ba75aa6d91
commit dc836b58f8
11 changed files with 107 additions and 10 deletions

View File

@@ -2,6 +2,7 @@ package org.joinmastodon.android.model;
import org.joinmastodon.android.api.ObjectValidationException;
import org.joinmastodon.android.api.RequiredField;
import org.parceler.Parcel;
import java.time.Instant;
import java.time.LocalDate;
@@ -10,6 +11,7 @@ import java.util.List;
/**
* Represents a user of Mastodon and their associated profile.
*/
@Parcel
public class Account extends BaseModel{
// Base attributes

View File

@@ -1,12 +1,14 @@
package org.joinmastodon.android.model;
import org.joinmastodon.android.api.RequiredField;
import org.parceler.Parcel;
import java.time.Instant;
/**
* Represents a profile field as a name-value pair with optional verification.
*/
@Parcel
public class AccountField extends BaseModel{
/**
* The key of a given field's key-value pair.

View File

@@ -1,10 +1,12 @@
package org.joinmastodon.android.model;
import org.joinmastodon.android.api.RequiredField;
import org.parceler.Parcel;
/**
* Represents a custom emoji.
*/
@Parcel
public class Emoji extends BaseModel{
/**
* The name of the custom emoji.

View File

@@ -2,12 +2,14 @@ package org.joinmastodon.android.model;
import org.joinmastodon.android.api.ObjectValidationException;
import org.joinmastodon.android.api.RequiredField;
import org.parceler.Parcel;
import java.util.List;
/**
* Represents display or publishing preferences of user's own account. Returned as an additional entity when verifying and updated credentials, as an attribute of Account.
*/
@Parcel
public class Source extends BaseModel{
/**
* Profile bio.