public async Task SetVideoCategory(string videoId, YouTubeVideoCategory category) { var video = await Query <YoutubeVideo>().FirstOrDefaultAsync(v => v.Id == videoId); video.Category = category; await Persist(ops => ops.Update(video)); }
public static void SetYouTubeVideoCategory(YouTubeVideoCategory category) { #if UNITY_IPHONE // Call plugin only when running on real device if (Application.platform == RuntimePlatform.IPhonePlayer) { Debug.Log ("Kamcord.SetYouTubeVideoCategory"); _KamcordSetYouTubeVideoCategory(category.ToString()); } else #endif { Debug.Log ("[NOT CALLED] Kamcord.SetYouTubeSettings"); } }