JulesMBooth / jabber-net

Automatically exported from code.google.com/p/jabber-net
Other
0 stars 0 forks source link

no idle/away presence type #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. user goes idle

What is the expected output? What do you see instead?
2. there is no idle/away presence type instead OnPresence just sends available

What version of the product are you using? On what operating system?
2.1.0.710 on XP SP2

Original issue reported on code.google.com by reyn...@gmail.com on 10 Dec 2008 at 4:01

GoogleCodeExporter commented 9 years ago
Use bedrock.util.IdleTime.  See the Example client for an example of how to use 
it:

http://code.google.com/p/jabber-net/source/browse/trunk/Example/MainForm.cs#119

Original comment by hil...@gmail.com on 10 Dec 2008 at 5:57

GoogleCodeExporter commented 9 years ago
this will set idle time on the client, but what about when someone on your 
roster
goes idle? OnPresence sends available when someone on your roster goes idle.

Original comment by reyn...@gmail.com on 10 Dec 2008 at 6:08

GoogleCodeExporter commented 9 years ago
No.  OnPresence will give you the presence they sent, which may or may not be 
available.  If the other side isn't 
sending the right presence at the right time, there's nothing we can do.

Original comment by hil...@gmail.com on 10 Dec 2008 at 6:21

GoogleCodeExporter commented 9 years ago
as an example, i was using an app called xAP Jabber.  whenever i'm idle in gmail
chat, xAP Jabber will issue an away message for my user name.  this doesn't 
happen
with the app i built with jabber-net.  is gmail chat not doing what jabber-net 
is
expecting?

Original comment by reyn...@gmail.com on 10 Dec 2008 at 6:27

GoogleCodeExporter commented 9 years ago
From what I can understand of your use case, this is a completely non-standard 
use case.  If you disagree, post a 
step-by-step use case of what you want to accomplish, using sample Jabber IDs 
for each of the actors.

If you just want to implement something specific to your use case, post to the 
mailing list, and we'll help with 
design there.

Original comment by hil...@gmail.com on 10 Dec 2008 at 6:42

GoogleCodeExporter commented 9 years ago
i am building a client that is an IM gateway/bot for my home automation system. 
 it
receives command via jabber from approved users and issues them to my home.  it 
also
sends messages to those users based on events.

the client is continuously logged in and let's say it has a gmail user id of
'myhome_abcd'.  it has 1 friend on its roster 'me_abcd'.  when me_abcd goes 
idle, i
would like for the client to get a notification that me_abcd is idle.  
jabber-net
doesn't appear to allow for this.  i don't think is non-standard use - it seems 
like
it should be a regular client application.

Original comment by reyn...@gmail.com on 10 Dec 2008 at 7:10

GoogleCodeExporter commented 9 years ago
haven't seen any updates in a while.  is my app considered non-standard use?

Original comment by reyn...@gmail.com on 27 Dec 2008 at 11:41

GoogleCodeExporter commented 9 years ago
I think there's a misunderstanding here.

The Presence.Type property tells you if someone should appear online or 
offline, is
trying to be added to your friends list, etc.  It doesn't expose the user's 
status,
like available/away/idle.  Try using the Presence.Show property instead.

Original comment by JMoon5...@gmail.com on 8 May 2009 at 10:20

GoogleCodeExporter commented 9 years ago
Hopefully I'm understanding this correctly.

For jc.Presence(PresenceType,Message, Show, Priority):
PresenceType is the kind of connection the client is having with the server.
Message is your actual message (for your status)
Show is the type of status you have (available, busy, away, do not disturb)

Is there somewhere we can look to see what all the supported Show options are?

Original comment by warra...@gmail.com on 15 Jun 2009 at 7:24

GoogleCodeExporter commented 9 years ago
See RFC 3921, section 2.2.2.1:

http://xmpp.org/rfcs/rfc3921.html#rfc.section.2.2.2.1

Original comment by hil...@gmail.com on 15 Jun 2009 at 8:42

GoogleCodeExporter commented 9 years ago
IS Jabber-NET can also be full implemented on ASP .NET 4.0 C#?

Original comment by Jeremiah...@gmail.com on 19 Jun 2010 at 6:01