fix(pixelfed): make pixelfed login work again

This commit is contained in:
LucasGGamerM 2024-08-02 16:02:04 -03:00
parent 2494918171
commit 620cc94351
1 changed files with 3 additions and 2 deletions

View File

@ -1,15 +1,15 @@
package org.joinmastodon.android.model; 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. * Represents an OAuth token used for authenticating with the API and performing actions.
*/ */
@AllFieldsAreRequired
public class Token extends BaseModel{ public class Token extends BaseModel{
/** /**
* An OAuth token to be used for authorization. * An OAuth token to be used for authorization.
*/ */
@RequiredField
public String accessToken; public String accessToken;
/** /**
* The OAuth token type. Mastodon uses Bearer tokens. * The OAuth token type. Mastodon uses Bearer tokens.
@ -23,5 +23,6 @@ public class Token extends BaseModel{
* When the token was generated. * When the token was generated.
* (unixtime) * (unixtime)
*/ */
@RequiredField
public long createdAt; public long createdAt;
} }