Exemple #1
0
 private void AppDataDelete_Complete(ItemCompletedEventArgs<string> args)
 {
     CheckErrorReturned(args.Error);
     List<string> names = new List<string>();
     names.Add("Delete completed.");
     Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
 }
Exemple #2
0
 private void AppDataGet_Complete(ItemCompletedEventArgs<AppData> args)
 {
     CheckErrorReturned(args.Error);
     List<string> names = new List<string>();
     names.Add(AppDataToString(args.Result));
     Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
 }
Exemple #3
0
 private void AppDataAdd_Complete(ItemCompletedEventArgs<string> args)
 {
     CheckErrorReturned(args.Error);
     List<string> names = new List<string>();
     names.Add("AppData Record created. Record ID" + args.Result);
     Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
 }
Exemple #4
0
 private void AppDataGetAll_Complete(ItemCompletedEventArgs<List<AppData>> args)
 {
     CheckErrorReturned(args.Error);
     List<string> names = new List<string>();
     names.Add(string.Format("Number of records is: {0}", args.Result.Count));
     foreach (AppData element in args.Result)
     {
         names.Add(AppDataToString(element));
     }
     Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
 }
Exemple #5
0
 private void LocationAdd_Complete(ItemCompletedEventArgs<string> args)
 {
     CheckErrorReturned(args.Error);
     string recordID = args.Result;
     List<string> names = new List<string>();
     names.Add("Record created. Record ID: " + recordID);
     Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
 }
Exemple #6
0
        private void CustomDataUpdate_Complete(ItemCompletedEventArgs<string> args)
        {
            if (args.IsError)
            {
                displayErrorInfo(args.HttpRespCode, args.HttpRespMessage, args.Error.Message);
            }
            else
            {

                List<string> names = new List<string>();
                names.Add("Update completed.");
                Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
            }
        }
Exemple #7
0
        private void ReverseGeoCode_Complete(ItemCompletedEventArgs<Location> args)
        {
            CheckErrorReturned(args.Error);
            Location record = args.Result;

            List<string> names = new List<string>();
            names.Add(LocationToString(record));

            Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
        }
Exemple #8
0
        private void PersonGet_Complete(ItemCompletedEventArgs<Person> args)
        {
            CheckErrorReturned(args.Error);
            Person record = args.Result;

            List<string> names = new List<string>();
            names.Add(string.Format("Fullname: {0}: ,", record.FullName));
            names.Add(string.Format("PersonID: {0}: , " , record.ID));
            //names.Add(string.Format("EmailAddress: {0}: ," + record.EmailAddress));
            //names.Add(string.Format("EmailVerificationStatus: {0}: ," + record.EmailVerificationStatus.ToString()));
            //names.Add(string.Format("EmailVerified: {0}: , " + record.EmailVerified.ToString()));
            //names.Add(string.Format("FacebookID: {0}: , " + record.FacebookID));
            //names.Add(string.Format("ImageURL: {0}: , " + record.ImageURL));
            //names.Add(string.Format("MobileAlerts: {0}: ," + record.MobileAlerts.ToString()));
            //names.Add(string.Format("MobileVerified: {0}: , " + record.MobileVerified.ToString()));
            //names.Add(string.Format("TwitterID: {0}: ," + record.TwitterID));
            //names.Add(string.Format("UTCOffset: {0}: " + record.UTCOffset.ToString()));

            Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
        }
Exemple #9
0
        private void FriendsGet_Complete(ItemCompletedEventArgs<List<Friend>> args)
        {
            CheckErrorReturned(args.Error);
            if (args.Result == null)
            {
                if (args.Error == null || string.IsNullOrEmpty(args.Error.Message))
                {
                    MessageBox.Show("Unknown error");
                    return;
                }
                MessageBox.Show(args.Error.Message);
                return;
            }

            List<Friend> listFriends = args.Result;

            List<string> names = new List<string>();

            foreach (Friend element in listFriends)
            {
                names.Add("FullName: " + element.FullName + ", PersonID: " + element.PersonID + ", Friend status: " + Convert.ToString(element.FriendStatus));
            }

            Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
        }
