mastodon-app-ufficiale-android/mastodon/src/main/java/org/joinmastodon/android/model/Source.java

46 lines
1.1 KiB
Java

package org.joinmastodon.android.model;
import org.joinmastodon.android.api.ObjectValidationException;
import org.joinmastodon.android.api.RequiredField;
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.
*/
public class Source extends BaseModel{
/**
* Profile bio.
*/
@RequiredField
public String note;
/**
* Metadata about the account.
*/
@RequiredField
public List<AccountField> fields;
/**
* The default post privacy to be used for new statuses.
*/
public StatusPrivacy privacy;
/**
* Whether new statuses should be marked sensitive by default.
*/
public boolean sensitive;
/**
* The default posting language for new statuses.
*/
public String language;
/**
* The number of pending follow requests.
*/
public int followRequestCount;
@Override
public void postprocess() throws ObjectValidationException{
super.postprocess();
for(AccountField f:fields)
f.postprocess();
}
}