Skip to content

Commit

Permalink
revert changes to Times property
Browse files Browse the repository at this point in the history
  • Loading branch information
codingsnippets committed Mar 18, 2013
1 parent 93cace9 commit be2fe6c
Showing 1 changed file with 22 additions and 27 deletions.
49 changes: 22 additions & 27 deletions branch/proto/Schedule.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

import java.util.ArrayList;
import java.util.IdentityHashMap;

Expand All @@ -17,22 +18,12 @@ public class Schedule {
public String Weekday;
public String Start_time;
public String End_time;
public ArrayList<Integer> Times;

public Schedule(){

}
/*
@param dbhost
@param dbuser
@param dbpass
*/
public void getRecord(String dbhost, String dbuser, String dbpass){
String fields = "*" ;
ArrayList<String > newRecord = course_db_connect.getRecord(dbhost,dbuser,dbpass,DBTABLE,fields);
for (String field : newRecord){
}
}


public String getSubject() {
return this.Subject;
}
Expand Down Expand Up @@ -68,20 +59,24 @@ public String getInstructor() {
public String getCoursename() {
return this.Subject+this.Course_no.toString();
}

public String getTimes() {
return this.Weekday + " " + this.Start_time + " - " + this.End_time;

public ArrayList<Integer> getTimes() {
return this.Times;
}
public String getTimeSchedule(){
return this.Weekday + " " + this.Start_time + " - " + this.End_time;

}
/**
* The <code>toCsv</code> function creates a string of comma separated
* values of the schedule.
* </br>
* @return csv string
*/
public String toCsv()
{
String csv = "";

return csv;
}
/**
* The <code>toCsv</code> function creates a string of comma separated
* values of the schedule.
* </br>
* @return csv string
*/
public String toCsv()
{
String csv = "";

return csv;
}
}

0 comments on commit be2fe6c

Please sign in to comment.