Not logged in. · Lost password · Register
Forum: XMPP Protocol RSS
Avatar
Michal_Mayer #1
Member since Nov 2010 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Question about statuses list.
I would like ask, if there exist some standartized contact list. I can found nothing. But i thing, the base contact statuses as online or away must be defined and it doesnt make sense, build this statuses list in application by own.
I know, there is possible add custom statuses, but i thinkg the base statuse has to be standartized, insnt  it ?
Is the another way, that got it from matrix, or its only way build it by myself ? If not, do you plan integrate this in matrix ?

Thank you
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This is defined in RFC 3921.
status is just a string

show (online state) is defined:

  • away -- The entity or resource is temporarily away.
  • chat -- The entity or resource is actively interested in chatting.
  • dnd -- The entity or resource is busy (dnd = "Do Not Disturb").
  • xa -- The entity or resource is away for an extended period (xa = "eXtended Away").

when none of the above is in the presence this means user is online.
when you get no presence at all this means user is offline.

I hope this answers your question.

Alex
Avatar
Michal_Mayer #3
Member since Nov 2010 · 3 posts
Group memberships: Members
Show profile · Link to this post
thank you for your answer.
i know and understand, but my question was about something little bit different.
I don't see the sense of building this online statuses list by own if this will be always the same. I know is simply string list and nothing difficult to do, but doesn't exists some way get this list programmatically ?
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
sorry but I don't think I understand your questions.
The different show types are in both of our libraries as Enum.

Alex
Avatar
Michal_Mayer #5
Member since Nov 2010 · 3 posts
Group memberships: Members
Show profile · Link to this post
yes, this is that i am searching for, but first i found only public enum StatusCode for muc.

First time I didn't understand correctly what you meant by the word show. It looked like it was used in its original meaning, now I see that it is the name of the enum with the data i am looking for
my mistake. sorry.
Avatar
Alex #6
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
in MatriX:
Matrix.Xmpp.Show

in agsXMPP:
agsXMPP.protocol.client.ShowType

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: