Ejemplo n.º 1
0
        public void Search_Test_02_GetSearchForms()
        {
            string[] JIDs = SearchJIDs();

            foreach (string JID in JIDs)
            {
                SearchFormEventArgs e = this.client1.SearchForm(JID, 10000);
                this.Print(e);
            }
        }
Ejemplo n.º 2
0
        public void Search_Test_03_DoSearch()
        {
            string[] JIDs = SearchJIDs();

            foreach (string JID in JIDs)
            {
                SearchFormEventArgs   e  = this.client1.SearchForm(JID, 10000);
                SearchResultEventArgs e2 = e.Search(10000);
                this.Print(e2);
            }
        }
Ejemplo n.º 3
0
        private void Print(SearchFormEventArgs e)
        {
            Console.Out.WriteLine("Instructions:" + e.Instructions);
            Console.Out.WriteLine("First Name:" + e.FirstName);
            Console.Out.WriteLine("Last Name:" + e.LastName);
            Console.Out.WriteLine("Nick Name:" + e.NickName);
            Console.Out.WriteLine("EMail:" + e.EMail);

            if (e.SearchForm != null)
            {
                foreach (Field Field in e.SearchForm.Fields)
                {
                    Console.Out.WriteLine(Field.Var + ": " + Field.ValueString + " (" + Field.GetType().Name + ")");
                }
            }
        }