package com.ubt.jimu.connect.model; import com.ubt.jimu.JimuApplication; import com.ubt.jimu.R; /* loaded from: classes.dex */ public class Component { private int a; private int b; private ErrorType c; private String d; public Component() { } public void a(int i) { this.b = i; } public ErrorType b() { return this.c; } public int c() { return this.a; } public int d() { return this.b; } public String e() { return this.d; } public String toString() { return "errorType:" + this.c + " type:" + this.b + " id:" + this.a + " "; } public Component(int i, int i2, ErrorType errorType) { this.b = i; this.a = i2; this.c = errorType; } public void a(ErrorType errorType) { this.c = errorType; } public void a(String str) { this.d = str; } public String a() { int i = this.b; int i2 = R.string.main_board; if (i == 14) { i2 = R.string.unicorn_led; } else if (i == 101) { i2 = R.string.firebot_light; } else if (i == 128) { i2 = R.string.servo; } else if (i != 112 && i != 113) { switch (i) { case 1: i2 = R.string.infrared; break; case 2: i2 = R.string.touch; break; case 3: i2 = R.string.gyro; break; case 4: i2 = R.string.led; break; case 5: i2 = R.string.gravity; break; case 6: i2 = R.string.ultrasound; break; default: switch (i) { case 8: i2 = R.string.speaker; break; case 9: i2 = R.string.color; break; case 10: i2 = R.string.motor; break; default: i2 = -1; break; } } } return i2 == -1 ? "" : JimuApplication.l().getApplicationContext().getString(i2); } }