]> git.mxchange.org Git - juser-activity-core.git/commitdiff
introduced new constructor without message
authorRoland Häder <roland@mxchange.org>
Thu, 25 Aug 2016 08:35:26 +0000 (10:35 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 25 Aug 2016 08:35:26 +0000 (10:35 +0200)
src/org/mxchange/jusercore/model/user/activity/UserActivityLog.java

index 97b521af29c5d95bcfb20dec18db95943f234b88..6012d8c59f8c0c59ac355c1872f6f67f7ada0cd6 100644 (file)
@@ -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
+        * <p>
+        * @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;