TestApi class

Constructors

TestApi({required String databaseId, required String collectionId, required Databases databaseInstance})
collectionId - Appwrite collection where tests are stored.

Properties

collectionId String
final
databaseId String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addDocument(Map<String, dynamic> data) Future<Document>
Add a test
getDataCollection() Future<List<Document>>
Fetch all test documents in the collection
getDocumentById(String id) Future<Document>
Fetch test by ID
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeDocument(String id) Future<void>
Remove test by ID
streamTestByDocumentId(String docId) Stream<Test>
streamTestsByDoctorBabyBeatAll(String? docId) Stream<List<Document>>
Stream all BabyBeat tests for a doctor
streamTestsByMother(String? motherId) Stream<List<Document>>
Stream tests for a mother
streamTestsByMotherBabyBeat(String? motherId) Stream<List<Document>>
Stream BabyBeat tests for a mother
streamTestsByOrganization(String? orgId) Stream<List<Document>>
Stream all tests for an organization
streamTestsByOrganizationBabyBeat(String? orgId, String? docId) Stream<List<Document>>
Stream BabyBeat tests for organization and doctor
streamTestsByOrganizationForTV(String? orgId, int limit) Stream<List<Document>>
Stream tests for TV view
streamTestsByOrganizationOnly(String orgId) Stream<List<Document>>
Stream tests for a specific organization
streamTestsByOrganizationOnlyForTV(String? orgId, int limit) Stream<List<Document>>
Stream tests for TV view (org-specific)
toString() String
A string representation of this object.
inherited
updateDocument(String id, Map<String, dynamic> data) Future<void>
Update a test

Operators

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