1
0

LabelObject.cs 598 B

1234567891011121314151617181920212223242526272829
  1. namespace AIPractice.Shared.Labels
  2. {
  3. public abstract class LabelObject
  4. {
  5. /// <summary>
  6. /// Gets the id of the label.
  7. /// </summary>
  8. public string Id { get; set; }
  9. /// <summary>
  10. /// Gets the title of the label.
  11. /// </summary>
  12. public string Title { get; set; }
  13. protected LabelObject(string id, string title)
  14. {
  15. Id = id;
  16. Title = title;
  17. }
  18. public abstract string ToXml();
  19. public override string ToString()
  20. {
  21. return Title;
  22. }
  23. }
  24. }