ConnectData.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. namespace MediaBrowser.Server.Implementations.Connect
  4. {
  5. public class ConnectData
  6. {
  7. /// <summary>
  8. /// Gets or sets the server identifier.
  9. /// </summary>
  10. /// <value>The server identifier.</value>
  11. public string ServerId { get; set; }
  12. /// <summary>
  13. /// Gets or sets the access key.
  14. /// </summary>
  15. /// <value>The access key.</value>
  16. public string AccessKey { get; set; }
  17. /// <summary>
  18. /// Gets or sets the authorizations.
  19. /// </summary>
  20. /// <value>The authorizations.</value>
  21. public List<ConnectAuthorization> Authorizations { get; set; }
  22. public ConnectData()
  23. {
  24. Authorizations = new List<ConnectAuthorization>();
  25. }
  26. }
  27. public class ConnectAuthorization
  28. {
  29. public string LocalUserId { get; set; }
  30. public string AccessToken { get; set; }
  31. public ConnectAuthorization()
  32. {
  33. AccessToken = new Guid().ToString("N");
  34. }
  35. }
  36. }