Removed some old models and adjusted the component accordingly
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user