how to optimize switch statement traversal objects to be more concise
switch (this.active) {
case 0:
this.OrderState = "Wait";
break;
case 1:
this.OrderState = "Sent";
break;
case 2:
this.OrderState = "Fail";
break;
default:
break;
}