public enum CondSource extends Enum<CondSource>
| Enum Constant and Description |
|---|
API
1是API创建的卡券数据
|
MP
0为公众平台创建的卡券数据
|
| Modifier and Type | Field and Description |
|---|---|
private int |
type |
| Modifier and Type | Method and Description |
|---|---|
static CondSource |
deserialize(int type)
Deserialize CondSource.
|
int |
getType()
Gets type.
|
static CondSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CondSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CondSource MP
public static final CondSource API
public static CondSource[] values()
for (CondSource c : CondSource.values()) System.out.println(c);
public static CondSource 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 CondSource deserialize(int type)
type - the typepublic int getType()
Copyright © 2023. All rights reserved.