1
wxr
2023-04-23 2cd55265ccff3b0a267d7953b2dd9e5dca437aa6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
/**
 * @ProjectName: null
 * @Copyright: null
 * @address: https://www.ys7.com
 * @date: 2014-5-30 下午3:55:04
 * @Description: null
 */
package com.videogo.remoteplayback.list.bean;
 
import android.text.TextUtils;
 
public class RemoteListUIItem implements Comparable<RemoteListUIItem> {
    // 排序时间
    private long sortTime;
 
    // 开始时间
    private long beginTime;
 
    // 用于UI显示的开始时间
    private String uiBegin;
 
    // 结束时间
    private long stopTime;
 
    // 用于UI显示的录像长度
    private String uiDuration;
 
    // 图片 url
    private String picUrl;
    // 加密两次MD5值
    private String keyChecksum;
    // 设备序列号
    private String deviceSerial;
 
    // 是否云存储
    private boolean isCloud;
 
    // UI显示类型
    private int uiType;
 
    // 是否为报警录像
    private boolean isAlarm;
 
    // 云存储类型
    private int cloudType;
 
    public int getCloudType() {
        return cloudType;
    }
 
    public void setCloudType(int cloudType) {
        this.cloudType = cloudType;
    }
 
    public long getSortTime() {
        return sortTime;
    }
 
    public void setSortTime(long sortTime) {
        this.sortTime = sortTime;
    }
 
    public String getPicUrl() {
        return picUrl;
    }
 
    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }
 
    public boolean isCloud() {
        return isCloud;
    }
 
    public void setCloud(boolean isCloud) {
        this.isCloud = isCloud;
    }
 
    public String getUiDuration() {
        return uiDuration;
    }
 
    public void setUiDuration(String uiDuration) {
        this.uiDuration = uiDuration;
    }
 
    public int getUiType() {
        return uiType;
    }
 
    public void setUiType(int uiType) {
        this.uiType = uiType;
    }
 
    public String getUiBegin() {
        return uiBegin;
    }
 
    public void setUiBegin(String uiBegin) {
        this.uiBegin = uiBegin;
    }
 
    @Override
    public int compareTo(RemoteListUIItem another) {
        if (this == another) {
            return 0;
        } else if (another != null) {
            if (this.sortTime <= another.getSortTime()) {
                return -1;
            } else {
                return 1;
            }
        } else {
            return -1;
        }
    }
 
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (int) (sortTime ^ (sortTime >>> 32));
        return result;
    }
 
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        RemoteListUIItem other = (RemoteListUIItem) obj;
        if (sortTime != other.sortTime)
            return false;
        return true;
    }
 
    public long getBeginTime() {
        return beginTime;
    }
 
    public void setBeginTime(long beginTime) {
        this.beginTime = beginTime;
    }
 
    public long getStopTime() {
        return stopTime;
    }
 
    public void setStopTime(long stopTime) {
        this.stopTime = stopTime;
    }
 
    public boolean isAlarm() {
        return isAlarm;
    }
 
    public void setAlarm(boolean isAlarm) {
        this.isAlarm = isAlarm;
    }
 
    public String getKeyChecksum() {
        return keyChecksum;
    }
 
    public void setKeyChecksum(String keyChecksum) {
        this.keyChecksum = keyChecksum;
    }
 
    public String getDeviceSerial() {
        return deviceSerial;
    }
 
    public void setDeviceSerial(String deviceSerial) {
        this.deviceSerial = deviceSerial;
    }
 
    public boolean needDecrypt() {
        if (!TextUtils.isEmpty(keyChecksum)) {
            return true;
        } else {
            return false;
        }
    }
 
}