Advertisement
yahorrr

Untitled

Oct 10th, 2022
845
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 6.87 KB | None | 0 0
  1. using System.Globalization;
  2.  
  3. namespace BookStoreItem
  4. {
  5.     /// <summary>
  6.     /// Represents the an item in a book store.
  7.     /// </summary>
  8.     public class BookStoreItem
  9.     {
  10.         private readonly string? authorName;
  11.         private readonly bool hasIsni;
  12.         private decimal price;
  13.         private string currency;
  14.         private int amount;
  15.  
  16.         /// <summary>
  17.         /// Initializes a new instance of the <see cref="BookStoreItem"/> class with the specified <paramref name="authorName"/>, <paramref name="title"/>, <paramref name="publisher"/> and <paramref name="isbn"/>.
  18.         /// </summary>
  19.         /// <param name="authorName">A book author's name.</param>
  20.         /// <param name="title">A book title.</param>
  21.         /// <param name="publisher">A book publisher.</param>
  22.         /// <param name="isbn">A book ISBN.</param>
  23.         public BookStoreItem(string authorName, string title, string publisher, string isbn)
  24.         {
  25.  
  26.         }
  27.  
  28.         /// <summary>
  29.         /// Initializes a new instance of the <see cref="BookStoreItem"/> class with the specified <paramref name="authorName"/>, <paramref name="isni"/>, <paramref name="title"/>, <paramref name="publisher"/> and <paramref name="isbn"/>.
  30.         /// </summary>
  31.         /// <param name="authorName">A book author's name.</param>
  32.         /// <param name="isni">A book author's ISNI.</param>
  33.         /// <param name="title">A book title.</param>
  34.         /// <param name="publisher">A book publisher.</param>
  35.         /// <param name="isbn">A book ISBN.</param>
  36.         public BookStoreItem(string authorName, string isni, string title, string publisher, string isbn)
  37.         {
  38.  
  39.         }
  40.  
  41.         /// <summary>
  42.         /// Initializes a new instance of the <see cref="BookStoreItem"/> class with the specified <paramref name="authorName"/>, <paramref name="title"/>, <paramref name="publisher"/> and <paramref name="isbn"/>, <paramref name="published"/>, <paramref name="bookBinding"/>, <paramref name="price"/>, <paramref name="currency"/> and <paramref name="amount"/>.
  43.         /// </summary>
  44.         /// <param name="authorName">A book author's name.</param>
  45.         /// <param name="title">A book title.</param>
  46.         /// <param name="publisher">A book publisher.</param>
  47.         /// <param name="isbn">A book ISBN.</param>
  48.         /// <param name="published">A book publishing date.</param>
  49.         /// <param name="bookBinding">A book binding type.</param>
  50.         /// <param name="price">An amount of money that a book costs.</param>
  51.         /// <param name="currency">A price currency.</param>
  52.         /// <param name="amount">An amount of books in the store's stock.</param>
  53.         public BookStoreItem(string authorName, string title, string publisher, string isbn, DateTime? published,
  54.             string bookBinding, decimal price, string currency, int amount)
  55.         {
  56.  
  57.         }
  58.  
  59.         /// <summary>
  60.         /// Initializes a new instance of the <see cref="BookStoreItem"/> class with the specified <paramref name="authorName"/>, <paramref name="isni"/>, <paramref name="title"/>, <paramref name="publisher"/> and <paramref name="isbn"/>, <paramref name="published"/>, <paramref name="bookBinding"/>, <paramref name="price"/>, <paramref name="currency"/> and <paramref name="amount"/>.
  61.         /// </summary>
  62.         /// <param name="authorName">A book author's name.</param>
  63.         /// <param name="isni">A book author's ISNI.</param>
  64.         /// <param name="title">A book title.</param>
  65.         /// <param name="publisher">A book publisher.</param>
  66.         /// <param name="isbn">A book ISBN.</param>
  67.         /// <param name="published">A book publishing date.</param>
  68.         /// <param name="bookBinding">A book binding type.</param>
  69.         /// <param name="price">An amount of money that a book costs.</param>
  70.         /// <param name="currency">A price currency.</param>
  71.         /// <param name="amount">An amount of books in the store's stock.</param>
  72.         public BookStoreItem(string authorName, string isni, string title, string publisher, string isbn,
  73.             DateTime? published,
  74.             string bookBinding, decimal price, string currency, int amount)
  75.         {
  76.  
  77.         }
  78.  
  79.         /// <summary>
  80.         /// Gets a book author's name.
  81.         /// </summary>
  82.         public string? GetAuthorName
  83.         {
  84.             get { return authorName; }
  85.         }
  86.  
  87.         /// <summary>
  88.         /// Gets an International Standard Name Identifier (ISNI) that uniquely identifies a book author.
  89.         /// </summary>
  90.         public string? GetIsni
  91.         {
  92.             get { return GetTitle; }
  93.         }
  94.  
  95.         /// <summary>
  96.         /// Gets a value indicating whether an author has an International Standard Name Identifier (ISNI).
  97.         /// </summary>
  98.         // TODO Add a property.
  99.  
  100.         /// <summary>
  101.         /// Gets a book title.
  102.         /// </summary>
  103.         public string? GetTitle { get; private set; }
  104.  
  105.         /// <summary>
  106.         /// Gets a book publisher.
  107.         /// </summary>
  108.         public string? GetPublisher { get; private set; }
  109.  
  110.         /// <summary>
  111.         /// Gets a book International Standard Book Number (ISBN).
  112.         /// </summary>
  113.         public string? GetIsbn { get; private set; }
  114.  
  115.         /// <summary>
  116.         /// Gets or sets a book publishing date.
  117.         /// </summary>
  118.         public DateTime? GetPublished { get; }
  119.  
  120.         /// <summary>
  121.         /// Gets or sets a book binding type.
  122.         /// </summary>
  123.         // TODO Add a property.
  124.  
  125.         /// <summary>
  126.         /// Gets or sets an amount of money that a book costs.
  127.         /// </summary>
  128.         // TODO Add a property.
  129.  
  130.         /// <summary>
  131.         /// Gets or sets a price currency.
  132.         /// </summary>
  133.         // TODO Add a property.
  134.  
  135.         /// <summary>
  136.         /// Gets or sets an amount of books in the store's stock.
  137.         /// </summary>
  138.         // TODO Add a property.
  139.  
  140.         /// <summary>
  141.         /// Gets a <see cref="Uri"/> to the contributor's page at the isni.org website.
  142.         /// </summary>
  143.         /// <returns>A <see cref="Uri"/> to the contributor's page at the isni.org website.</returns>
  144.         // TODO Add an instance method.
  145.  
  146.         /// <summary>
  147.         /// Gets an <see cref="Uri"/> to the publication page on the isbnsearch.org website.
  148.         /// </summary>
  149.         /// <returns>an <see cref="Uri"/> to the publication page on the isbnsearch.org website.</returns>
  150.         // TODO Add an instance method.
  151.  
  152.         /// <summary>
  153.         /// Returns the string that represents a current object.
  154.         /// </summary>
  155.         /// <returns>A string that represents the current object.</returns>
  156.         // TODO Add an instance method.
  157.  
  158.         // TODO Add a static method.
  159.  
  160.         // TODO Add a static method.
  161.  
  162.         // TODO Add a static method.
  163.  
  164.         // TODO Add a static method.
  165.     }
  166. }
  167.  
  168.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement