ShopItem
A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Models.Shared.
An item in Alta's shop, such as a cosmetic or a set.
- Listed in Alta.Api.DataTransferModels
- Inherits or implements
IIdentifiable - Derived types
ShopItemDetailed
Constructors
| Member | What it is |
|---|---|
ShopItem() | Creates a ShopItem with default values. |
Properties
| Member | What it is |
|---|---|
bool CanOnlyBeBoughtOnce { get; set; } | True if a user may only buy it once. Defaults to true. |
int Id { get; set; } | The item's numeric id. |
bool IsEnabled { get; set; } | Whether the item is on sale. Not part of the JSON. |
bool IsSet { get; } | True when the SKU starts with set_, meaning the item is a bundle. |
string Name { get; set; } | Display name. |
ShopPrice Price { get; set; } | The item's price. |
int PurchaseCount { get; set; } | How many times it has been bought. |
string Sku { get; set; } | The item's SKU, its text id. |
Methods
| Member | What it is |
|---|---|
override string ToString() | Formats as Id - Sku. |
Used in
Members of other types that take, return or hold a ShopItem: