Interface PlayerAttributesService
public interface PlayerAttributesService
Reads what an account may do online — privileges, safety preferences, bans — and sets the one
preference the services let an account change here, the profanity filter.
The friends and presence endpoints that sit beside these are deliberately absent: the services mark them unstable, and a surface that is about to be frozen should not be built on them.
Not designed for host implementation; methods may be added in minor releases.
- Since:
- 0.12.0
-
Method Summary
Modifier and TypeMethodDescriptionfetch()Fetches the account's attributes.setProfanityFilter(boolean enabled) Turns the profanity filter on or off.
-
Method Details
-
fetch
PlayerAttributes fetch()Fetches the account's attributes.- Returns:
- the attributes
- Throws:
AltsException- if the token was refused or the service failed- Since:
- 0.12.0
-
setProfanityFilter
Turns the profanity filter on or off.- Parameters:
enabled- whether the filter should be on- Returns:
- the attributes as the service holds them after the change
- Throws:
AltsException- if the token was refused or the service failed- Since:
- 0.12.0
-