com.segment.analytics.WearPayload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wear Show documentation
Show all versions of wear Show documentation
The hassle-free way to add analytics to your Android app.
The newest version!
package com.segment.analytics;
import java.io.IOException;
import java.util.Map;
class WearPayload extends ValueMap {
/** Type of the payload */
private static final String TYPE_KEY = "type";
/** The actual payload */
private static final String PAYLOAD_KEY = "payload";
WearPayload(Map delegate) throws IOException {
super(delegate);
}
WearPayload(BasePayload.Type type, ValueMap payload) {
put(TYPE_KEY, type);
put(PAYLOAD_KEY, payload);
}
BasePayload.Type type() {
return getEnum(BasePayload.Type.class, TYPE_KEY);
}
T payload(Class clazz) {
return getValueMap(PAYLOAD_KEY, clazz);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy