public bool hasUser(UserNode node) { return localUsers.Contains(node); }
public void removeUser(UserNode node) { localUsers.Remove(node); }
public JoinCommand(UserNode node, string username, string passwordHash) { this.node = node; this.username = username; this.passwordHash = passwordHash; }
public void addUser(UserNode node) { localUsers.Add(node); }
/// <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); }
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); }