Skip to content

Instantly share code, notes, and snippets.

return new MediaInfo.Builder("http://www.soundjay.com/nature/rain-01.mp3")
.setStreamType(MediaInfo.STREAM_TYPE_BUFFERED)
.setContentType("audio/mpeg")
{
"kind": "like",
"created_at": "2010/12/21 02:18:31 +0000",
"track": {
"kind": "track",
"id": 8265438,
"created_at": "2010/12/21 01:00:20 +0000",
"user_id": 14567,
"duration": 7073675,
"commentable": true,
// THIS IS A BETA! I DON'T RECOMMEND USING IT IN PRODUCTION CODE JUST YET
/*
* Copyright 2012 Roman Nurik
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
<plurals name="dashboard_notifications_activity_message_activity">
<item quantity="one">from %2$s on %1$s</item>
<item quantity="two">Comments and likes from %2$s and %3$s</item>
<item quantity="other">Comments and likes from %2$s, %3$s and others</item>
</plurals>
<plurals name="dashboard_notifications_activity_message_comment">
<item quantity="two">Comments from %1$s and %2$s</item>
<item quantity="other">Comments from %1$s, %2$s and others</item>
</plurals>
<plurals name="dashboard_notifications_activity_message_comment_single_track">
@jonschmidt
jonschmidt / favoriting_example.xml
Created July 18, 2011 14:27
favoriting example
<activity>
<type>favoriting</type>
<created-at type="datetime">2011-07-18T14:05:07Z</created-at>
<origin>
<track>
<id type="integer">1207553</id>
<permalink>9-walls</permalink>
<title>9 walls</title>
<permalink-url>http://soundcloud.com/josip-klobucar/9-walls</permalink-url>
<uri>https://api.soundcloud.com/tracks/1207553</uri>