diff --git a/mastodon/src/main/java/org/joinmastodon/android/model/Token.java b/mastodon/src/main/java/org/joinmastodon/android/model/Token.java index 5c6ffddcc..4c060ffb9 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/model/Token.java +++ b/mastodon/src/main/java/org/joinmastodon/android/model/Token.java @@ -1,15 +1,15 @@ package org.joinmastodon.android.model; -import org.joinmastodon.android.api.AllFieldsAreRequired; +import org.joinmastodon.android.api.RequiredField; /** * Represents an OAuth token used for authenticating with the API and performing actions. */ -@AllFieldsAreRequired public class Token extends BaseModel{ /** * An OAuth token to be used for authorization. */ + @RequiredField public String accessToken; /** * The OAuth token type. Mastodon uses Bearer tokens. @@ -23,5 +23,6 @@ public class Token extends BaseModel{ * When the token was generated. * (unixtime) */ + @RequiredField public long createdAt; }