Class 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 SourceItem[String]
Provides an access to League data for the named league.
Declaration
public League this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
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"];