• 6.2学习记录


    package com.james.motion.commmon.bean;

    import java.io.Serializable;

    import io.realm.RealmObject;
    import io.realm.annotations.PrimaryKey;
    import io.realm.annotations.Required;

    /**
    * 描述: 用于记录一条轨迹,包括起点、终点、轨迹中间点、距离、耗时、时间
    * 作者: 王克
    * 类名: SportMotionRecord
    */
    public class SportMotionRecord extends RealmObject implements Serializable {

    /**
    * 表示该字段是主键
    * <p>
    * 字段类型必须是字符串(String)或整数(byte,short,int或long)
    * 以及它们的包装类型(Byte,Short, Integer, 或 Long)。不可以存在多个主键,
    * 使用字符串字段作为主键意味着字段被索引(注释@PrimaryKey隐式地设置注释@Index)。
    */
    @PrimaryKey
    private Long id;

    //登录者ID
    // @Required
    private int master;

    //运动距离
    @Required
    private Double distance;
    //运动时长
    @Required
    private Long duration;
    //运动轨迹
    @Required
    private String pathLine;
    //运动开始点
    @Required
    private String stratPoint;
    //运动结束点
    @Required
    private String endPoint;
    //运动开始时间
    @Required
    private Long mStartTime;
    //运动结束时间
    @Required
    private Long mEndTime;
    //消耗卡路里
    @Required
    private Double calorie;
    //平均时速(公里/小时)
    @Required
    private Double speed;
    //平均配速(分钟/公里)
    @Required
    private Double distribution;
    //日期标记
    @Required
    private String dateTag;

    private String str1;//预留字段
    private String str2;//预留字段
    private String str3;//预留字段

    public Long getId() {
    return id;
    }

    public void setId(Long id) {
    this.id = id;
    }

    public int getMaster() {
    return master;
    }

    public void setMaster(int master) {
    this.master = master;
    }

    public Double getDistance() {
    return distance;
    }

    public void setDistance(Double distance) {
    this.distance = distance;
    }

    public Long getDuration() {
    return duration;
    }

    public void setDuration(Long duration) {
    this.duration = duration;
    }

    public String getPathLine() {
    return pathLine;
    }

    public void setPathLine(String pathLine) {
    this.pathLine = pathLine;
    }

    public String getStratPoint() {
    return stratPoint;
    }

    public void setStratPoint(String stratPoint) {
    this.stratPoint = stratPoint;
    }

    public String getEndPoint() {
    return endPoint;
    }

    public void setEndPoint(String endPoint) {
    this.endPoint = endPoint;
    }

    public Long getmStartTime() {
    return mStartTime;
    }

    public void setmStartTime(Long mStartTime) {
    this.mStartTime = mStartTime;
    }

    public Long getmEndTime() {
    return mEndTime;
    }

    public void setmEndTime(Long mEndTime) {
    this.mEndTime = mEndTime;
    }

    public Double getCalorie() {
    return calorie;
    }

    public void setCalorie(Double calorie) {
    this.calorie = calorie;
    }

    public Double getSpeed() {
    return speed;
    }

    public void setSpeed(Double speed) {
    this.speed = speed;
    }

    public Double getDistribution() {
    return distribution;
    }

    public void setDistribution(Double distribution) {
    this.distribution = distribution;
    }

    public String getDateTag() {
    return dateTag;
    }

    public void setDateTag(String dateTag) {
    this.dateTag = dateTag;
    }

    public String getStr1() {
    return str1;
    }

    public void setStr1(String str1) {
    this.str1 = str1;
    }

    public String getStr2() {
    return str2;
    }

    public void setStr2(String str2) {
    this.str2 = str2;
    }

    public String getStr3() {
    return str3;
    }

    public void setStr3(String str3) {
    this.str3 = str3;
    }
    }
     
  • 相关阅读:
    GB 51411-2020 金属矿山土地复垦工程设计标准
    GB/T 51413-2020 有色金属工业余热利用设计标准
    DL/T 1907.1-2018等最新电力行业标准
    GB 50205-2020 钢结构工程施工质量验收标准
    DL/T 5210.6-2019 电力建设施工质量验收规程 第6部分:调整试验
    GB/T 38640-2020 盲用数字出版格式
    GB 50325-2020 民用建筑工程室内环境污染控制标准(含条文说明)
    GB 50216-2019 铁路工程结构可靠性设计统一标准
    最新发布的国家标准下载(2020-5-21)
    bind、apply、call的区别
  • 原文地址:https://www.cnblogs.com/blog-wangke/p/14871871.html
Copyright © 2020-2023  润新知