Fix Token field requirements

This commit is contained in:
Grishka
2024-10-01 20:29:09 +03:00
parent 1dc9adafc7
commit e7850dfcfb

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.