107 lines
3.3 KiB
Java
107 lines
3.3 KiB
Java
package com.ubtrobot.analytics.device;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import com.ubtrobot.analytics.ModuleVersion;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class RobotDeviceInfo implements DeviceInfo, Parcelable {
|
|
public static final Parcelable.Creator<RobotDeviceInfo> CREATOR = new Parcelable.Creator<RobotDeviceInfo>() { // from class: com.ubtrobot.analytics.device.RobotDeviceInfo.1
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public RobotDeviceInfo createFromParcel(Parcel parcel) {
|
|
return new RobotDeviceInfo(parcel);
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public RobotDeviceInfo[] newArray(int i) {
|
|
return new RobotDeviceInfo[i];
|
|
}
|
|
};
|
|
private String channel;
|
|
private String language;
|
|
private String model;
|
|
private List<ModuleVersion> moduleVersions;
|
|
private String osVersion;
|
|
private String timezone;
|
|
private String userId;
|
|
|
|
public RobotDeviceInfo(List<ModuleVersion> list) {
|
|
this.model = DeviceInfoUtils.b();
|
|
this.osVersion = DeviceInfoUtils.c();
|
|
this.language = DeviceInfoUtils.a();
|
|
this.timezone = DeviceInfoUtils.e();
|
|
this.moduleVersions = list;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public String getChannel() {
|
|
return this.channel;
|
|
}
|
|
|
|
public String getLanguage() {
|
|
return this.language;
|
|
}
|
|
|
|
public String getModel() {
|
|
return this.model;
|
|
}
|
|
|
|
public List<ModuleVersion> getModuleVersions() {
|
|
return this.moduleVersions;
|
|
}
|
|
|
|
public String getOsVersion() {
|
|
return this.osVersion;
|
|
}
|
|
|
|
public String getTimezone() {
|
|
return this.timezone;
|
|
}
|
|
|
|
public String getUserId() {
|
|
return this.userId;
|
|
}
|
|
|
|
public RobotDeviceInfo setChannel(String str) {
|
|
this.channel = str;
|
|
return this;
|
|
}
|
|
|
|
public RobotDeviceInfo setUserId(String str) {
|
|
this.userId = str;
|
|
return this;
|
|
}
|
|
|
|
public String toString() {
|
|
return "RobotDeviceInfo{model='" + this.model + "', osVersion='" + this.osVersion + "', language='" + this.language + "', timezone='" + this.timezone + "', moduleVersions=" + this.moduleVersions + ", userId='" + this.userId + "', channel='" + this.channel + "'}";
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
parcel.writeString(this.model);
|
|
parcel.writeString(this.osVersion);
|
|
parcel.writeString(this.language);
|
|
parcel.writeString(this.timezone);
|
|
parcel.writeTypedList(this.moduleVersions);
|
|
parcel.writeString(this.userId);
|
|
parcel.writeString(this.channel);
|
|
}
|
|
|
|
protected RobotDeviceInfo(Parcel parcel) {
|
|
this.model = parcel.readString();
|
|
this.osVersion = parcel.readString();
|
|
this.language = parcel.readString();
|
|
this.timezone = parcel.readString();
|
|
this.moduleVersions = parcel.createTypedArrayList(ModuleVersion.CREATOR);
|
|
this.userId = parcel.readString();
|
|
this.channel = parcel.readString();
|
|
}
|
|
}
|