63 lines
1012 B
TypeScript
63 lines
1012 B
TypeScript
export interface ptpUser {
|
|
id: string;
|
|
firstName: string;
|
|
lastName: string;
|
|
username: string;
|
|
status: string;
|
|
profilepicture: string;
|
|
}
|
|
|
|
export interface responseModel {
|
|
success: boolean;
|
|
message: string;
|
|
response: any;
|
|
}
|
|
|
|
export interface chat{
|
|
id: number;
|
|
members: ptpUser[];
|
|
messages: message[];
|
|
displayName: string;
|
|
profilepicture: string;
|
|
profilepictureAsString: string;
|
|
}
|
|
|
|
export interface message {
|
|
id: number;
|
|
chat: chat;
|
|
sender:ptpUser;
|
|
content: string;
|
|
timestamp: string;
|
|
isOwn: boolean;
|
|
gif: boolean;
|
|
link: boolean;
|
|
}
|
|
|
|
export interface tenorGif {
|
|
url: string,
|
|
duration: number,
|
|
preview: string,
|
|
dims: Array<number>,
|
|
size: number,
|
|
}
|
|
|
|
export interface testType {
|
|
nanogif: tenorGif,
|
|
mediumgif: tenorGif,
|
|
}
|
|
|
|
export interface tenorResponseElement {
|
|
id: string,
|
|
title: string,
|
|
media_formats: testType,
|
|
}
|
|
|
|
export interface tenorResponse {
|
|
results: Array<tenorGif>,
|
|
}
|
|
|
|
export interface profilePicture {
|
|
shortName: string;
|
|
url: string;
|
|
}
|