Installation:
Install-Package 7kruger.STRATZ
var yatoroSteamAccountId = 321580662;
var query = new DotaQueryQueryBuilder()
.WithPlayer(
new PlayerTypeQueryBuilder()
.WithSteamAccount(new SteamAccountTypeQueryBuilder()
.WithId()
.WithName()
.WithProfileUri()
.WithAvatar()
.WithIsDotaPlusSubscriber()
.WithDotaAccountLevel()
.WithIsAnonymous()
.WithSeasonRank()
.WithSeasonLeaderboardRank()
.WithSeasonLeaderboardDivisionId()
.WithProSteamAccount(new ProSteamAccountTypeQueryBuilder()
.WithName()
.WithRealName())
)
.WithMatchCount()
.WithWinCount()
.WithFirstMatchDate()
.WithLastMatchDate()
,
yatoroSteamAccountId)
.Build(STRATZ.Formatting.Indented);
results into
query {
player(steamAccountId: 321580662) {
steamAccount {
id
name
profileUri
avatar
isDotaPlusSubscriber
dotaAccountLevel
isAnonymous
seasonRank
seasonLeaderboardRank
seasonLeaderboardDivisionId
proSteamAccount {
name
realName
}
}
matchCount
winCount
firstMatchDate
lastMatchDate
}
}
Read more about usage here