Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Globalization;
- namespace BookStoreItem
- {
- /// <summary>
- /// Represents the an item in a book store.
- /// </summary>
- public class BookStoreItem
- {
- private readonly string? authorName;
- private readonly bool hasIsni;
- private decimal price;
- private string currency;
- private int amount;
- /// <summary>
- /// 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"/>.
- /// </summary>
- /// <param name="authorName">A book author's name.</param>
- /// <param name="title">A book title.</param>
- /// <param name="publisher">A book publisher.</param>
- /// <param name="isbn">A book ISBN.</param>
- public BookStoreItem(string authorName, string title, string publisher, string isbn)
- {
- }
- /// <summary>
- /// 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"/>.
- /// </summary>
- /// <param name="authorName">A book author's name.</param>
- /// <param name="isni">A book author's ISNI.</param>
- /// <param name="title">A book title.</param>
- /// <param name="publisher">A book publisher.</param>
- /// <param name="isbn">A book ISBN.</param>
- public BookStoreItem(string authorName, string isni, string title, string publisher, string isbn)
- {
- }
- /// <summary>
- /// 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"/>.
- /// </summary>
- /// <param name="authorName">A book author's name.</param>
- /// <param name="title">A book title.</param>
- /// <param name="publisher">A book publisher.</param>
- /// <param name="isbn">A book ISBN.</param>
- /// <param name="published">A book publishing date.</param>
- /// <param name="bookBinding">A book binding type.</param>
- /// <param name="price">An amount of money that a book costs.</param>
- /// <param name="currency">A price currency.</param>
- /// <param name="amount">An amount of books in the store's stock.</param>
- public BookStoreItem(string authorName, string title, string publisher, string isbn, DateTime? published,
- string bookBinding, decimal price, string currency, int amount)
- {
- }
- /// <summary>
- /// 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"/>.
- /// </summary>
- /// <param name="authorName">A book author's name.</param>
- /// <param name="isni">A book author's ISNI.</param>
- /// <param name="title">A book title.</param>
- /// <param name="publisher">A book publisher.</param>
- /// <param name="isbn">A book ISBN.</param>
- /// <param name="published">A book publishing date.</param>
- /// <param name="bookBinding">A book binding type.</param>
- /// <param name="price">An amount of money that a book costs.</param>
- /// <param name="currency">A price currency.</param>
- /// <param name="amount">An amount of books in the store's stock.</param>
- public BookStoreItem(string authorName, string isni, string title, string publisher, string isbn,
- DateTime? published,
- string bookBinding, decimal price, string currency, int amount)
- {
- }
- /// <summary>
- /// Gets a book author's name.
- /// </summary>
- public string? GetAuthorName
- {
- get { return authorName; }
- }
- /// <summary>
- /// Gets an International Standard Name Identifier (ISNI) that uniquely identifies a book author.
- /// </summary>
- public string? GetIsni
- {
- get { return GetTitle; }
- }
- /// <summary>
- /// Gets a value indicating whether an author has an International Standard Name Identifier (ISNI).
- /// </summary>
- // TODO Add a property.
- /// <summary>
- /// Gets a book title.
- /// </summary>
- public string? GetTitle { get; private set; }
- /// <summary>
- /// Gets a book publisher.
- /// </summary>
- public string? GetPublisher { get; private set; }
- /// <summary>
- /// Gets a book International Standard Book Number (ISBN).
- /// </summary>
- public string? GetIsbn { get; private set; }
- /// <summary>
- /// Gets or sets a book publishing date.
- /// </summary>
- public DateTime? GetPublished { get; }
- /// <summary>
- /// Gets or sets a book binding type.
- /// </summary>
- // TODO Add a property.
- /// <summary>
- /// Gets or sets an amount of money that a book costs.
- /// </summary>
- // TODO Add a property.
- /// <summary>
- /// Gets or sets a price currency.
- /// </summary>
- // TODO Add a property.
- /// <summary>
- /// Gets or sets an amount of books in the store's stock.
- /// </summary>
- // TODO Add a property.
- /// <summary>
- /// Gets a <see cref="Uri"/> to the contributor's page at the isni.org website.
- /// </summary>
- /// <returns>A <see cref="Uri"/> to the contributor's page at the isni.org website.</returns>
- // TODO Add an instance method.
- /// <summary>
- /// Gets an <see cref="Uri"/> to the publication page on the isbnsearch.org website.
- /// </summary>
- /// <returns>an <see cref="Uri"/> to the publication page on the isbnsearch.org website.</returns>
- // TODO Add an instance method.
- /// <summary>
- /// Returns the string that represents a current object.
- /// </summary>
- /// <returns>A string that represents the current object.</returns>
- // TODO Add an instance method.
- // TODO Add a static method.
- // TODO Add a static method.
- // TODO Add a static method.
- // TODO Add a static method.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement