ClientInfo.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace FastReport.Cloud.StorageClient.SkyDrive
  5. {
  6. /// <summary>
  7. /// Represents the information about SkyDrive application.
  8. /// </summary>
  9. public class ClientInfo
  10. {
  11. #region Fields
  12. private string name;
  13. #pragma warning disable FR0001 // Field names must be longer than 2 characters.
  14. private string id;
  15. #pragma warning restore FR0001 // Field names must be longer than 2 characters.
  16. private string secret;
  17. #endregion // Fields
  18. #region Properties
  19. /// <summary>
  20. /// Gets or sets the client name.
  21. /// </summary>
  22. public string Name
  23. {
  24. get { return name; }
  25. set { name = value; }
  26. }
  27. /// <summary>
  28. /// Gets or sets the client ID.
  29. /// </summary>
  30. public string Id
  31. {
  32. get { return id; }
  33. set { id = value; }
  34. }
  35. /// <summary>
  36. /// Gets or sets the client secret.
  37. /// </summary>
  38. public string Secret
  39. {
  40. get { return secret; }
  41. set { secret = value; }
  42. }
  43. #endregion // Properties
  44. #region Constructors
  45. /// <summary>
  46. /// Initializes a new instance of the <see cref="ClientInfo"/> class.
  47. /// </summary>
  48. /// <param name="name">The client name.</param>
  49. /// <param name="id">The client ID.</param>
  50. /// <param name="secret">The client secret.</param>
  51. public ClientInfo(string name, string id, string secret)
  52. {
  53. this.name = name;
  54. this.id = id;
  55. this.secret = secret;
  56. }
  57. #endregion // Constructors
  58. }
  59. }