什么是“ personastateflags”?
我正在请求此端点/?key=XXX&steamids=76561198049710886
而且我得到这个答复:
{
"response":{
"players":[
{
"steamid":"76561198049710886",
"communityvisibilitystate":3,
"profilestate":1,
"personaname":"testing",
"lastlogoff":1570961241,
"profileurl":"/",
"avatar":".jpg",
"avatarmedium":".jpg",
"avatarfull":".jpg",
"personastate":0,
"realname":"John Doe",
"primaryclanid":"103582791429521408",
"timecreated":1317282093,
"personastateflags":0,
"loccountrycode":"NO"
}
]
}
}
但是我很困惑personastateflags
的意思,我通过搜索找到了一些东西,但是它们都是不同的,而且官方文档没有关于它的任何信息。
我发现的最后一个是这个:
1: 'Offline', 2: 'Online', 4: 'Golden',
64: 'Online using Big Picture',
256: 'Online using Web Client',
512: 'Online using Mobile',
1024: 'Online using Steam Controller'
但是在大多数情况下personastateflags
是0
,所以没有任何意义:/
[我也试图在在线时启动大图片模式,结果是“ 1024”,这是“使用Steam Controller在线”,但不正确。
P.S。
我已成功使用此对象转换了personastate
0: 'Offline', 1: 'Online', 2: 'Busy',
3: 'Away', 4: 'Snooze', 5 :'Looking to Trade',
6: 'Looking to Play'
回答如下:我尚未阅读Steam文档,但这应意味着该用户处于离线状态。
什么是“ personastateflags”?
我正在请求此端点/?key=XXX&steamids=76561198049710886
而且我得到这个答复:
{
"response":{
"players":[
{
"steamid":"76561198049710886",
"communityvisibilitystate":3,
"profilestate":1,
"personaname":"testing",
"lastlogoff":1570961241,
"profileurl":"/",
"avatar":".jpg",
"avatarmedium":".jpg",
"avatarfull":".jpg",
"personastate":0,
"realname":"John Doe",
"primaryclanid":"103582791429521408",
"timecreated":1317282093,
"personastateflags":0,
"loccountrycode":"NO"
}
]
}
}
但是我很困惑personastateflags
的意思,我通过搜索找到了一些东西,但是它们都是不同的,而且官方文档没有关于它的任何信息。
我发现的最后一个是这个:
1: 'Offline', 2: 'Online', 4: 'Golden',
64: 'Online using Big Picture',
256: 'Online using Web Client',
512: 'Online using Mobile',
1024: 'Online using Steam Controller'
但是在大多数情况下personastateflags
是0
,所以没有任何意义:/
[我也试图在在线时启动大图片模式,结果是“ 1024”,这是“使用Steam Controller在线”,但不正确。
P.S。
我已成功使用此对象转换了personastate
0: 'Offline', 1: 'Online', 2: 'Busy',
3: 'Away', 4: 'Snooze', 5 :'Looking to Trade',
6: 'Looking to Play'
回答如下:我尚未阅读Steam文档,但这应意味着该用户处于离线状态。