Skip to content

7kruger/StratzModels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STRATZ GraphQL Models

NuGet Version Downloads

Nuget package

Installation:

Install-Package 7kruger.STRATZ

Usage

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

Releases

No releases published

Packages

No packages published

Languages