Skip to content

Instantly share code, notes, and snippets.

@c0rp-aubakirov
Created October 28, 2019 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c0rp-aubakirov/cbf8567533a1a42b40f0db347f83a549 to your computer and use it in GitHub Desktop.
Save c0rp-aubakirov/cbf8567533a1a42b40f0db347f83a549 to your computer and use it in GitHub Desktop.
package kz.softrack.avtobys.models.logger;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.util.Date;
/**
* User: Sanzhar Aubakirov
* Date: 9/3/16
*/
public class BasicLoggingModel {
public static final Gson GSON = new GsonBuilder().create();
private String action;
private String developerMessage;
private Date date;
public BasicLoggingModel(String action, Date date, String developerMessage) {
this.action = action;
this.date = date;
this.developerMessage = developerMessage;
}
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public Date getDate() {
return date;
}
public void setDate(Date date) {
this.date = date;
}
public String getDeveloperMessage() {
return developerMessage;
}
public void setDeveloperMessage(String developerMessage) {
this.developerMessage = developerMessage;
}
@Override
public String toString() {
return GSON.toJson(this);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment