public static AnalyticsUserEvent create( long memberId, String idString, String category, String action, String label, int value) { AnalyticsUserEvent analyticsUserEvent = new AnalyticsUserEvent(); analyticsUserEvent.setUserId(memberId); analyticsUserEvent.setIdString(idString); analyticsUserEvent.setCategory(category); analyticsUserEvent.setAction(action); analyticsUserEvent.setLabel(label); analyticsUserEvent.setValue(value); return analyticsUserEventResource .resolveParent(memberResource.id(memberId)) .create(analyticsUserEvent) .execute(); }
public static boolean exists(long memberId, String idString) { return analyticsUserEventResource .resolveParent(memberResource.id(memberId)) .service(idString, "exists", Boolean.class) .get(); }