com.os.falcon.dwh.message.CSSessionDwhLog Maven / Gradle / Ivy
/*
* The MIT License
*
* Copyright 2020 quanph ([email protected]).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.os.falcon.dwh.message;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.os.falcon.dwh.event.constant.DWHEvents;
import com.os.falcon.dwh.message.item.AccountInfoItem;
import com.os.falcon.network.api.message.FMessage;
/**
*
* @author quanph ([email protected])
*/
public class CSSessionDwhLog extends FMessage {
private AccountInfoItem accountInfo;
private String gameMode;
private long startDate;
private long endDate;
private int sessionTime;
private long createdDate;
public CSSessionDwhLog() {
}
public CSSessionDwhLog(AccountInfoItem accountInfo, String gameMode, long startDate, long endDate, int sessionTime, long createdDate) {
this.accountInfo = accountInfo;
this.gameMode = gameMode;
this.startDate = startDate;
this.endDate = endDate;
this.sessionTime = sessionTime;
this.createdDate = createdDate;
}
public AccountInfoItem getAccountInfo() {
return accountInfo;
}
public void setAccountInfo(AccountInfoItem accountInfo) {
this.accountInfo = accountInfo;
}
public String getGameMode() {
return gameMode;
}
public void setGameMode(String gameMode) {
this.gameMode = gameMode;
}
public long getStartDate() {
return startDate;
}
public void setStartDate(long startDate) {
this.startDate = startDate;
}
public long getEndDate() {
return endDate;
}
public void setEndDate(long endDate) {
this.endDate = endDate;
}
public int getSessionTime() {
return sessionTime;
}
public void setSessionTime(int sessionTime) {
this.sessionTime = sessionTime;
}
public long getCreatedDate() {
return createdDate;
}
public void setCreatedDate(long createdDate) {
this.createdDate = createdDate;
}
@Override
@JsonIgnore
public String getEvent() {
return DWHEvents.CS_SESSION_LOG;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy