package com.nilhcem.droidconde.data.app.model;

import android.support.annotation.NonNull;

public enum Room {

    NONE(0, ""),
    STAGE_1(1, "Stage1"),
    STAGE_2(2, "Stage2"),
    STAGE_3(3, "Stage3"),
    STAGE_4(4, "Stage4"),
    WORKSPACE(5, "Workspace");

    public final int id;
    public final String label;

    Room(int id, String label) {
        this.id = id;
        this.label = label;
    }

    public static Room getFromId(int id) {
        for (Room room : Room.values()) {
            if (room.id == id) {
                return room;
            }
        }
        return NONE;
    }

    public static Room getFromLabel(@NonNull String label) {
        for (Room room : Room.values()) {
            if (label.equals(room.label)) {
                return room;
            }
        }
        return NONE;
    }
}

@@ -143,16 +143,17 @@
 , %22Stage
+ 
 1%22),%0A   
@@ -170,16 +170,17 @@
 , %22Stage
+ 
 2%22),%0A   
@@ -197,16 +197,17 @@
 , %22Stage
+ 
 3%22),%0A   
@@ -224,16 +224,17 @@
 , %22Stage
+ 
 4%22),%0A   

Update room names