123456789101112131415161718192021222324252627282930313233343536373839404142 |
- using System;
- using System.Collections.Generic;
- namespace sccdlib
- {
- public class Event
- {
- string name = "";
- string port = "";
- object[] parameters;
-
- public Event (string name = "", string port = "", object[] parameters = null)
- {
- this.name = name;
- this.port = port;
- this.parameters = (parameters == null ? new object[] {} : parameters);
- }
- public string getName ()
- {
- return this.name;
- }
- public string getPort ()
- {
- return this.port;
- }
-
- public object[] getParameters ()
- {
- return this.parameters;
- }
-
- public override string ToString()
- {
- return string.Format("(event name : {0}; port : {1}; parameters : [{2}])", this.name, this.port, string.Join(", ", this.parameters));
- }
- }
- }
|