public void AddContact(string jid) { RosterContactVModel contact = new RosterContactVModel { JabberId = new JabberID(jid), Conversation = new ConversationVModel() }; _contacts.Add(contact); }
public XmppClientVModel() { _sendMessageCommand = new SendMessageCommand(); _connection = new XmppClientConnection(); _authorizationVModel = new AuthorizationVModel(); _rosterVModel = new RosterVModel(); _currentPartner = new RosterContactVModel(); //TODO: delete then _rosterVModel.AddContact("*****@*****.**"); _rosterVModel.AddContact("*****@*****.**"); // _currentClientVModel = new ClientVModel(); ConnectionStateVModel = new ConnectionStateVModel { Connected = false }; }