Show / Hide Table of Contents

Class LeagueList

Inheritance
System.Object
System.Collections.Generic.List<League>
LeagueList
Namespace: ClashOfClans.Models
Assembly: ClashOfClans.Models.dll
Syntax
public class LeagueList : List<League>, IList<League>, ICollection<League>, IReadOnlyList<League>, IReadOnlyCollection<League>, IEnumerable<League>, IList, ICollection, IEnumerable

Properties

| Improve this Doc View Source

Item[String]

Provides an access to League data for the named league.

Declaration
public League this[string name] { get; }
Parameters
Type Name Description
System.String name

League name

Property Value
Type Description
League

League data

Examples
var coc = new ClashOfClansClient(token);
var leagues = (LeagueList)await coc.Leagues.GetLeaguesAsync();
var league = leagues["Legend League"];
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX