Exemplo n.º 1
0
 public Command(SerializationInfo info, StreamingContext ctxt)
 {
     commandType            = (string)info.GetValue("commandType", typeof(string));
     sourceId               = (string)info.GetValue("sourceId", typeof(string));
     destinationId          = (string)info.GetValue("destinationId", typeof(string));
     callIndicationClientId = (string)info.GetValue("callIndicationClientId", typeof(string));
     callConfirmedClientId  = (string)info.GetValue("callConfirmedClientId", typeof(string));
     startClientId          = (string)info.GetValue("startClientId", typeof(string));
     endClientId            = (string)info.GetValue("endClientId", typeof(string));
     bandwidth              = (int)info.GetValue("bandwidth", typeof(int));
     record                   = (PortMatch)info.GetValue("record", typeof(PortMatch));
     commutationTable         = (List <PortMatch>)info.GetValue("commutationTable", typeof(List <PortMatch>));
     linkList                 = (List <Link>)info.GetValue("linkList", typeof(List <Link>));
     domainOfRequestedClient  = (string)info.GetValue("domainOfRequestedClient", typeof(string));
     isClientAccessible       = (bool)info.GetValue("isClientAccessible", typeof(bool));
     isClientAccepting        = (bool)info.GetValue("isClientAccepting", typeof(bool));
     startOfPath              = (string)info.GetValue("startOfPath", typeof(string));
     endOfPath                = (string)info.GetValue("endOfPath", typeof(string));
     startOfPathPort          = (int)info.GetValue("startOfPathPort", typeof(int));
     endOfPathPort            = (int)info.GetValue("endOfPathPort", typeof(int));
     startCrack               = (int)info.GetValue("startCrack", typeof(int));
     endCrack                 = (int)info.GetValue("endCrack", typeof(int));
     domainOfRequestingClient = (string)info.GetValue("domainOfRequestingClient", typeof(string));
     connectionId             = (int)info.GetValue("connectionId", typeof(int));
     deletedLinkId            = (int)info.GetValue("deletedLinkId", typeof(int));
 }
Exemplo n.º 2
0
 public Command(string type, PortMatch record)
 {
     this.commandType = type;
     this.record      = record;
 }