private void OnGPLoggedIn() { VideoData videoData = null; Service.Get <VideoDataManager>().VideoDatas.TryGetValue(this.videoGuid, out videoData); if (videoData == null) { Service.Get <StaRTSLogger>().ErrorFormat("OnGPLoggedIn: could not find {0}", new object[] { this.videoGuid }); return; } GameServicesManager.Share(Service.Get <Lang>().Get("hn_ui_share_video_from_swc", new object[0]), this.GetYoutubeLink(videoData.YoutubeId), videoData.GetThumbnailURL(ThumbnailSize.MEDIUM)); this.Cleanup(); }
private void PostFB(VideoData videoData) { FacebookManager.Instance.PostVideoToWall(this.GetYoutubeLink(videoData.YoutubeId), videoData.Title, videoData.Title, videoData.GetThumbnailURL(ThumbnailSize.MEDIUM)); }