コード例 #1
0
 /// <summary>
 /// Sets the users preferred weather location to BotData.
 /// </summary>
 /// <param name="botData">Mandatory. User's private bot data.</param>
 /// <param name="city">Mandatory. The city to save as the users preferred
 /// weather location.</param>
 public void setPreferredWeatherLocation(IBotData botData, City city)
 {
     botData.SetValue(DataStoreKey.PreferredWeatherLocation, city);
 }
コード例 #2
0
 /// <summary>
 /// Sets the users preferred name to BotData.
 /// </summary>
 /// <param name="botData">Mandatory. Users private bot data.</param>
 /// <param name="name">Mandatory. Name to set as the user's preferred name.</param>
 public void SetPreferredName(IBotData botData, string name)
 {
     botData.SetValue(DataStoreKey.PreferredFirstName, name);
 }
コード例 #3
0
 /// <summary>
 /// Sets the users preferred bot personality to BotData.
 /// </summary>
 /// <param name="botData">Mandatory. User's private bot data.</param>
 /// <param name="persona">Mandatory. The bot personality to set as the users
 /// preferred bot personality</param>
 public void SetPreferredBotPersona(IBotData botData, PersonalityChatPersona persona)
 {
     botData.SetValue(DataStoreKey.PreferredBotPersona, persona);
 }
コード例 #4
0
 /// <summary>
 /// Sets the new user status once the user has completed the
 /// get started tutorial
 /// </summary>
 /// <param name="botData">Mandatory. User's private bot data.</param>
 /// <param name="isNewUser">mandatory. Whether user has completed get
 /// started tutorial or not.</param>
 public void SethasCompletedGetStarted(IBotData botData, bool isNewUser)
 {
     botData.SetValue(DataStoreKey.HasCompletedGetStarted, isNewUser);
 }