Class LocationList
Namespace: ClashOfClans.Models
Assembly: ClashOfClans.Models.dll
Syntax
public class LocationList : List<Location>, IList<Location>, ICollection<Location>, IReadOnlyList<Location>, IReadOnlyCollection<Location>, IEnumerable<Location>, IList, ICollection, IEnumerable
Properties
| Improve this Doc View SourceItem[String]
Provides an access to Location data for the named location.
Declaration
public Location this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
String | name | Location name |
Property Value
Type | Description |
---|---|
Location | Location data |
Examples
var coc = new ClashOfClansClient(token);
var locations = (LocationList)await coc.Locations.GetLocationsAsync();
var location = locations["Finland"];