Include _response.data.subcode in IMEvent

2 views
Skip to first unread message

Mark

unread,
Jun 17, 2008, 2:08:12 PM6/17/08
to wimas3
Hi, there,

I ran across a case where my sendIM call was getting back status code
603, with text "Target blocked". Looking more closely at the response
object in SendIM's handleResponse method, I saw that there was a field
named "data" with a field "subcode" off of it. In turn, it had
subError and subReason, which turned out to be very useful (they had
the values 14 and "Offline IM not accepted", respectively). It would
be great to percolate that info up to my client, but doing so requires
changing the IMEvent type. Of course, I could do that locally in my
own copy of the wimas source, but it would be nicer if it were part of
wimas. Should be a trivial thing for someone to add and check in.

By the way, I haven't found any real documentation on this
_response.data.subCode object on aol dev site.

Thanks!
Mark

Rizwan Sattar

unread,
Jun 17, 2008, 3:43:24 PM6/17/08
to wim...@googlegroups.com
Hi Mark!

Thank you for looking investigating the issue, and you are right, some of the wimas3 code needs to percolate more information up to the client.

If you have already modified IMEvent, etc, can you send us a .patch of your changes? We can take a look from there.

Thanks,
Rizwan

Mark Rubin

unread,
Jun 17, 2008, 5:04:26 PM6/17/08
to wim...@googlegroups.com
Sure thing.  I haven't made the changes yet--got distracted by other responsibilities at work, but I'll make the changes in the next couple of days and send you the patch.

Thanks for the quick response!

-- Mark
Reply all
Reply to author
Forward
0 new messages