deviceType method
Check which device type is
Implementation
int deviceType(){
if(this.isExtraSmall()){
return 0;
}
else if(this.isSmall()){
return 1;
}
else if(this.isMedium()){
return 2;
}
else if(this.isLarge()){
return 3;
}
else if(this.isExtraLarge()){
return 4;
}
else{
return -1;
}
}