TeamsService class abstract
Access and manage Lichess teams and their members.
- Mixed in types
- Implementers
Constructors
- TeamsService()
-
Interface for this client.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
acceptJoinRequest(
{required String teamId, required String userId}) → Future< void> -
Accept a join request for a team based on the given
teamId
anduserId
. -
close(
{bool force = false}) → Future< void> -
Close any resources associated with this object.
inherited
-
declineJoinRequest(
{required String teamId, required String userId}) → Future< void> -
Decline a join request for a team based on the given
teamId
anduserId
. -
getById(
String teamId) → Future< Team> -
Get the team based on the given
teamId
. -
getByUser(
{required String username}) → Future< List< Team> > -
Get all teams of a user based on the given
username
. -
getJoinRequests(
{required String teamId}) → Future< List< JoinRequest> > -
Get pending join requests for a team based on the given
teamId
. -
getMembers(
{required String teamId}) → Stream< User> -
Get all members of a team based on the given
teamId
. -
getPopular(
{int page = 1}) → Future< PageOf< Team> > - Paginator of the most popular teams.
-
join(
{required String teamId, String? message, String? password}) → Future< void> -
Join a team based on the given
teamId
. An optionalmessage
can be provided to send a message if the team requires one. -
kickMember(
{required String teamId, required String userId}) → Future< void> -
Kick a user from a team based on the given
teamId
anduserId
. -
leave(
{required String teamId}) → Future< void> -
Leave a team based on the given
teamId
. -
messageAllMembers(
{required String teamId, required String message}) → Future< void> - Send a privatte message to all members of a team.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
search(
{required String text, int page = 1}) → Future< PageOf< Team> > -
Search for teams based on the given
name
. An optionalpage
index can be provided to get a specific page. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited