Class Unit
Unit data object. This class is automatically generated.
Inheritance
System.Object
Unit
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Camille.RiotGames.TftMatchV1
Assembly: Camille.RiotGames.dll
Syntax
public class Unit
Constructors
| Improve this Doc View SourceUnit()
Declaration
public Unit()
Properties
| Improve this Doc View Source_AdditionalProperties
Contains any extra JSON properties that did not map to fields.
Declaration
[JsonExtensionData]
public Dictionary<string, object> _AdditionalProperties { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Object> |
CharacterId
This field was introduced in patch 9.22 with data_version 2.
Declaration
[JsonPropertyName("character_id")]
public string CharacterId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Chosen
If a unit is chosen as part of the Fates set mechanic, the chosen trait will be indicated by this field. Otherwise this field is excluded from the response.
Declaration
[JsonPropertyName("chosen")]
public string Chosen { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ItemNames
Declaration
[JsonPropertyName("itemNames")]
public string[] ItemNames { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
Items
A list of the unit's items. Please refer to the Teamfight Tactics documentation for item ids.
Declaration
[JsonPropertyName("items")]
public int[] Items { get; set; }
Property Value
Type | Description |
---|---|
System.Int32[] |
Name
Unit name. This field is often left blank.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Rarity
Unit rarity. This doesn't equate to the unit cost.
Declaration
[JsonPropertyName("rarity")]
public int Rarity { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Tier
Unit tier.
Declaration
[JsonPropertyName("tier")]
public int Tier { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()