EndpointProjectsMock class

Implemented types

Constructors

EndpointProjectsMock.new()

Properties

caller EndpointCaller
Holds a reference to the caller class.
finalinherited
client ServerpodClientShared
Reference to the client.
latefinalinherited
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the endpoint this reference is connected to.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<SerializableModel>
Stream of messages sent from an endpoint that supports streaming.
no setterinherited

Methods

attachUser({required String cloudProjectId, required String email, required List<String> assignRoleNames}) Future<void>
Invites a user to a project by assigning the specified project roles.
inherited
createProject({required String cloudProjectId}) Future<Project>
Creates a new project with basic setup. The cloudProjectId must be globally unique.
inherited
deleteProject({required String cloudProjectId}) Future<Project>
Deletes a project permanently. The id / name of the project is not immediately available for reuse.
inherited
detachUser({required String cloudProjectId, required String email, List<String>? unassignRoleNames, bool? unassignAllRoles}) Future<List<String>>
Revokes a user from a project by unassigning the specified project roles.
inherited
fetchProject({required String cloudProjectId}) Future<Project>
Fetches the specified project. Its user roles are included in the response.
inherited
fetchProjectConfig({required String cloudProjectId}) Future<ProjectConfig>
inherited
inviteUser({required String cloudProjectId, required String email, required List<String> assignRoleNames}) Future<void>
Invites a user to a project by assigning the specified project roles. If the user does not exist, a user invitation email is sent.
inherited
listProjects() Future<List<Project>>
Fetches the list of projects the current user has access to.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetStream() → void
Resets web socket stream, so it's possible to re-listen to endpoint streams.
inherited
revokeUser({required String cloudProjectId, required String email, List<String>? unassignRoleNames, bool? unassignAllRoles}) Future<List<String>>
Revokes a user from a project by unassigning the specified project roles. If any of the roles do not exist or are not previously assigned to the user, they are simply ignored. If unassignAllRoles is true, all roles on the project are unassigned from the user.
inherited
sendStreamMessage(SerializableModel message) Future<void>
Sends a message to the endpoint's stream.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited