package com.tourguide.modules.user.dto;
|
|
import com.tourguide.modules.user.entity.GuideRealtimeStatus;
|
|
import java.math.BigDecimal;
|
import java.time.LocalDateTime;
|
|
/** 导游实时状态响应。 */
|
public class GuideRealtimeStatusResponse {
|
private final Long guideId;
|
private final Long scenicSpotId;
|
private final Long meetingPointId;
|
private final BigDecimal longitude;
|
private final BigDecimal latitude;
|
private final Integer onlineStatus;
|
private final Integer availableStatus;
|
private final LocalDateTime lastLocationAt;
|
|
public GuideRealtimeStatusResponse(GuideRealtimeStatus status) {
|
this.guideId = status.getGuideId();
|
this.scenicSpotId = status.getScenicSpotId();
|
this.meetingPointId = status.getMeetingPointId();
|
this.longitude = status.getLongitude();
|
this.latitude = status.getLatitude();
|
this.onlineStatus = status.getOnlineStatus();
|
this.availableStatus = status.getAvailableStatus();
|
this.lastLocationAt = status.getLastLocationAt();
|
}
|
|
public Long getGuideId() { return guideId; }
|
public Long getScenicSpotId() { return scenicSpotId; }
|
public Long getMeetingPointId() { return meetingPointId; }
|
public BigDecimal getLongitude() { return longitude; }
|
public BigDecimal getLatitude() { return latitude; }
|
public Integer getOnlineStatus() { return onlineStatus; }
|
public Integer getAvailableStatus() { return availableStatus; }
|
public LocalDateTime getLastLocationAt() { return lastLocationAt; }
|
}
|