You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BOB_PARTY/bob_party/src/services/conversationService/ILoaderConversation.ts

25 lines
868 B

import { Conversation } from "../../core/conversation";
import { User } from "../../core/User/user";
export default interface ILoaderConversation{
/**
* loadAllConversation methode that load every Conversation in the data management system
* return an array of Conversation
*/
loadAllConversation(): Promise<Conversation[]>;
/**
* loadByID methode that load an array of Conversation from the data management system by its id
* id the id we want to search
* return a Conversation if found, if not null
*/
loadByID(id:string): Promise<Conversation | null>;
/**
* loadByUser methode that load an array of Conversation from the data management system using a user
* u the user we want the conversations of
* return an array of Conversation
*/
loadByUser(u:User): Promise<Conversation[]>;
}