private void logMark(ref string logContents) { var networkName = string.Empty; var mark = MarkManager.GetMark(); if (mark.HasFlag(Mark.Hulu) && mark.HasFlag(Mark.Netflix)) { networkName = "HN"; } else if (mark.HasFlag(Mark.Hulu)) { networkName = "H"; } else if (mark.HasFlag(Mark.Netflix)) { networkName = "N"; } if (!string.IsNullOrWhiteSpace(networkName)) { logContents += DateTime.UtcNow + ": MarkManager: Issue contacting the PlayOn Service. Error code: " + networkName + ". Please forward to development for investigation." + Environment.NewLine; } }
public async Task AddToQueue(ContentItemEx item) { Mark mark = MarkManager.GetMark(); if (mark.HasFlag(Mark.Hulu) || mark.HasFlag(Mark.Netflix)) { await Application.Current.MainPage.DisplayAlert("Error", "We're sorry but there is currently an issue with the PlayOn Cloud service. Please try again later.", "OK"); return; } if (!SharedSettingsService.Instance.GetBoolValue("IsLegalDisclaimerAccepted")) { if (await MessagingCenterManager.ShowPopup(new LegalDisclaimer())) { SharedSettingsService.Instance.SetBoolValue("IsLegalDisclaimerAccepted", true); } else { return; } } if (await addToQueue(item)) { await Update(); } else { await Application.Current.MainPage.DisplayAlert("Queue Error", "There was an error queueing the video for recording.", "OK"); } await accountViewModel.FetchUserCreditsAsync(); }