Event.cs 938 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using System;
  2. using System.Collections.Generic;
  3. namespace sccdlib
  4. {
  5. public class Event
  6. {
  7. string name = "";
  8. string port = "";
  9. object[] parameters;
  10. public Event (string name = "", string port = "", object[] parameters = null)
  11. {
  12. this.name = name;
  13. this.port = port;
  14. this.parameters = (parameters == null ? new object[] {} : parameters);
  15. }
  16. public string getName ()
  17. {
  18. return this.name;
  19. }
  20. public string getPort ()
  21. {
  22. return this.port;
  23. }
  24. public object[] getParameters ()
  25. {
  26. return this.parameters;
  27. }
  28. public override string ToString()
  29. {
  30. return string.Format("(event name : {0}; port : {1}; parameters : [{2}])", this.name, this.port, string.Join(", ", this.parameters));
  31. }
  32. }
  33. }