From: Roland Häder Date: Thu, 25 Aug 2016 08:35:26 +0000 (+0200) Subject: introduced new constructor without message X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=76dc63fdad4573649827d5942907d5328bccdd92;p=juser-activity-core.git introduced new constructor without message --- diff --git a/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java b/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java index 97b521a..6012d8c 100644 --- a/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java +++ b/src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java @@ -114,7 +114,22 @@ public class UserActivityLog implements LogableUserActivity { * @param activityTimestamp imestamp */ public UserActivityLog (final String activityMessage, final String activityType, final User activityUser, final Calendar activityTimestamp) { + // Call other constructor + this(activityType, activityUser, activityTimestamp); + + // Set message this.activityMessage = activityMessage; + } + + /** + * Constructor with type, user and timestamp + *

+ * @param activityType Type + * @param activityUser User instance + * @param activityTimestamp imestamp + */ + public UserActivityLog (final String activityType, final User activityUser, final Calendar activityTimestamp) { + // Set all values this.activityType = activityType; this.activityUser = activityUser; this.activityTimestamp = activityTimestamp;