CommandUpdateInfo.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace SuperSocket.SocketBase.Command
  6. {
  7. /// <summary>
  8. /// Command update action enum
  9. /// </summary>
  10. public enum CommandUpdateAction
  11. {
  12. /// <summary>
  13. /// Add command
  14. /// </summary>
  15. Add,
  16. /// <summary>
  17. /// Remove command
  18. /// </summary>
  19. Remove,
  20. /// <summary>
  21. /// Update command
  22. /// </summary>
  23. Update
  24. }
  25. /// <summary>
  26. /// Command update information
  27. /// </summary>
  28. /// <typeparam name="T"></typeparam>
  29. public class CommandUpdateInfo<T>
  30. {
  31. /// <summary>
  32. /// Gets or sets the update action.
  33. /// </summary>
  34. /// <value>
  35. /// The update action.
  36. /// </value>
  37. public CommandUpdateAction UpdateAction { get; set; }
  38. /// <summary>
  39. /// Gets or sets the target command.
  40. /// </summary>
  41. /// <value>
  42. /// The command.
  43. /// </value>
  44. public T Command { get; set; }
  45. }
  46. }