Commit f5ac97b3 authored by Mattia Ducci's avatar Mattia Ducci

fix enum

parent 882a447c
......@@ -108,10 +108,10 @@ public class MainActivity extends AppCompatActivity {
if(eventNameEditText.getText().length() == 0) eventName="eventoProva";
else eventName=eventNameEditText.getText().toString();
if(eventCategoryEditText.getText().length()==0) eventCategory=Icarus.EventCategories.APPLICATION.toString();
if(eventCategoryEditText.getText().length()==0) eventCategory=EventTrackResource.EventCategories.APPLICATION.name().toLowerCase();
else eventCategory=eventCategoryEditText.getText().toString();
if(eventLabelEditText.getText().length()==0) eventLabel = "labelProva";
if(eventLabelEditText.getText().length()==0) eventLabel = EventTrackResource.EventLabel.FOREGROUND.name().toLowerCase();
else eventLabel=eventLabelEditText.getText().toString();
if(mostProbableActivityEditText.getText().length()==0) mostProbableActivity="activityProva";
......
......@@ -5,6 +5,16 @@ import org.json.JSONObject;
public class EventTrackResource extends IcarusResource {
public enum EventCategories{ //categorie di evento
APPLICATION,ACTION,NOTIFICATION;
}
public enum EventLabel{
FOREGROUND,BACKGROUND;
}
private String eventName;
private String eventCategory;
private String eventLabel;
......
......@@ -37,12 +37,6 @@ import java.util.function.Consumer;
public class Icarus {
public enum EventCategories{ //categorie di evento
APPLICATION,ACTION,NOTIFICATION;
}
private final static String ICARUS_URL="https://webdev.ewlab.di.unimi.it/icarus/str";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment