diff --git a/FoodsharingSiegen.Contracts/Entity/Interaction.cs b/FoodsharingSiegen.Contracts/Entity/Interaction.cs
index 50f0ac1..02fc2e8 100644
--- a/FoodsharingSiegen.Contracts/Entity/Interaction.cs
+++ b/FoodsharingSiegen.Contracts/Entity/Interaction.cs
@@ -1,78 +1,86 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
-using System.Data;
-using System.Data.Common;
-using System.Linq;
-using System.Linq.Expressions;
using FoodsharingSiegen.Contracts.Enums;
namespace FoodsharingSiegen.Contracts.Entity
{
-
///
- /// The interaction class (a. beging, 21.05.2022)
+ /// The interaction class (a. beging, 21.05.2022)
///
public class Interaction
{
#region Public Properties
///
- /// Gets or sets the value of the alert (ab)
+ /// Gets or sets the value of the alert (ab)
///
public bool Alert { get; set; }
///
- /// Gets or sets the value of the created (ab)
+ /// Gets or sets the value of the created (ab)
///
public DateTime Created { get; set; }
///
- /// Gets or sets the value of the date (ab)
+ /// Gets or sets the value of the date (ab)
///
public DateTime Date { get; set; }
///
- /// Gets or sets the value of the id (ab)
+ /// Gets or sets the feedback associated with the interaction.
///
- [Key] public Guid Id { get; set; }
+ public InteractionFeedback Feedback { get; set; } = InteractionFeedback.Neutral;
///
- /// Gets or sets the value of the info (ab)
+ /// Gets or sets additional information related to feedback for the interaction.
+ ///
+ public string? FeedbackInfo { get; set; }
+
+ ///
+ /// Gets or sets the value of the id (ab)
+ ///
+ [Key]
+ public Guid Id { get; set; }
+
+ ///
+ /// Gets or sets additional information associated with the interaction.
///
public string? Info1 { get; set; }
///
- /// Gets or sets the value of the not needed (ab)
+ /// Gets or sets the additional information (Info2) associated with the interaction.
+ ///
+ public string? Info2 { get; set; }
+
+ ///
+ /// Gets or sets the value of the not needed (ab)
///
public bool NotNeeded { get; set; }
///
- /// Gets or sets the value of the prospect (ab)
+ /// Gets or sets the value of the prospect (ab)
///
public Prospect Prospect { get; set; }
///
- /// Gets or sets the value of the prospect id (ab)
+ /// Gets or sets the value of the prospect id (ab)
///
public Guid ProspectID { get; set; }
///
- /// Gets or sets the value of the type (ab)
+ /// Gets or sets the value of the type (ab)
///
public InteractionType Type { get; set; }
///
- /// Gets or sets the value of the user (ab)
+ /// Gets or sets the value of the user (ab)
///
public User User { get; set; }
///
- /// Gets or sets the value of the user id (ab)
+ /// Gets or sets the value of the user id (ab)
///
public Guid UserID { get; set; }
#endregion
}
-}
+}
\ No newline at end of file
diff --git a/FoodsharingSiegen.Contracts/Enums/InteractionFeedback.cs b/FoodsharingSiegen.Contracts/Enums/InteractionFeedback.cs
new file mode 100644
index 0000000..34d67ab
--- /dev/null
+++ b/FoodsharingSiegen.Contracts/Enums/InteractionFeedback.cs
@@ -0,0 +1,12 @@
+namespace FoodsharingSiegen.Contracts.Enums
+{
+ ///
+ /// Represents the types of feedback that can be associated with an interaction.
+ ///
+ public enum InteractionFeedback
+ {
+ Neutral = 10,
+ Positive = 20,
+ Negative = 30
+ }
+}
\ No newline at end of file
diff --git a/FoodsharingSiegen.Server/Controls/InteractionRow.razor b/FoodsharingSiegen.Server/Controls/InteractionRow.razor
index 9beaaf2..8f3d7f9 100644
--- a/FoodsharingSiegen.Server/Controls/InteractionRow.razor
+++ b/FoodsharingSiegen.Server/Controls/InteractionRow.razor
@@ -31,10 +31,16 @@
}
- @if (!string.IsNullOrWhiteSpace(interaction.Info1))
- {
- (@interaction.Info1)
- }
+