115 lines
3.5 KiB
Java
115 lines
3.5 KiB
Java
package com.ubtrobot.analytics.device;
|
|
|
|
import android.content.Context;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class MobileDeviceInfo implements DeviceInfo, Parcelable {
|
|
public static final Parcelable.Creator<MobileDeviceInfo> CREATOR = new Parcelable.Creator<MobileDeviceInfo>() { // from class: com.ubtrobot.analytics.device.MobileDeviceInfo.1
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public MobileDeviceInfo createFromParcel(Parcel parcel) {
|
|
return new MobileDeviceInfo(parcel);
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.Creator
|
|
public MobileDeviceInfo[] newArray(int i) {
|
|
return new MobileDeviceInfo[i];
|
|
}
|
|
};
|
|
private static final String TAG = "Analytics";
|
|
private String appVersion;
|
|
private String channel;
|
|
private String language;
|
|
private String model;
|
|
private String osVersion;
|
|
private String simOperator;
|
|
private String timezone;
|
|
private String userId;
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
public String getAppVersion() {
|
|
return this.appVersion;
|
|
}
|
|
|
|
public String getChannel() {
|
|
return this.channel;
|
|
}
|
|
|
|
public String getLanguage() {
|
|
return this.language;
|
|
}
|
|
|
|
public String getModel() {
|
|
return this.model;
|
|
}
|
|
|
|
public String getOsVersion() {
|
|
return this.osVersion;
|
|
}
|
|
|
|
public String getSimOperator() {
|
|
return this.simOperator;
|
|
}
|
|
|
|
public String getTimezone() {
|
|
return this.timezone;
|
|
}
|
|
|
|
public String getUserId() {
|
|
return this.userId;
|
|
}
|
|
|
|
public MobileDeviceInfo setChannel(String str) {
|
|
this.channel = str;
|
|
return this;
|
|
}
|
|
|
|
public MobileDeviceInfo setUserId(String str) {
|
|
this.userId = str;
|
|
return this;
|
|
}
|
|
|
|
public String toString() {
|
|
return "MobileDeviceInfo{model='" + this.model + "', osVersion='" + this.osVersion + "', language='" + this.language + "', timezone='" + this.timezone + "', appVersion='" + this.appVersion + "', userId='" + this.userId + "', channel='" + this.channel + "', simOperator='" + this.simOperator + "'}";
|
|
}
|
|
|
|
@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.writeString(this.appVersion);
|
|
parcel.writeString(this.userId);
|
|
parcel.writeString(this.channel);
|
|
parcel.writeString(this.simOperator);
|
|
}
|
|
|
|
public MobileDeviceInfo(Context context) {
|
|
this.model = DeviceInfoUtils.b();
|
|
this.osVersion = DeviceInfoUtils.c();
|
|
this.language = DeviceInfoUtils.a();
|
|
this.timezone = DeviceInfoUtils.e();
|
|
this.appVersion = DeviceInfoUtils.d(context);
|
|
this.simOperator = DeviceInfoUtils.h(context);
|
|
}
|
|
|
|
private MobileDeviceInfo(Parcel parcel) {
|
|
this.model = parcel.readString();
|
|
this.osVersion = parcel.readString();
|
|
this.language = parcel.readString();
|
|
this.timezone = parcel.readString();
|
|
this.appVersion = parcel.readString();
|
|
this.userId = parcel.readString();
|
|
this.channel = parcel.readString();
|
|
this.simOperator = parcel.readString();
|
|
}
|
|
}
|