Overview
Summary
Contact
Donate
Imprint
Prompt for the
DirectMessageView
Please create a React-JS view called "DirectMessageView" for the fields of the DirectMessage entity. The DirectMessageView must contain the following fields: - name: CreatedAt type: DATE - name: DirectThread type: DirectThread - name: IsSeen type: BOOL - name: MediaUrl type: STRING - name: MessageType type: STRING - name: Post type: Post - name: Reel type: Reel - name: ReplyToMessage type: LONG - name: SeenAt type: DATE - name: Sender type: UserAccount - name: Story type: Story - name: Text type: STRING The data source for the [Sender] select control should be loaded from the relative URL: "/UserAccountService/useraccount" (HTTP-GET) The data source for the [Post] select control should be loaded from the relative URL: "/UserAccountService/post" (HTTP-GET) The data source for the [Reel] select control should be loaded from the relative URL: "/ReelService/reel" (HTTP-GET) The data source for the [DirectThread] select control should be loaded from the relative URL: "/DirectThreadService/directthread" (HTTP-GET) The data source for the [Story] select control should be loaded from the relative URL: "/StoryService/story" (HTTP-GET) An existing DirectMessage entity should be loaded from the relative URL: "/DirectThreadService/directmessage/{id}" (HTTP-GET) If a new DirectMessage entity has been created, the new entity should be posted to the relative URL: "/DirectThreadService/directmessage" (HTTP-POST) If an existing DirectMessage entity has been updated, the modified entity should be sent to the relative URL: "/DirectThreadService/directmessage/{id}" (HTTP-PUT) If an existing DirectMessage entity has to be deleted, the following relative URL should be called: "/DirectThreadService/directmessage/{id}" (HTTP-DELETE) Add a HTML table to the view with the following Notification columns: - column: Post - column: Story - column: SourceUser - column: Reel - column: Type - column: Comment - column: DirectMessage - column: IsRead - column: CreatedAt - column: UserAccount The table should have the title "Notifications" und the data must be loaded from the server with the following relative URL: "/ReelService/notification/directmessage/{id}"
Copy prompt
Overview
Summary
Contact
Donate
Imprint