string GetColorScheme(UserSurveyStatus userSurveyStatus) { var color = ""; switch (userSurveyStatus) { case UserSurveyStatus.High: { color = "#FF0000"; } break; case UserSurveyStatus.Low: { color = "#0f812e"; } break; case UserSurveyStatus.Midium: { color = "#f4be14"; } break; } return(color); }
public void SetResult(UserSurveyStatus userSurveyStatus) { switch (userSurveyStatus) { case UserSurveyStatus.Low: { BackgroundColor = "#08A626"; Result = "Low Risk"; Message = "You are at low risk, keep safe."; } break; case UserSurveyStatus.Midium: { BackgroundColor = "#EC931B"; Result = "Medium Risk"; Message = "We recommend you book appoint with the Doctor."; } break; case UserSurveyStatus.High: { BackgroundColor = "#FF000F"; Result = "High Risk"; Message = "You are at high risk, we recommend self quarantine. Request home testing."; } break; } }
public ResultPage(UserSurveyStatus userSurveyStatus) { InitializeComponent(); BindingContext = ViewModel = new ResultPageViewModel(Navigation); ViewModel.SetResult(userSurveyStatus); }
public SurveyUser() { this.SurveyID = -1; this.UserID = -1; this.Status = UserSurveyStatus._pending; }
public SurveyUser(int surveyID, int userID) { this.SurveyID = surveyID; this.UserID = UserID; this.Status = UserSurveyStatus._pending; }
public bool AssigeUser(int surveyID, int userID, UserSurveyStatus userSurveyStatus) { dataSurveyUser.AddUser(surveyID, userID, (int)userSurveyStatus); return(dataSurveyUser.SaveUser()); }