Ejemplo n.º 1
0
 public static Node Create(INodeCreateIo input)
 {
     Debug.Assert(input.Id != null, "input.Id != null");
     return new Node
     {
         Abstract = input.Abstract,
         AnycmdApiAddress = input.AnycmdApiAddress,
         AnycmdWsAddress = input.AnycmdWsAddress,
         BeatPeriod = input.BeatPeriod,
         Code = input.Code,
         Description = input.Description,
         Email = input.Email,
         Icon = input.Icon,
         Id = input.Id.Value,
         IsEnabled = input.IsEnabled,
         Mobile = input.Mobile,
         Name = input.Name,
         TransferId = input.TransferId,
         Telephone = input.Telephone,
         Steward = input.Steward,
         SortCode = input.SortCode,
         SecretKey = input.SecretKey,
         Qq = input.Qq,
         PublicKey = input.PublicKey,
         Catalog = input.Catalog
     };
 }
Ejemplo n.º 2
0
 public static Node Create(INodeCreateIo input)
 {
     Debug.Assert(input.Id != null, "input.Id != null");
     return(new Node(input.Id.Value)
     {
         Abstract = input.Abstract,
         AnycmdApiAddress = input.AnycmdApiAddress,
         AnycmdWsAddress = input.AnycmdWsAddress,
         BeatPeriod = input.BeatPeriod,
         Code = input.Code,
         Description = input.Description,
         Email = input.Email,
         Icon = input.Icon,
         IsEnabled = input.IsEnabled,
         Mobile = input.Mobile,
         Name = input.Name,
         TransferId = input.TransferId,
         Telephone = input.Telephone,
         Steward = input.Steward,
         SortCode = input.SortCode,
         SecretKey = input.SecretKey,
         Qq = input.Qq,
         PublicKey = input.PublicKey,
         Catalog = input.Catalog
     });
 }
Ejemplo n.º 3
0
 public NodeAddedEvent(IAcSession acSession, NodeBase source, INodeCreateIo output)
     : base(acSession, source)
 {
     if (output == null)
     {
         throw new System.ArgumentNullException("output");
     }
     this.Output = output;
 }
Ejemplo n.º 4
0
 public NodeAddedEvent(IAcSession acSession, NodeBase source, INodeCreateIo output)
     : base(acSession, source)
 {
     if (output == null)
     {
         throw new System.ArgumentNullException("output");
     }
     this.Output = output;
 }
Ejemplo n.º 5
0
 internal NodeAddedEvent(IAcSession acSession, NodeBase source, INodeCreateIo input, bool isPrivate)
     : this(acSession, source, input)
 {
     this.IsPrivate = isPrivate;
 }
Ejemplo n.º 6
0
 public static void AddNode(this IAcDomain acDomain, IAcSession acSession, INodeCreateIo input)
 {
     acDomain.Handle(new AddNodeCommand(acSession, input));
 }
Ejemplo n.º 7
0
 internal NodeAddedEvent(IAcSession acSession, NodeBase source, INodeCreateIo input, bool isPrivate)
     : this(acSession, source, input)
 {
     this.IsPrivate = isPrivate;
 }
Ejemplo n.º 8
0
 public static void AddNode(this IAcDomain acDomain, IAcSession acSession, INodeCreateIo input)
 {
     acDomain.Handle(new AddNodeCommand(acSession, input));
 }