Overview
Summary
Contact
Donate
Imprint
Prompt for the
ChatMessageView
Please create a React-JS view called "ChatMessageView" for the fields of the ChatMessage entity. The ChatMessageView must contain the following fields: - name: Chat type: Chat - name: DeliveredAt type: DATE - name: EditedAt type: DATE - name: IsDeletedForEveryone type: BOOL - name: IsDeletedForSender type: BOOL - name: IsEdited type: BOOL - name: IsViewOnce type: BOOL - name: MessageType type: STRING - name: ReadAt type: DATE - name: ReplyToChatMessage type: LONG - name: SenderUserAccount type: UserAccount - name: SentAt type: DATE - name: TextContent type: STRING The data source for the [Chat] select control should be loaded from the relative URL: "/ChatService/chat" (HTTP-GET) The data source for the [SenderUserAccount] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) An existing ChatMessage entity should be loaded from the relative URL: "/ChatMessageService/chatmessage/{id}" (HTTP-GET) If a new ChatMessage entity has been created, the new entity should be posted to the relative URL: "/ChatMessageService/chatmessage" (HTTP-POST) If an existing ChatMessage entity has been updated, the modified entity should be sent to the relative URL: "/ChatMessageService/chatmessage/{id}" (HTTP-PUT) If an existing ChatMessage entity has to be deleted, the following relative URL should be called: "/ChatMessageService/chatmessage/{id}" (HTTP-DELETE) Add a HTML table to the view with the following AbuseReport columns: - column: Chat - column: ReportedUserAccount - column: Reason - column: Status - column: CreatedAt - column: ReporterUserAccount - column: Details - column: ChatMessage The table should have the title "AbuseReports" und the data must be loaded from the server with the following relative URL: "/ChatMessageService/abusereport/chatmessage/{id}" Add a HTML table to the view with the following AiInteraction columns: - column: PromptText - column: InteractionType - column: CreatedAt - column: ResponseSummary - column: UserAccount - column: Chat - column: ChatMessage The table should have the title "AiInteractions" und the data must be loaded from the server with the following relative URL: "/ChatService/aiinteraction/chatmessage/{id}" Add a HTML table to the view with the following MessageMedia columns: - column: DurationSeconds - column: MediaType - column: MediaFile - column: ThumbnailMediaFile - column: Caption - column: Width - column: Height - column: ChatMessage The table should have the title "MessageMedias" und the data must be loaded from the server with the following relative URL: "/ChatMessageService/messagemedia/chatmessage/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint