/// <summary> /// Initializes new instance of class with specified parameters. /// </summary> /// <param name="addressee">Line which issued the command and where response goes to.</param> /// <param name="line">Line on which the command was executed.</param> /// <param name="commandID">Command ID (see <see cref="Diacom.Cmd.CommandID">CommandID</see> enumeration).</param> /// <param name="status">Command execution status (see <see cref="Diacom.Ev.CmdStatus">CmdStatus</see> enumeration).</param> public CommandStatus(object addressee, object line, Cmd.CommandID commandID, CmdStatus status) : base(line, Ev.EventID.COMMAND_STATUS) { this.Addressee = addressee; this.CommandID = commandID; this.Status = status; }
/// <summary> /// Usable constructor. Sets all the fields as needed. /// </summary> /// <param name="sender">Line that sent that command and will receive the response.</param> /// <param name="targetLine">Line on which the command was sent.</param> /// <param name="commandID">Command ID.</param> public OutcallCommandStruct(object sender, object targetLine, Cmd.CommandID commandID) { Sender = sender; ID = commandID; Line = targetLine; }