com.stringsandints.inventium.khlrooster.icalparser
Class ICalFetcher

java.lang.Object
  extended by com.stringsandints.inventium.khlrooster.icalparser.ICalFetcher

public class ICalFetcher
extends java.lang.Object


Field Summary
private static java.lang.String hash
           
 
Constructor Summary
ICalFetcher()
           
 
Method Summary
static java.util.ArrayList<Lesson> createLessonList(java.util.ArrayList<VEVENT> events, java.util.ArrayList<java.lang.String> selectedclasses, java.lang.String reeks)
          This method creates a list of lessons based on a list of events and a list of selected classes
static java.util.ArrayList<VEVENT> fetch(java.lang.String departement, java.lang.String reeks)
          This method fetched a list of
static java.util.GregorianCalendar parseICalDate(java.lang.String date)
          This method creates a GregorianCalendar from an iCal date
private static java.lang.String refreshHash(java.lang.String enc_dep, java.lang.String enc_reeks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hash

private static java.lang.String hash
Constructor Detail

ICalFetcher

public ICalFetcher()
Method Detail

fetch

public static java.util.ArrayList<VEVENT> fetch(java.lang.String departement,
                                                java.lang.String reeks)
This method fetched a list of

Parameters:
departement -
reeks -
Returns:
A list of VEVENTs

refreshHash

private static java.lang.String refreshHash(java.lang.String enc_dep,
                                            java.lang.String enc_reeks)

createLessonList

public static java.util.ArrayList<Lesson> createLessonList(java.util.ArrayList<VEVENT> events,
                                                           java.util.ArrayList<java.lang.String> selectedclasses,
                                                           java.lang.String reeks)
This method creates a list of lessons based on a list of events and a list of selected classes

Parameters:
events -
selectedclasses -
reeks -
Returns:
A list of lessons

parseICalDate

public static java.util.GregorianCalendar parseICalDate(java.lang.String date)
This method creates a GregorianCalendar from an iCal date

Parameters:
date -
Returns:
GregorianCalendar