package com.arpa.hndahesudintocctmsdriver.bean; import android.os.Build; import android.provider.Settings; import androidx.activity.result.contract.ActivityResultContracts; import com.arpa.hndahesudintocctmsdriver.App; import com.dahe.mylibrary.utils.AppUtils; import java.util.Locale; /** * @ClassName AppInfoBean * @Author john * @Date 2024/7/22 15:31 * @Description TODO */ public class AppInfoBean { private String userPhone; private String macIpaddr = Settings.Secure.getString(App.getApp().getContentResolver(),Settings.Secure.ANDROID_ID); // private String macIpaddr = android.os.Build.ID; private String clientSource = "driver"; private String status = ""; private String mobilePhoneManufacturerName = android.os.Build.BRAND; private String mobilePhoneProductName = android.os.Build.MODEL; private String mobilePhoneMotherboardName = android.os.Build.BOARD; private String mobilePhoneHardwareName = android.os.Build.DEVICE; private String mobilePhoneMachineSystemLanguage = Locale.getDefault().getLanguage(); private String androidVersion=android.os.Build.VERSION.RELEASE; private String androidSystemSdk = android.os.Build.VERSION.SDK_INT+""; private String appVersionName = AppUtils.getAppVersionName(); private String appVersionNumber = AppUtils.getAppVersionCode()+""; public String getUserPhone() { return userPhone; } public void setUserPhone(String userPhone) { this.userPhone = userPhone; } public String getMacIpaddr() { return macIpaddr; } public void setMacIpaddr(String macIpaddr) { this.macIpaddr = macIpaddr; } public String getClientSource() { return clientSource; } public void setClientSource(String clientSource) { this.clientSource = clientSource; } public String getStatus() { return status; } public void setStatus(String status) { this.status = status; } public String getMobilePhoneManufacturerName() { return mobilePhoneManufacturerName; } public void setMobilePhoneManufacturerName(String mobilePhoneManufacturerName) { this.mobilePhoneManufacturerName = mobilePhoneManufacturerName; } public String getMobilePhoneProductName() { return mobilePhoneProductName; } public void setMobilePhoneProductName(String mobilePhoneProductName) { this.mobilePhoneProductName = mobilePhoneProductName; } public String getMobilePhoneMotherboardName() { return mobilePhoneMotherboardName; } public void setMobilePhoneMotherboardName(String mobilePhoneMotherboardName) { this.mobilePhoneMotherboardName = mobilePhoneMotherboardName; } public String getMobilePhoneHardwareName() { return mobilePhoneHardwareName; } public void setMobilePhoneHardwareName(String mobilePhoneHardwareName) { this.mobilePhoneHardwareName = mobilePhoneHardwareName; } public String getMobilePhoneMachineSystemLanguage() { return mobilePhoneMachineSystemLanguage; } public void setMobilePhoneMachineSystemLanguage(String mobilePhoneMachineSystemLanguage) { this.mobilePhoneMachineSystemLanguage = mobilePhoneMachineSystemLanguage; } public String getAndroidVersion() { return androidVersion; } public void setAndroidVersion(String androidVersion) { this.androidVersion = androidVersion; } public String getAndroidSystemSdk() { return androidSystemSdk; } public void setAndroidSystemSdk(String androidSystemSdk) { this.androidSystemSdk = androidSystemSdk; } public String getAppVersionName() { return appVersionName; } public void setAppVersionName(String appVersionName) { this.appVersionName = appVersionName; } public String getAppVersionNumber() { return appVersionNumber; } public void setAppVersionNumber(String appVersionNumber) { this.appVersionNumber = appVersionNumber; } @Override public String toString() { return "AppInfoBean{" + "userPhone='" + userPhone + '\'' + ", macIpaddr='" + macIpaddr + '\'' + ", clientSource='" + clientSource + '\'' + ", status='" + status + '\'' + ", mobilePhoneManufacturerName='" + mobilePhoneManufacturerName + '\'' + ", mobilePhoneProductName='" + mobilePhoneProductName + '\'' + ", mobilePhoneMotherboardName='" + mobilePhoneMotherboardName + '\'' + ", mobilePhoneHardwareName='" + mobilePhoneHardwareName + '\'' + ", mobilePhoneMachineSystemLanguage='" + mobilePhoneMachineSystemLanguage + '\'' + ", androidVersion='" + androidVersion + '\'' + ", androidSystemSdk='" + androidSystemSdk + '\'' + ", appVersionName='" + appVersionName + '\'' + ", appVersionNumber='" + appVersionNumber + '\'' + '}'; } }