com.google.api.services.youtube.model.ChannelStatistics

Here are the examples of the java api class com.google.api.services.youtube.model.ChannelStatistics taken from open source projects.

1. YoutubeChannelDeserializer#setChannelStatistics()

View license
protected ChannelStatistics setChannelStatistics(JsonNode node) {
    ChannelStatistics stats = new ChannelStatistics();
    if (node == null) {
        return stats;
    }
    stats.setCommentCount(node.get("commentCount").bigIntegerValue());
    stats.setHiddenSubscriberCount(node.get("hiddenSubscriberCount").asBoolean());
    stats.setSubscriberCount(node.get("subscriberCount").bigIntegerValue());
    stats.setVideoCount(node.get("videoCount").bigIntegerValue());
    stats.setViewCount(node.get("viewCount").bigIntegerValue());
    return stats;
}