IPostableFragment.cs 704 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace InABox.Core
  5. {
  6. /// <summary>
  7. /// Intended to be a class that is part of a post of a different <see cref="IPostable"/>, but is not <see cref="IPostable"/> itself.
  8. /// We may need to track references for each item, and so the fragment allows that.
  9. /// </summary>
  10. public interface IPostableFragment
  11. {
  12. /// <summary>
  13. /// Reference details like IDs or numbers so that we can match transactions.
  14. /// </summary>
  15. string PostedReference { get; set; }
  16. }
  17. public interface IPostableFragment<TPostable> : IPostableFragment
  18. where TPostable : IPostable
  19. {
  20. }
  21. }