--
You received this message because you are subscribed to the Google Groups "Activity Streams" group.
To unsubscribe from this group and stop receiving emails from it, send an email to activity-strea...@googlegroups.com.
To post to this group, send email to activity...@googlegroups.com.
Visit this group at http://groups.google.com/group/activity-streams?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
+1
{
"actor": {"id": "acct:ev...@site.example", "objectType": "person"},
"verb": "update",
"object": {"id": "acct:ev...@site.example",
"objectType": "person",
"xmpp_org": {
"presence": "dnd"
}
}
}
URI: http://online-presence.net/opo/ns#DoNotDisturb
DoNotDisturb - The Agent is busy and does not want to be contacted by other Agents.
]]
Is it possible to have a full URI as a property in AS? Otherwise, as elf suggests, you can use JSON LD, which I think will become a W3C REC in the next few months ...
Nick,
Maybe online status is a property of the profile. So setting my status to "DND" might be something like:
{"actor": {"id": "acct:ev...@site.example", "objectType": "person"},"verb": "update","object": {"id": "acct:ev...@site.example","objectType": "person","xmpp_org": {"presence": "dnd"}}}
That is, "Evan updated Evan to have a presence of 'dnd'".
Here, I'm using the "account management" schema off the wiki:
http://wiki.activitystrea.ms/w/page/57887490/Account-management
...as well as a made-up xmpp.org namespace.
-Evan
On Wednesday, April 17, 2013 11:38:13 AM UTC-4, ni...@silverbucket.net wrote:CheersDoes anyone have any ideas as to what verb would fit in this case?There are two ways I was thinking about it. Either 4 different verbs that can match up with each possible state, or - perhaps a better approach - to find one verb which implies a state change for the user, with the content of that change contained in the obejct.However I'm at a loss to find something appropriate for things like buddy state notifications. Both initial state (when signing in) and changed state. The types of state from XMPP are ONLINE, OFFLINE, DND, AWAY. However there's no real verb to describe that a user is publishing their state notification.(apologies if this is a duplicate post - I sent this to the list a week ago and it appears as if it never went through)I am in the process of implementing a set of XMPP actions using AS as the protocol. I'm using the friend request set of verbs to add/remove people from your roster (request, remove, make-friend), and send (obviously) for sending/receiving messages.
Hi all,
Nick
--