public JabbrConnection(Account account) { _messenger = Mvx.Resolve<IMvxMessenger> (); RoomsIn = new List<Room> (); this.Account = account; Connect (); }
public void AddClient(Account account) { Connections.Add(new JabbrConnection(account)); }
protected override void InitFromBundle(IMvxBundle parameters) { if (parameters != null && parameters.Data != null && parameters.Data.ContainsKey("AccountId")) { var acctId = parameters.Data ["AccountId"]; Account = Settings.Accounts.Where (a => a.Id.Equals(acctId)).FirstOrDefault (); } if (Account == null) { NewAccount = true; Account = new Account (); } }