コード例 #1
0
 /// <summary>
 /// Create a new instance of the <see cref="RecipeMailContent"/> class.
 /// </summary>
 /// <param name="text">The text content of the mail.</param>
 /// <param name="recipe">The recipe attached to the mail. Can be <c>null</c>.</param>
 /// <exception cref="ArgumentNullException">The specified <paramref name="text"/> is <c>null</c>.</exception>
 public RecipeMailContent(string text, RecipeData recipe)
     : base(text)
 {
     this.Recipe = recipe;
 }
コード例 #2
0
 /// <summary>
 /// Create a new instance of the <see cref="RecipeMail"/> class.
 /// </summary>
 /// <param name="id">The ID of the mail.</param>
 /// <param name="text">The text content of the mail.</param>
 /// <param name="recipe">The recipe attached to the mail. Can be <c>null</c>.</param>
 /// <exception cref="ArgumentException">The specified <paramref name="id"/> is <c>null</c>, empty or contains only whitespace characters.</exception>
 /// <exception cref="ArgumentNullException">The specified <paramref name="text"/> is <c>null</c>.</exception>
 public RecipeMail(string id, string text, RecipeData recipe)
     : base(id, text)
 {
     this.Recipe = recipe;
 }
コード例 #3
0
 /// <summary>
 /// Create a new instance of the <see cref="RecipeMailInteractionRecord"/> class.
 /// </summary>
 /// <param name="recipe">The recipe received by the player. Can be <c>null</c>.</param>
 public RecipeMailInteractionRecord(RecipeData recipe)
 {
     this.Recipe = recipe;
 }