public enum Product extends Enum<Product>
Enum Constant and Description |
---|
Betpal
Betpal product
|
LCoO
Live cycle-of-odds product
|
LiveOdds
Live odds product
|
MTS
Managed trading services product
|
PremiumCricket |
Unknown |
Modifier and Type | Method and Description |
---|---|
int |
getId()
The product id as seen in messages
|
static Product |
getProductFromId(int id)
Gets a
Product member specified by it's id |
String |
getRecoveryName()
The name of this product as used in the API for recovery
|
static Product |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Product[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Product LiveOdds
public static final Product MTS
public static final Product LCoO
public static final Product Betpal
public static final Product PremiumCricket
public static final Product Unknown
public static Product[] values()
for (Product c : Product.values()) System.out.println(c);
public static Product valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Product getProductFromId(int id)
Product
member specified by it's idpublic int getId()
public String getRecoveryName()
Copyright © 2017–2023. All rights reserved.