Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
mayprog #1
Member since Mar 2006 · 61 posts
Group memberships: Members
Show profile · Link to this post
Subject: DiscoItemsIq Query commented out
Working with DiscoItemsIq i found the following lines commented out:
//        public new DiscoItem Query
//        {
//            get
//            {
//                return m_DiscoItem;
//            }
//        }
I tried to figure out the reason for this but i did not find any answer.
So i uncommented them:
        public new DiscoItems Query
        {
            get
            {
                return m_DiscoItem;
            }
        }
and now it works fine!
Is there a reason that you have commented these lines out?
This post was edited on 2006-06-10, 18:49 by mayprog.
Avatar
Alex #2
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

this was just a function that overwrites the Query Property. We removed it because DiscoItem is a confusing name and not unique. See also the DiscoItem class.
Something must be wrong in your code if it doesnt work without this member.

Alex
Avatar
mayprog #3
Member since Mar 2006 · 61 posts
Group memberships: Members
Show profile · Link to this post
Well I suppose i could do this:
DiscoItemsIq iq = .....
DiscoItems items = iq.Query as DiscoItems;
but just because the schema of your SDK uses the Query property of special IQ classes normally to the actuall typed data of the namespace it represents, i didn't want to break it up.

So, as this is not a bug, i should use the previous code and not the uncommented Query i used.
Ok Alex, thanks again!
This post was edited on 2006-06-10, 21:46 by mayprog.
Avatar
Alex #4
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
i will take a look at it again. If its useful for you then i remove the comment again for the next release.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS