码迷,mamicode.com
首页 > 移动开发 > 详细

个人冲刺(三)——体温上报app(二阶段)

时间:2021-06-11 18:09:14      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:instance   conda   ppc   ESS   ndt   setname   ext   ted   content   

冲刺任务:完成用户类、温度数据和第二页面类的编写

User.java

package com.example.helloworld;

class User {
    private String username;
    private String userid;
    private String userphone;
    private String useraddress;

    @Override
    public String toString() {
        return "User{" +
                "username=‘" + username + ‘\‘‘ +
                ", userid=‘" + userid + ‘\‘‘ +
                ", userphone=‘" + userphone + ‘\‘‘ +
                ", useraddress=‘" + useraddress + ‘\‘‘ +
                ‘}‘;
    }
    public User(String username, String userid, String userphone, String useraddress) {
        this.username = username;
        this.userid = userid;
        this.userphone = userphone;
        this.useraddress = useraddress;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public void setUserphone(String userphone) {
        this.userphone = userphone;
    }

    public void setUseraddress(String useraddress) {
        this.useraddress = useraddress;
    }

    public String getUsername() {
        return username;
    }

    public String getUserid() {
        return userid;
    }

    public String getUserphone() {
        return userphone;
    }

    public String getUseraddress() {
        return useraddress;
    }

}

WenData.java

package com.example.helloworld;

public class WenDate {
    private String name;
    private String dateandtime;
    private String address;
    private String wendu;
    private String more;

    public WenDate(String name, String dateandtime, String address, String wendu, String more) {
        this.name = name;
        this.dateandtime = dateandtime;
        this.address = address;
        this.wendu = wendu;
        this.more = more;
    }
    public WenDate(){};

    @Override
    public String toString() {
        return "WenDate{" +
                "name=‘" + name + ‘\‘‘ +
                ", dateandtime=‘" + dateandtime + ‘\‘‘ +
                ", address=‘" + address + ‘\‘‘ +
                ", wendu=‘" + wendu + ‘\‘‘ +
                ", more=‘" + more + ‘\‘‘ +
                ‘}‘;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDateandtime() {
        return dateandtime;
    }

    public void setDateandtime(String dateandtime) {
        this.dateandtime = dateandtime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getWendu() {
        return wendu;
    }

    public void setWendu(String wendu) {
        this.wendu = wendu;
    }

    public String getMore() {
        return more;
    }

    public void setMore(String more) {
        this.more = more;
    }
}

SecondActivity.java

package com.example.helloworld;

import android.os.Bundle;
import android.util.Log;

import androidx.appcompat.app.AppCompatActivity;

public class SecondActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.v("SecondActivity","SecondActivity启动");
        setContentView(R.layout.activity_second);
    }
}

 

个人冲刺(三)——体温上报app(二阶段)

标签:instance   conda   ppc   ESS   ndt   setname   ext   ted   content   

原文地址:https://www.cnblogs.com/zyj3955/p/14872802.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!