app/src/main/java/net/nashlegend/sourcewall/model/Notice.java

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package net.nashlegend.sourcewall.model;

import android.os.Parcel;

import org.json.JSONObject;

/**
 * Created by NashLegend on 2015/2/2 0002
 * 通知
 */
public class Notice extends AceModel {

    private String content = "";
    private long date_last_updated = 0L;
    private String id = "";
    private boolean is_read = false;
    private String ukey = "";//永远是用户自己
    private String url = "";

    public static Notice fromJson(JSONObject noticesObject) throws Exception {
        Notice notice = new Notice();
        notice.setContent(noticesObject.optString("content"));
        notice.setUrl(noticesObject.optString("url"));
        notice.setUkey(noticesObject.optString("ukey"));
        notice.setDate_last_updated(noticesObject.optLong("date_last_updated"));
        notice.setId(noticesObject.optString("id"));
        notice.setIs_read(noticesObject.optBoolean("is_read"));
        return notice;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public long getDate_last_updated() {
        return date_last_updated;
    }

    public void setDate_last_updated(long date_last_updated) {
        this.date_last_updated = date_last_updated;
    }

    public String getId() {
        return id;
    }

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

    public boolean isIs_read() {
        return is_read;
    }

    public void setIs_read(boolean is_read) {
        this.is_read = is_read;
后面还有 58 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。