public class YoutubeActivityUtil extends Object
Constructor and Description |
---|
YoutubeActivityUtil() |
Modifier and Type | Method and Description |
---|---|
static org.apache.streams.pojo.json.Actor |
createActorForChannel(com.google.api.services.youtube.model.Channel channel) |
static String |
formatId(String... idparts)
Formats the ID to conform with the Apache Streams activity ID convention
|
static org.apache.streams.pojo.json.Provider |
getProvider()
Gets the common youtube
Provider object |
static void |
updateActivity(com.google.api.services.youtube.model.Channel channel,
org.apache.streams.pojo.json.Activity activity,
String channelId)
Given a
Channel object and an
Activity object, fill out the appropriate details |
static void |
updateActivity(com.google.api.services.youtube.model.Video video,
org.apache.streams.pojo.json.Activity activity,
String channelId)
Given a
YouTube.Videos object and an
Activity object, fill out the appropriate details |
public static void updateActivity(com.google.api.services.youtube.model.Video video, org.apache.streams.pojo.json.Activity activity, String channelId) throws ActivitySerializerException
YouTube.Videos
object and an
Activity
object, fill out the appropriate detailsvideo
- activity
- ActivitySerializerException
public static void updateActivity(com.google.api.services.youtube.model.Channel channel, org.apache.streams.pojo.json.Activity activity, String channelId) throws ActivitySerializerException
Channel
object and an
Activity
object, fill out the appropriate detailschannel
- activity
- ActivitySerializerException
public static org.apache.streams.pojo.json.Actor createActorForChannel(com.google.api.services.youtube.model.Channel channel)
public static org.apache.streams.pojo.json.Provider getProvider()
Provider
objectCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.