DepotMot

interface DepotMot

Author

Interface d'interaction avec la donnée mot

Functions

Link copied to clipboard
abstract fun ajouter(mot: TNouveauMot): TMot

Ajoute un mot à la base

Link copied to clipboard
abstract fun aleatoire(): TMot

Choisi un mot aléatoire dans la base et le renvoie

Link copied to clipboard
abstract fun modifier(mot: String, maj: TMajMot): TMot

Met à jour un mot

Link copied to clipboard
abstract fun recherche(    demande: String,     limit: Int,     page: Int): List<TMot>

Recherche en fonction de la chaine de caractère demande et renvoie la page n°page en limitant à limit résultat.

Link copied to clipboard
abstract fun recuperer(mot: String): TMot

Retourne le mot exact

abstract fun recuperer(limit: Int, page: Int): List<TMot>

Récupère la page avec limit résultat

Link copied to clipboard
abstract fun supprimer(mot: String)

Supprime un mot exact

Inheritors

Link copied to clipboard