Show / Hide Table of Contents

Class LocationList

Inheritance
System.Object
System.Collections.Generic.List<Location>
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 Source

Item[String]

Provides an access to Location data for the named location.

Declaration
public Location this[string name] { get; }
Parameters
Type Name Description
System.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"];
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX