Exemple #1
0
 public bool hasUser(UserNode node)
 {
     return localUsers.Contains(node);
 }
Exemple #2
0
 public void removeUser(UserNode node)
 {
     localUsers.Remove(node);
 }
Exemple #3
0
 public JoinCommand(UserNode node, string username, string passwordHash)
 {
     this.node = node;
     this.username = username;
     this.passwordHash = passwordHash;
 }
Exemple #4
0
 public void addUser(UserNode node)
 {
     localUsers.Add(node);
 }
Exemple #5
0
 public JoinCommand(UserNode node, string username, string passwordHash)
 {
     this.node         = node;
     this.username     = username;
     this.passwordHash = passwordHash;
 }
 /// <summary>
 /// Setup a new UserNodeCore.
 /// </summary>
 /// <param name="clientNode">represents the UserNode and its settings.</param>
 public UserNodeCore(UserNode clientNode)
 {
     results = new List<SearchTripResult>();
     state = new UnjointState();
     userNode = clientNode;
     clientCallback = new ClientCallback();
     ((ClientCallback) clientCallback).Parent = this;
     resultCallback += new ResultReceiveHandler(onResultReceive);
 }
Exemple #7
0
 public void addUser(UserNode node)
 {
     localUsers.Add(node);
 }
Exemple #8
0
 public void removeUser(UserNode node)
 {
     localUsers.Remove(node);
 }
Exemple #9
0
 public bool hasUser(UserNode node)
 {
     return(localUsers.Contains(node));
 }
        static void InitializeClient()
        {
            CreateUsers();

            /* Clients */
            UserNode catania1UN = new UserNode(userList.ElementAt(0), "Catania");
            UserNode catania2UN = new UserNode(userList.ElementAt(1), "Catania");
            //UserNode milano1UN = new UserNode("4nT0", "Milano");

            UserNodeCore catania1 = new UserNodeCore(catania1UN);
            UserNodeCore catania2 = new UserNodeCore(catania2UN);
            //UserNodeCore milano1 = new UserNodeCore(milano1UN);

            UserNodeCore[] userNodes =
                new UserNodeCore[] { catania1, catania2
                                   };

            uncList.AddRange(userNodes);
        }
 public void removeUser(UserNode node)
 {
     serviceNode.removeUser(node);
 }
 public bool hasUser(UserNode node)
 {
     return serviceNode.hasUser(node);
 }
 public void addUser(UserNode node)
 {
     serviceNode.addUser(node);
 }