Token.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace FastReport.Cloud.OAuth
  5. {
  6. /// <summary>
  7. /// Represents the OAuth token credentials.
  8. /// </summary>
  9. public class Token
  10. {
  11. #region Fields
  12. private string tokenKey;
  13. private string tokenSecret;
  14. #endregion // Fields
  15. #region Properties
  16. /// <summary>
  17. /// Gets the token key.
  18. /// </summary>
  19. public string TokenKey
  20. {
  21. get { return tokenKey; }
  22. set { tokenKey = value; }
  23. }
  24. /// <summary>
  25. /// Gets the token secret.
  26. /// </summary>
  27. public string TokenSecret
  28. {
  29. get { return tokenSecret; }
  30. set { tokenSecret = value; }
  31. }
  32. #endregion //Properties
  33. #region Constructors
  34. /// <summary>
  35. /// Initializes a new instance of the <see cref="Token"/> class.
  36. /// </summary>
  37. /// <param name="tokenKey">The token key.</param>
  38. /// <param name="tokenSecret">The token secret.</param>
  39. public Token(string tokenKey, string tokenSecret)
  40. {
  41. this.tokenKey = tokenKey;
  42. this.tokenSecret = tokenSecret;
  43. }
  44. #endregion // Constructors
  45. }
  46. }