PortalTenantRepository class

A repository class for managing tenants.

This class extends BaseRepository and provides methods for listing and counting tenants based on the provided filters.

Inheritance

Properties

baseUrl String
The base URL for API requests.
no setteroverride
cookieStorage CookieManager
no setterinherited
dio → Dio
finalinherited
hashCode int
The hash code for this object.
no setterinherited
persistentStorage PersistentStorage
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secureStorage SecureStorage
no setterinherited

Methods

approve(Tenant entity) Future<Tenant>
Approves an entity based on the entity object.
inherited
approveById(num id) Future<Tenant>
Approves an entity based on its ID.
inherited
count(TenantFilter filter) Future<int>
Counts tenants based on the provided filter.
override
create(Tenant entity) Future<Tenant>
Creates a new entity.
inherited
deleteByEntity(Tenant entity) Future<Tenant>
Deletes an entity based on the entity object.
inherited
deleteById(num id) Future<Tenant>
Deletes an entity based on its ID.
inherited
downloadBytes(String url) Future<Uint8List>
Downloads content as bytes from a URL.
inherited
downloadFile({required String url, required String savePath, required String filename}) Future<File?>
Downloads content to a file.
inherited
getById(num id) Future<Tenant>
Retrieves an entity by its ID.
inherited
list(TenantFilter filter) Future<List<Tenant>>
Lists tenants based on the provided filter.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reject(Tenant entity) Future<Tenant>
Rejects an entity based on the entity object.
inherited
rejectById(num id) Future<Tenant>
Rejects an entity based on its ID.
inherited
toString() String
A string representation of this object.
inherited
update(Tenant entity) Future<Tenant>
Updates an existing entity.
inherited
uploadFile({required String filePath, String uploadUrl = "/upload-file", String? filename}) Future<File>
Uploads a single file.
inherited
uploadFileFromFilePicker(PlatformFile file, {String uploadUrl = "/upload-file"}) Future<File>
Uploads a file using PlatformFile.
inherited
uploadFileFromImagePicker(XFile file, {String uploadUrl = "/upload-file"}) Future<File>
Uploads a file using XFile.
inherited
uploadFiles({required List<String> filePaths, String uploadUrl = "/multi-upload-file"}) Future<List<File>>
Uploads multiple files.
inherited
uploadFilesFromFilePicker(List<PlatformFile> files, {String uploadUrl = "/multi-upload-file"}) Future<List<File>>
Uploads multiple files using PlatformFile.
inherited
uploadFilesFromImagePicker(List<XFile> files, {String uploadUrl = "/multi-upload-file"}) Future<List<File>>
Uploads multiple files using XFile.
inherited

Operators

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