|
|
|
@ -161,24 +161,149 @@ class TrovoApollo {
|
|
|
|
|
gql`
|
|
|
|
|
query getLiveInfo($params: GetLiveInfoReqInput) {
|
|
|
|
|
getLiveInfo(params: $params) {
|
|
|
|
|
streamerInfo {
|
|
|
|
|
uid
|
|
|
|
|
nickName
|
|
|
|
|
faceUrl
|
|
|
|
|
gender
|
|
|
|
|
userName
|
|
|
|
|
info
|
|
|
|
|
subscribeable
|
|
|
|
|
socialLinks {
|
|
|
|
|
instagram
|
|
|
|
|
twitter
|
|
|
|
|
facebook
|
|
|
|
|
discord
|
|
|
|
|
youtube
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
programInfo {
|
|
|
|
|
id
|
|
|
|
|
coverUrl
|
|
|
|
|
description
|
|
|
|
|
title
|
|
|
|
|
streamInfo {
|
|
|
|
|
bitrate
|
|
|
|
|
playUrl
|
|
|
|
|
desc
|
|
|
|
|
encodeType
|
|
|
|
|
levelType
|
|
|
|
|
playTimeShiftUrl
|
|
|
|
|
vipOnly
|
|
|
|
|
viewerStatus
|
|
|
|
|
}
|
|
|
|
|
defaultLevelType
|
|
|
|
|
startTm
|
|
|
|
|
isOpenLiveTimeShift
|
|
|
|
|
liveTimeShiftDuration
|
|
|
|
|
statusTimeShiftUrl
|
|
|
|
|
tagList {
|
|
|
|
|
tagType
|
|
|
|
|
id
|
|
|
|
|
name
|
|
|
|
|
resourceName
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
categoryInfo {
|
|
|
|
|
id
|
|
|
|
|
name
|
|
|
|
|
shortName
|
|
|
|
|
description
|
|
|
|
|
}
|
|
|
|
|
channelInfo {
|
|
|
|
|
audiType
|
|
|
|
|
id
|
|
|
|
|
languageName
|
|
|
|
|
title
|
|
|
|
|
viewers
|
|
|
|
|
title
|
|
|
|
|
languageName
|
|
|
|
|
audiType
|
|
|
|
|
}
|
|
|
|
|
streamerInfo {
|
|
|
|
|
faceUrl
|
|
|
|
|
gender
|
|
|
|
|
info
|
|
|
|
|
nickName
|
|
|
|
|
subscribeable
|
|
|
|
|
uid
|
|
|
|
|
userName
|
|
|
|
|
isLive
|
|
|
|
|
decorations {
|
|
|
|
|
resourceName
|
|
|
|
|
weight
|
|
|
|
|
}
|
|
|
|
|
channelControlInfo {
|
|
|
|
|
notifyStreamerToChangeChannelInfo
|
|
|
|
|
}
|
|
|
|
|
streamerPrivilegeInfo {
|
|
|
|
|
StreamerBadgeInfos {
|
|
|
|
|
streamerBadge
|
|
|
|
|
resourceName
|
|
|
|
|
description
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
streamerRaidStatusInfo {
|
|
|
|
|
status
|
|
|
|
|
raidID
|
|
|
|
|
streamerNickName
|
|
|
|
|
streamerFaceUrl
|
|
|
|
|
raidStreamerNickName
|
|
|
|
|
raidStreamerFaceUrl
|
|
|
|
|
userFaceUrls
|
|
|
|
|
raiderNum
|
|
|
|
|
leftSeconds
|
|
|
|
|
countDown
|
|
|
|
|
isJoin
|
|
|
|
|
raidTimeout
|
|
|
|
|
raidFrom
|
|
|
|
|
startReadySeconds
|
|
|
|
|
}
|
|
|
|
|
streamerHostInfo {
|
|
|
|
|
hostStatus
|
|
|
|
|
hostID
|
|
|
|
|
programInfo {
|
|
|
|
|
programID
|
|
|
|
|
coverUrl
|
|
|
|
|
description
|
|
|
|
|
title
|
|
|
|
|
streamInfo {
|
|
|
|
|
bitrate
|
|
|
|
|
playUrl
|
|
|
|
|
desc
|
|
|
|
|
encodeType
|
|
|
|
|
levelType
|
|
|
|
|
playTimeShiftUrl
|
|
|
|
|
vipOnly
|
|
|
|
|
viewerStatus
|
|
|
|
|
}
|
|
|
|
|
defaultLevelType
|
|
|
|
|
}
|
|
|
|
|
categoryInfo {
|
|
|
|
|
categoryID
|
|
|
|
|
categoryName
|
|
|
|
|
categoryShortName
|
|
|
|
|
}
|
|
|
|
|
channelInfo {
|
|
|
|
|
channelID
|
|
|
|
|
title
|
|
|
|
|
languageName
|
|
|
|
|
audiType
|
|
|
|
|
}
|
|
|
|
|
hosteeInfo {
|
|
|
|
|
uid
|
|
|
|
|
nickName
|
|
|
|
|
faceUrl
|
|
|
|
|
gender
|
|
|
|
|
userName
|
|
|
|
|
info
|
|
|
|
|
subscribeable
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
scheduleInfo {
|
|
|
|
|
isVisible
|
|
|
|
|
scheduleList {
|
|
|
|
|
categoryID
|
|
|
|
|
categoryName
|
|
|
|
|
categoryShortName
|
|
|
|
|
preview
|
|
|
|
|
cycleType
|
|
|
|
|
timeStatus
|
|
|
|
|
cycleValueList {
|
|
|
|
|
id
|
|
|
|
|
startTm
|
|
|
|
|
endTm
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -190,6 +315,22 @@ class TrovoApollo {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async GetUserFollowCount(uid) {
|
|
|
|
|
return this._query(
|
|
|
|
|
gql`
|
|
|
|
|
query getUserFollowCount ($params: GetUserFollowCountReqInput) {
|
|
|
|
|
getUserFollowCount(params: $params) {
|
|
|
|
|
followingCount
|
|
|
|
|
followerCount
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`,
|
|
|
|
|
{
|
|
|
|
|
uid
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async GetFollowers(uid, start = 0, count = 100, sort = 'TimeDesc') {
|
|
|
|
|
return this._query(
|
|
|
|
|
gql`
|
|
|
|
@ -214,7 +355,7 @@ class TrovoApollo {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`,
|
|
|
|
|
{ uid, start, count, sort },
|
|
|
|
|
{ uid, start, count, sort }
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -477,31 +618,6 @@ class TrovoApollo {
|
|
|
|
|
currencyType
|
|
|
|
|
number
|
|
|
|
|
}
|
|
|
|
|
extInfo {
|
|
|
|
|
startTM
|
|
|
|
|
endTM
|
|
|
|
|
effects
|
|
|
|
|
sort
|
|
|
|
|
settlementValue
|
|
|
|
|
channelID
|
|
|
|
|
giftLevel
|
|
|
|
|
effectSize
|
|
|
|
|
loopBg
|
|
|
|
|
bg
|
|
|
|
|
effectsGif
|
|
|
|
|
loopBgGif
|
|
|
|
|
bgGif
|
|
|
|
|
settlementRate
|
|
|
|
|
saleStatus
|
|
|
|
|
effectsApng
|
|
|
|
|
bgApng
|
|
|
|
|
loopBgApng
|
|
|
|
|
giftType
|
|
|
|
|
clientVersion
|
|
|
|
|
bulletChatType
|
|
|
|
|
specialEffectID
|
|
|
|
|
giftDesc
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
customGifts {
|
|
|
|
|
bg
|
|
|
|
|