FirestoreVinculoRemote class

A cópia no Firestore. As regras (firestore.rules) deixam o aluno criar convites com o próprio uid, ler e apagar os vínculos dele; quem cria o vínculo é o responsável, com um convite que vale (P08.1).

Implemented types

Constructors

FirestoreVinculoRemote(FirebaseFirestore _db, {required AppClock clock, Random? random})

Properties

clock → AppClock
O relógio do app (CT05f): a hora local do convite.
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

gerarConvite(String uid) → Future<Convite>
Gera um código para o aluno uid (convites/{codigo}) e completa quando o servidor confirma. Sem rede, espera.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
revogar(Vinculo vinculo) → Future<void>
Tira o acesso do responsável: apaga o vínculo. As regras deixam o aluno fazer isso a qualquer hora. Sem rede, espera.
override
toString() → String
A string representation of this object.
inherited
vinculos(String uid) → Stream<List<Vinculo>>
Quem acompanha o aluno uid, ao vivo. O aparelho já mostra o que tem em cache, então a lista aparece mesmo sem rede.
override

Operators

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