/** @return An Ice Identity for this datatype category and the data provided */ public static Identity createIdentity( String userEmail, int tripId, uclm.esi.cardroid.data.zerocice.ActivityType activityType, long timeStamp) { Identity id = new Identity(); id.category = "user_activity"; id.name = userEmail + "@" + tripId + "[" + activityType.name() + " " + timeStamp + "]"; return id; }
public UserActivity newInstance(IUserActivity userActivityObject) { if (userActivityObject == null) return null; if (userActivityObject instanceof UserActivity) return (UserActivity) userActivityObject; UserTypPrx activityUsr = null; TripOfferTypPrx activityTrip = null; uclm.esi.cardroid.data.zerocice.ActivityType userActivityType = uclm.esi.cardroid.data.zerocice.ActivityType.valueOf(userActivityObject.getType().name()); long timeStamp = userActivityObject.getTimeStamp().getTime(); return new UserActivity(activityUsr, activityTrip, userActivityType, timeStamp); }
public void setType(ActivityType activityType) { setUserActivityType(uclm.esi.cardroid.data.zerocice.ActivityType.valueOf(activityType.name())); }