Esempio n. 1
0
        public ChatHistory(SocialClient socialClient)
        {
            if (socialClient == null)
                throw new ArgumentNullException ("socialClient");

            this.socialClient = socialClient;
            this.socialClient.ReceivedTextMessage += OnReceivedTextMessage;
        }
Esempio n. 2
0
        public AddBuddyViewModel(SocialClient client)
        {
            if (client == null)
                throw new ArgumentNullException ("client");

            this.client = client;
            this.addBuddy = new RelayCommand<Person> (OnAddBuddy, CanAddBuddy);
            this.searchResults = new AsyncValue<IEnumerable<Person>> (
                Task.FromResult (Enumerable.Empty<Person>()), Enumerable.Empty<Person>());
        }