Exemple #10
0
 private void FriendBySocialNetworkInvite_Complete(ItemCompletedEventArgs<string> args)
 {
     CheckErrorReturned(args.Error);
     List<string> names = new List<string>();
     names.Add("Invite completed.");
     Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
 }
Exemple #11
0
 private void EventRequestInvitation_Complete(ItemCompletedEventArgs<string> args)
 {
     CheckErrorReturned(args.Error);
     List<string> names = new List<string>();
     names.Add("Invitation request completed.");
     Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
 }
Exemple #12
0
        private void EventParticipantsGet_Complete(ItemCompletedEventArgs<List<EventParticipant>> args)
        {
            CheckErrorReturned(args.Error);
            List<EventParticipant> listRecords = args.Result;

            List<string> names = new List<string>();

            names.Add(string.Format("Number of records is: {0}", listRecords.Count));
            foreach (EventParticipant element in listRecords)
            {
                string msgString = string.Format("EventID: {0}, ", element.EventID);
                msgString += string.Format("ID: {0}, ", element.ID);
                msgString += string.Format("ImageURL: {0}, ", element.ImageURL);
                msgString += string.Format("PersonID: {0}, ", element.PersonID);
                msgString += string.Format("Last Update: {0}, ", Convert.ToString(element.LastUpdate));
                msgString += string.Format("Status: {0} ", Convert.ToString(element.Status));

                names.Add(msgString);
            }

            Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
        }
Exemple #13
0
        private void EventGet_Complete(ItemCompletedEventArgs<Event> args)
        {
            CheckErrorReturned(args.Error);
            Event myEvent = args.Result;

            List<string> names = new List<string>();
            names.Add("Event name: " + myEvent.EventName);
            names.Add("Description: " + myEvent.Description);
            names.Add("Country Name: {0} " + myEvent.CountryName);
            names.Add("Image URL: {0} "+ myEvent.ImageURL);
            names.Add("End Time: " + Convert.ToString(myEvent.EndTime));
            names.Add("Event ID:  " + myEvent.ID);
            names.Add("Last Update: {0}  : " + Convert.ToString(myEvent.LastUpdate));
            names.Add("Latitude:  " + Convert.ToString(myEvent.Latitude));
            names.Add("Longitude:  " + Convert.ToString(myEvent.Longitude));
            names.Add("MaxParticipants:  " + Convert.ToString(myEvent.MaxParticipants));
            names.Add("Privacy:  " + Convert.ToString(myEvent.Privacy));
            names.Add("Status:  " + Convert.ToString(myEvent.Status));
            names.Add("Person ID:  " + myEvent.PersonID);
            names.Add("Person name:" + myEvent.PersonName);

            Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
        }
Exemple #14
0
        private void EventCommentsGet_Complete(ItemCompletedEventArgs<List<EventComment>> args)
        {
            CheckErrorReturned(args.Error);
            List<EventComment> listRecords = (List<EventComment>)args.Result;

            List<string> names = new List<string>();

            names.Add(string.Format("Number of records: {0}", listRecords.Count));
            foreach (EventComment element in listRecords)
            {
                names.Add(string.Format("EventID: {0}, ID: {1}, LastUpd: {2}, Comment: {3}, By: {4}", element.EventID, element.ID, element.LastUpdate, element.Comment, element.PersonName));
            }
            Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
        }
Exemple #15
0
 private void EventCommentAdd_Complete(ItemCompletedEventArgs<string> args)
 {
     CheckErrorReturned(args.Error);
     // Proxomo Unique identifier is returned for the added comment
     string myCommentID = args.Result;
     List<string> names = new List<string>();
     names.Add(string.Format("Comment ID returned: {0}", myCommentID));
     Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
 }
