mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-03 01:39:28 +02:00
Send platform-dependent client token request
This commit is contained in:
parent
31c682453b
commit
cb1cfddb74
4 changed files with 63 additions and 14 deletions
|
@ -15,7 +15,8 @@ message PlatformSpecificData {
|
|||
oneof data {
|
||||
NativeAndroidData android = 1;
|
||||
NativeIOSData ios = 2;
|
||||
NativeWindowsData windows = 4;
|
||||
NativeDesktopMacOSData desktop_macos = 3;
|
||||
NativeDesktopWindowsData desktop_windows = 4;
|
||||
NativeDesktopLinuxData desktop_linux = 5;
|
||||
}
|
||||
}
|
||||
|
@ -32,6 +33,7 @@ message NativeAndroidData {
|
|||
}
|
||||
|
||||
message NativeIOSData {
|
||||
// https://developer.apple.com/documentation/uikit/uiuserinterfaceidiom
|
||||
int32 user_interface_idiom = 1;
|
||||
bool target_iphone_simulator = 2;
|
||||
string hw_machine = 3;
|
||||
|
@ -39,7 +41,7 @@ message NativeIOSData {
|
|||
string simulator_model_identifier = 5;
|
||||
}
|
||||
|
||||
message NativeWindowsData {
|
||||
message NativeDesktopWindowsData {
|
||||
int32 os_version = 1;
|
||||
int32 os_build = 3;
|
||||
// https://docs.microsoft.com/en-us/dotnet/api/system.platformid?view=net-6.0
|
||||
|
@ -60,6 +62,12 @@ message NativeDesktopLinuxData {
|
|||
string hardware = 4; // -i
|
||||
}
|
||||
|
||||
message NativeDesktopMacOSData {
|
||||
string system_version = 1;
|
||||
string hw_model = 2;
|
||||
string compiled_cpu_type = 3;
|
||||
}
|
||||
|
||||
message Screen {
|
||||
int32 width = 1;
|
||||
int32 height = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue