Package im.zego.zegoexpress.constants
Enum ZegoCopyrightedMusicBillingMode
- java.lang.Object
-
- java.lang.Enum<ZegoCopyrightedMusicBillingMode>
-
- im.zego.zegoexpress.constants.ZegoCopyrightedMusicBillingMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ZegoCopyrightedMusicBillingMode>
public enum ZegoCopyrightedMusicBillingMode extends java.lang.Enum<ZegoCopyrightedMusicBillingMode>
VOD billing mode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COUNT
Pay-per-use.Each time a user obtains a song resource, a charge is required, that is, the user will be charged for each time based on the actual call to obtain the song resource interface (such as [requestResource] etc.).MASTER
Monthly billing by master.ROOM
Monthly billing by room.The room users are billed on a monthly basis, that is, statistical calls to obtain song resources (such as [requestResource], etc.) are passed as Roomid for a monthly subscription of the room, and fees are charged on a monthly basis.USER
Monthly billing by user.Billing for a single user is based on the monthly dimension, that is, the statistics call to obtain song resources (such as [requestResource], etc.) and the parameters are the user ID of the monthly subscription, and the charging is based on the monthly dimension.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoCopyrightedMusicBillingMode
getZegoCopyrightedMusicBillingMode(int value)
int
value()
static ZegoCopyrightedMusicBillingMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ZegoCopyrightedMusicBillingMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COUNT
public static final ZegoCopyrightedMusicBillingMode COUNT
Pay-per-use.Each time a user obtains a song resource, a charge is required, that is, the user will be charged for each time based on the actual call to obtain the song resource interface (such as [requestResource] etc.).
-
USER
public static final ZegoCopyrightedMusicBillingMode USER
Monthly billing by user.Billing for a single user is based on the monthly dimension, that is, the statistics call to obtain song resources (such as [requestResource], etc.) and the parameters are the user ID of the monthly subscription, and the charging is based on the monthly dimension.
-
ROOM
public static final ZegoCopyrightedMusicBillingMode ROOM
Monthly billing by room.The room users are billed on a monthly basis, that is, statistical calls to obtain song resources (such as [requestResource], etc.) are passed as Roomid for a monthly subscription of the room, and fees are charged on a monthly basis.
-
MASTER
public static final ZegoCopyrightedMusicBillingMode MASTER
Monthly billing by master. Every time a user obtains a resource, it is counted as the owner’s acquisition of resources, that is, according to the actual call to obtain the song resource interface (such as [requestResource], etc.), the parameters are passed as the Roomid of the room and the Masterid of the owner, and the fee is charged according to the owner.
-
-
Method Detail
-
values
public static ZegoCopyrightedMusicBillingMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ZegoCopyrightedMusicBillingMode c : ZegoCopyrightedMusicBillingMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ZegoCopyrightedMusicBillingMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
value
public int value()
-
getZegoCopyrightedMusicBillingMode
public static ZegoCopyrightedMusicBillingMode getZegoCopyrightedMusicBillingMode(int value)
-
-