Skip to content

Commit

Permalink
fix: Add enum value for event types (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansi-mParticle authored Jul 8, 2024
1 parent e784d81 commit b6ecb8a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion android-core/src/main/java/com/mparticle/MParticle.java
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,17 @@ public static void removeListener(SdkListener listener) {
* @see #logEvent(BaseEvent)
*/
public enum EventType {
Unknown, Navigation, Location, Search, Transaction, UserContent, UserPreference, Social, Other, Media;
Unknown(0), Navigation(1), Location(2), Search(3), Transaction(4), UserContent(5), UserPreference(6), Social(7), Other(8), Media(9);

private final int value;

EventType(final int newValue) {
value = newValue;
}

public int getValue() {
return value;
}

@NonNull
public String toString() {
Expand Down

0 comments on commit b6ecb8a

Please sign in to comment.