Created
October 28, 2019 12:36
-
-
Save c0rp-aubakirov/cbf8567533a1a42b40f0db347f83a549 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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