OpenXbox / xbox-webapi-python

A python library to authenticate with Xbox Live via your Microsoft Account and provides Xbox related Web-API.
https://pypi.python.org/pypi/xbox-webapi
MIT License
175 stars 44 forks source link

Updated Presence Api #59

Closed Gurrman375 closed 3 years ago

Gurrman375 commented 3 years ago

Now the provider will print the user the Device Record in a clean print.

Example: devices=[DeviceRecord(titles=[TitleRecord(id='750323071', name='', activity=None, lastModified='2021-05-07T21:50:47.7329203Z', placement='Background', state='Active'), TitleRecord(id='342226876', name='', activity=None, lastModified='2021-05-07T21:50:47.7329203Z', placement='Full', state='Active')], type='Scarlett'), DeviceRecord(titles=[TitleRecord(id='1144039928', name='', activity=None, lastModified='2021-05-07T21:46:51.484922Z', placement='Full', state='Active')], type='Win32'), DeviceRecord(titles=[TitleRecord(id='1144039928', name='', activity=None, lastModified='2021-05-07T21:48:28.4841154Z', placement='Full', state='Active')], type='WindowsOneCore')]

tuxuser commented 3 years ago

To be on the safe side, could you wrap all the fields into Optional[]. Thanks

Gurrman375 commented 3 years ago

Done.