Ejemplo n.º 1
0
 /// <summary>
 ///  Checks if the user has completed the get started tutorial.
 /// </summary>
 /// <param name="botData">Mandatory. User's private bot data</param>
 public bool hasCompletedGetStarted(IBotData botData)
 {
     return(botData.GetValueOrDefault <bool>(DataStoreKey.HasCompletedGetStarted));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the users preferred bot personality from BotData.
 /// </summary>
 /// <param name="botData">Mandatory. Users private bot data.</param>
 public PersonalityChatPersona GetPreferredBotPersona(IBotData botData)
 {
     return(botData.GetValueOrDefault <PersonalityChatPersona>(DataStoreKey.PreferredBotPersona));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the users preferred weather location from BotData.
 /// </summary>
 /// <param name="botData">Mandatory. User's private bot data.</param>
 public City GetPreferredWeatherLocation(IBotData botData)
 {
     return(botData.GetValueOrDefault <City>(DataStoreKey.PreferredWeatherLocation));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Gets the users preferred name from BotData.
 /// </summary>
 /// <param name="botData">Mandatory. Users private bot data.</param>
 public string GetPreferredName(IBotData botData)
 {
     return(botData.GetValueOrDefault <string>(DataStoreKey.PreferredFirstName));
 }