2 * Copyright (C) 2016 Cho-Time GmbH
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.jusercore.model.user.activity;
19 import java.io.Serializable;
20 import java.util.Calendar;
21 import org.mxchange.jcontacts.contact.gender.Gender;
22 import org.mxchange.jusercore.model.user.User;
25 * POJI for logable user activity
27 * @author Roland Haeder<rhaeder@cho-time.de>
29 public interface LogableUserActivity extends Serializable {
32 * Getter for activity id
36 Long getActivityId ();
39 * Getter for activity id
41 * @param activityId Activity id
43 void setActivityId (final Long activityId);
46 * Getter for activity message (optional)
48 * @return Activity message
50 String getActivityMessage ();
53 * Setter for activity message (optional)
55 * @param activityMessage Activity message
57 void setActivityMessage (final String activityMessage);
60 * Getter for activity timestamp
62 * @return Activity timestamp
64 Calendar getActivityTimestamp ();
67 * Setter for activity timestamp
69 * @param activityTimestamp Activity timestamp
71 void setActivityTimestamp (final Calendar activityTimestamp);
74 * Getter for activity type
76 * @return Activity type
78 String getActivityType ();
81 * Setter for activity type
83 * @param activityType Activity type
85 void setActivityType (final String activityType);
88 * Getter for activity user (who did it)
90 * @return User who did activity
92 User getActivityUser ();
95 * Setter for activity user (who did it)
97 * @param activityUser User who did activity
99 void setActivityUser (final User activityUser);
102 * Getter for user name
106 String getActivityUserName ();
109 * Setter for user name
111 * @param activityUserName User name
113 void setActivityUserName (final String activityUserName);
116 * Getter for contact family name
118 * @return Contact family name
120 String getActivityContactFamilyName ();
123 * Setter for contact family name
125 * @param activityContactFamilyName Contact family name
127 void setActivityContactFamilyName (final String activityContactFamilyName);
130 * Getter for contact first name
132 * @return Contact first name
134 String getActivityContactFirstName ();
137 * Setter for contact first name
139 * @param activityContactFirstName Contact first name
141 void setActivityContactFirstName (final String activityContactFirstName);
144 * Getter for contact gender
146 * @return Contact gender
148 Gender getActivityContactGender ();
151 * Setter for contact gender
153 * @param activityContactGender Contact gender
155 void setActivityContactGender (final Gender activityContactGender);
158 boolean equals (final Object object);