public string VideoPlaybackError() { string value = KorraModelHelper.GetChance(new string[] { "Sorry. Music playback did not work.", "Oops. There was a problem with music playback.", }, lastMusicFailure); lastMusicFailure = value; if (KorraModelHelper.GetChance(3)) { if (KorraModelHelper.GetChance(2)) { value += " I know it is a ridiculous question, but "; } value += " Are you sure you are connected to the internet? "; if (KorraModelHelper.GetChance(2)) { value += " Please, play some Youtube videos to verify that."; } } return(value); }
//Avoid last one used? YES private string AddSongAnnouncement(string originalText, bool oneSongAlreadyPlanned) { string text = ""; if (oneSongAlreadyPlanned || StatesShared.OneSongAlreadyPlayed) { string value = KorraModelHelper.GetChance(new string[] { "I have a new song for you: ", "Another song: ", "You are going to like this tune: ", "Listen to this song: ", "I am going to play some music: " }, lastSongAnnouncementUsed); lastSongAnnouncementUsed = value; text += (value + originalText) + "."; } else { text += KorraModelHelper.GetChance(new string[] { "I have a nice song for you: ", "Listen to this song: ", "I am going to play some music: " }); text += originalText + "."; text += " Please note that pressing " + ((FlagsShared.IsMobile) ? "Back button" : "Escape") + " at anytime will stop playback."; } return(text); }
public string SayGoodBye() { string text = "OK, "; string Username = factsManager.GetValueByName("UserName"); if (!string.IsNullOrEmpty(Username)) { Username = KorraModelHelper.FirstCharToUpper(Username); } text += KorraModelHelper.GetChance(new string[] { (KorraModelHelper.GetChance(3)) ? "bye" : "goodbye", "See you soon", "Have a good day" }); if (!string.IsNullOrEmpty(Username)) { text += " " + Username; } text += "."; return(text); }
public string MovieSuggestions() { string text = KorraModelHelper.GetChance(new string[] { "I will have some suggestions for you later today.", "Later I can recommend you a few good ones." }); return(text); }