Files
ersatztv/ErsatzTV.Core/Plex/PlexAuthPin.cs
T
Jason DoveandGitHub c02b83d0d6 code cleanup (#743)
* update tools

* run code cleanup

* update dependencies
2022-04-19 17:47:18 -05:00

16 lines
414 B
C#

namespace ErsatzTV.Core.Plex;
public record PlexAuthPin(int Id, string Code, string ClientIdentifier)
{
public string Url
{
get
{
var clientId = $"clientID={ClientIdentifier}";
var code = $"code={Code}";
var cdp = "context%5Bdevice%5D%5Bproduct%5D=ErsatzTV";
return $"https://app.plex.tv/auth#?{clientId}&{code}&{cdp}";
}
}
}