diff --git a/bytheway/src/main/java/cc/winboll/studio/bytheway/models/AnchorPositionBean.java b/bytheway/src/main/java/cc/winboll/studio/bytheway/models/AnchorPositionBean.java new file mode 100644 index 0000000..f951d14 --- /dev/null +++ b/bytheway/src/main/java/cc/winboll/studio/bytheway/models/AnchorPositionBean.java @@ -0,0 +1,80 @@ +package cc.winboll.studio.bytheway.models; + +/** + * @Author 豆包&BigPickle&ZhanGSKen + * @Date 2026/07/10 19:46 + * @Describe 锚点位置数据模型 + * 存储轨迹标记锚点:经纬度、排序序号、自定义备注信息 + * @author 豆包&ZhanGSKen + * 创建时间:2026-07-10 13:45:00 + * 最后编辑时间:2026-07-10 13:48:00 + */ +public class AnchorPositionBean { + + public static final String TAG = "AnchorPositionBean"; + + // 数据库自增主键ID + private int id; + // 锚点纬度 + private double latitude; + // 锚点经度 + private double longitude; + // 锚点排序序号,用于轨迹先后展示 + private int sortIndex; + // 锚点备注文字 + private String remark; + + // 无参构造(SQLite反射实例化必需) + public AnchorPositionBean() { + + } + + // 全参构造 + public AnchorPositionBean(final double latitude, final double longitude, final int sortIndex, final String remark) { + this.latitude = latitude; + this.longitude = longitude; + this.sortIndex = sortIndex; + this.remark = remark; + } + + public int getId() { + return id; + } + + public void setId(final int id) { + this.id = id; + } + + public double getLatitude() { + return latitude; + } + + public void setLatitude(final double latitude) { + this.latitude = latitude; + } + + public double getLongitude() { + return longitude; + } + + public void setLongitude(final double longitude) { + this.longitude = longitude; + } + + public int getSortIndex() { + return sortIndex; + } + + public void setSortIndex(final int sortIndex) { + this.sortIndex = sortIndex; + } + + public String getRemark() { + return remark; + } + + public void setRemark(final String remark) { + this.remark = remark; + } +} +