public class YoutubeActivityUtil extends Object
Constructor and Description |
---|
YoutubeActivityUtil() |
Modifier and Type | Method and Description |
---|---|
static ActivityObject |
createActorForChannel(com.google.api.services.youtube.model.Channel channel)
createActorForChannel.
|
static String |
formatId(String... idparts)
Formats the ID to conform with the Apache Streams activity ID convention
|
static Provider |
getProvider()
Gets the common youtube
Provider object |
static void |
updateActivity(com.google.api.services.youtube.model.Channel channel,
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,
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, Activity activity, String channelId) throws ActivitySerializerException
YouTube.Videos
object and an
Activity
object, fill out the appropriate detailsvideo
- Videoactivity
- ActivityActivitySerializerException
- ActivitySerializerExceptionpublic static void updateActivity(com.google.api.services.youtube.model.Channel channel, Activity activity, String channelId) throws ActivitySerializerException
Channel
object and an
Activity
object, fill out the appropriate detailschannel
- Channelactivity
- ActivityActivitySerializerException
- ActivitySerializerExceptionpublic static ActivityObject createActorForChannel(com.google.api.services.youtube.model.Channel channel)
channel
- Channelpublic static Provider getProvider()
Provider
objectCopyright © 2018 The Apache Software Foundation. All rights reserved.