Ejemplo n.º 1
0
		public JabbrConnection(Account account)
		{
			_messenger = Mvx.Resolve<IMvxMessenger> ();

			RoomsIn = new List<Room> ();

			this.Account = account;
			Connect ();
		}
Ejemplo n.º 2
0
		public void AddClient(Account account)
		{
			Connections.Add(new JabbrConnection(account));
		}
Ejemplo n.º 3
0
        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 ();
            }
        }