
com.urbanairship.connect.client.model.responses.UninstallEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of connect-client Show documentation
Show all versions of connect-client Show documentation
The UA Connect Java client library
/*
Copyright 2015 Urban Airship and Contributors
*/
package com.urbanairship.connect.client.model.responses;
import com.urbanairship.connect.client.model.EventType;
/**
* Uninstall events do not have a message body.
* This empty class serves as a marker for the presence of an uninstall event
* The builder part of the class is just for consistency
*/
public class UninstallEvent implements EventBody {
public static class Builder {
public UninstallEvent build() {
return new UninstallEvent();
}
}
public UninstallEvent() {}
public static Builder newBuilder() {
return new Builder();
}
// Override equality to return true if objects are of the same class
@Override
public boolean equals(Object o) {
if (this == o) return true;
return !(o == null || getClass() != o.getClass());
}
@Override
public String toString() {
return "UninstallEvent{}";
}
@Override
public EventType getType() {
return EventType.UNINSTALL;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy