Removed some old models and adjusted the component accordingly

This commit is contained in:
joschuatonn
2024-05-29 08:44:53 +02:00
parent c01654c59c
commit dd6c588eb5
2 changed files with 25 additions and 31 deletions

View File

@@ -3,17 +3,8 @@ export interface ptpUser {
firstName: string;
lastName: string;
username: string;
status?: string;
profilePictureUrl?: string;
}
export interface ptpTestUser {
id: string;
firstName: string;
lastName: string;
username: string;
status?: string;
profilePictureUrl?: string;
status: string;
profilepicture: string;
}
export interface responseModel {
@@ -27,20 +18,14 @@ export interface chat{
members: ptpUser[];
messages: message[];
displayName: string;
}
export interface user{
id: string;
firstName: string;
lastName: string;
username: string;
chats: chat[];
profilepicture: string;
profilepictureAsString: string;
}
export interface message {
id: number;
chat: chat;
sender:user;
sender:ptpUser;
content: string;
timestamp: string;
isOwn: boolean;