Exemple #16
0
        private void LocationCategoriesGet_Complete(ItemCompletedEventArgs<List<Category>> args)
        {
            CheckErrorReturned(args.Error);
            List<Category> listOfRecords = args.Result;

            List<string> names = new List<string>();
            names.Add(string.Format("Number of records: {0}", listOfRecords.Count));
            foreach (Category element in listOfRecords)
            {
                names.Add(string.Format("Category: {0}, Type: {1}, Subcategory: {2}", element.category, element.type, element.subcategory));
            }

            Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
        }
Exemple #17
0
        private void LocationsSearchByIPAddress_Complete(ItemCompletedEventArgs<List<Location>> args)
        {
            CheckErrorReturned(args.Error);
            List<Location> listRecords = args.Result;

            List<string> names = new List<string>();

            names.Add(string.Format("Number of records: {0}", listRecords.Count));
            foreach (Location element in listRecords)
            {
                names.Add(LocationToString(element));
            }
            Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
        }
Exemple #18
0
        private void FriendsSocialNetworkGet_Complete(ItemCompletedEventArgs<List<SocialNetworkFriend>> args)
        {
            CheckErrorReturned(args.Error);
            List<SocialNetworkFriend> listRecords = args.Result;

            List<string> names = new List<string>();
            names.Add(string.Format("Number of records is: {0}", listRecords.Count));
            foreach (SocialNetworkFriend element in listRecords)
            {
                names.Add(string.Format("Full Name: {0}, ID: {1}, Image URL: {2}, Link to profile: {3}", element.FullName, element.ID, element.ImageURL, element.Link));
            }

            Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
        }
Exemple #19
0
 private void NotificationSend_Complete(ItemCompletedEventArgs<string> args)
 {
     CheckErrorReturned(args.Error);
     List<string> names = new List<string>();
     names.Add("Notification sent.");
     Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
 }
Exemple #20
0
        private void GeoCodeByIPAddress_Complete(ItemCompletedEventArgs<GeoIP> args)
        {
            CheckErrorReturned(args.Error);
            GeoIP record = args.Result;

            List<string> names = new List<string>();
            names.Add(GeoIPToString(record));

            Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
        }
Exemple #21
0
        private void PersonSocialNetworkInfoGet_Complete(ItemCompletedEventArgs<List<SocialNetworkInfo>> args)
        {
            CheckErrorReturned(args.Error);
            List<SocialNetworkInfo> listOfRecords = args.Result;

            List<string> names = new List<string>();
            names.Add(string.Format("Number of records: {0}", listOfRecords.Count));
            foreach (SocialNetworkInfo element in listOfRecords)
            {
                names.Add(SocialNetworkInfoToString(element));
            }
            Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
        }
Exemple #22
0
        private void Initialization_Complete(ItemCompletedEventArgs<Token> args)
        {
            //Callback no longer being used for signaling when Init has completed. We want the initialization to act synchronously so it should ot return until it is done.

            Dispatcher.BeginInvoke(() => ConnectionStatus.Text = "Connected");
            Dispatcher.BeginInvoke(() => ProxomoMethodList.IsEnabled = true);
            Dispatcher.BeginInvoke(() => RunButton.IsEnabled = true);
            Dispatcher.BeginInvoke(() => Login.IsEnabled = true);
        }
 private void ThisItem_ItemCompleted(object sender, ItemCompletedEventArgs e)
 {
     ItemCompleted(sender, e);
 }
Exemple #24
0
 private void CustomDataSearch_Complete(ItemCompletedEventArgs<List<Custom_TrainingRec>> args)
 {
     CheckErrorReturned(args.Error);
     List<string> names = new List<string>();
     names.Add("Search completed. Need to add code to display items.");
     Dispatcher.BeginInvoke(() => OutputListBox.ItemsSource = names);
 }