nassss

Untitled

Feb 16th, 2020
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using WIMS.Commands;
  5. using WIMS.Models.Enums;
  6. using WIMS.Models.Structure.Contracts;
  7.  
  8. namespace WIMS.Models.Structure.WorkItems
  9. {
  10. public class Feedback : WorkItem, IFeedback
  11. {
  12. private int rating;
  13. private FeedbackStatus feedbackStatus;
  14. public Feedback(string title, string description, int rating) //FeedbackStatus;
  15. : base(title, description)
  16. {
  17. this.Rating = rating;
  18. this.FeedbackStatus = FeedbackStatus.New;
  19. }
  20.  
  21. public int Rating {
  22. get => this.rating;
  23. set
  24. {
  25. Guard.RatingCheck(value);
  26. this.rating = value;
  27. }
  28. }
  29. public FeedbackStatus FeedbackStatus { get ; private set; }
  30.  
  31. //TODO : Methods for rating & feedback changing ??
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment