/* Returns a list of all routines created by the * given user that matches the given routine name * in model format. * @param creatorUsername: The username of the * user who created the routine. * @param routineName: The routine name to match. */ public List <RoutineModel> getRoutineModelsAssignedToByName(string creatorUsername, string routineName, string assigneeName) { List <RoutineModel> lst = new List <RoutineModel>(); foreach (Routine r in getRoutinesAssignedToByName(creatorUsername, routineName, assigneeName)) { lst.Add(ModelCopier.copyRoutineToModel(r)); } return(lst); }
/*TODO*/ public List <RoutineModel> getMostRecentRoutineModels(string creatorUsername) { return(ModelCopier.copyRoutinesToModels(getMostRecentRoutines(creatorUsername))); /*List<RoutineModel> lst = new List<RoutineModel>(); * * foreach (Routine r in getMostRecentRoutines(creatorUsername)) * lst.Add(ModelCopier.copyRoutineToModel(r)); * * return lst;*/ }
/* Returns the most recent routine created by the * given user that matches the given routine name * (either active or disabled) in model format. * @param creatorUsername: The username of the * user who created the routine. * @param routineName: The routine name to match. */ public RoutineModel getMostRecentRoutineModelAssignedToByName(string creatorUsername, string routineName, string assigneeName) { return(ModelCopier.copyRoutineToModel(getMostRecentRoutineAssignedToByName(creatorUsername, routineName, assigneeName))); }
/*TODO*/ public List <RoutineModel> getMostRecentRoutineModelsAssignedTo(string creatorUsername, string assigneeUsername) { return(ModelCopier.copyRoutinesToModels(getMostRecentRoutinesAssignedTo(creatorUsername, assigneeUsername))); }
/* Returns a list of all routines created by the * given user in model format. * @param creatorUsername: The username of the * user who created the routine. */ public List <RoutineModel> getRoutineModels(string creatorUsername) { return(ModelCopier.copyRoutinesToModels(getRoutines(creatorUsername))); }