package mntone.univschedule.client;

import java.util.Date;

import mntone.univschedule.core.*;

/**
 * Client for university class schedule
 */
public final class UniversityScheduleClient
{
	static final class UniversitiesBridge extends Universities.FriendUniversities
	{
	}
	static final class ClassesBridge extends Classes.FriendClasses
	{
	}
	static final UniversitiesBridge UNIVERSITIES_BRIDGE = new UniversitiesBridge();
	static final ClassesBridge CLASSES_BRIDGE = new ClassesBridge();

	static final String X_UNIVS_LAST_MODIFIED = "X-UNIVS-LAST-MODIFIED";
	static final String DEFAULT_USER_AGENT = "UniversityScheduleClient for Java/0.9";

	private final String mAccessKey;
	private String mAdditionalUserAgent = null;
	private Date mUniverstiesModifiedAt = new Date( 0 );

	/**
	 * Initialize a new client for university class schedule.
	 *
	 * @param accessKey the access key
	 */
	public UniversityScheduleClient( String accessKey )
	{
		this.mAccessKey = accessKey;
	}

	/**
	 * Get universities.
	 *
	 * @return the array of University
	 * @throws UniversityScheduleException the UniversityClassScheduleException
	 */
	public Universities getUniversities() throws UniversityScheduleException
	{
		return UniversitiesClient.getUniversities( this );
	}

	/**
	 * Get classes.
	 *
	 * @param university the university
	 * @return the classes
	 * @throws UniversityScheduleException the UniversityClassScheduleException
	 */
	public Classes getClasses( University university ) throws UniversityScheduleException
	{
		return this.getClasses( university.getScreenName() );
	}

	/**
	 * Get classes.
	 *
	 * @param universityScreenName the screen name of university
	 * @return the classes
	 * @throws UniversityScheduleException the UniversityClassScheduleException
	 */
	public Classes getClasses( String universityScreenName ) throws UniversityScheduleException
	{
		return ClassesClient.getClasses( this, universityScreenName );
	}

	/**
	 * Get access key.
	 *
	 * @return the access key
	 */
	public String getAccessKey()
	{
		return this.mAccessKey;
	}

	/**
	 * Get additional user agent.
	 *
	 * @return the additional user agent
	 */
	public String getAdditionalUserAgent()
	{
		return this.mAdditionalUserAgent;
	}

	/**
	 * Set additional user agent.
	 *
	 * @param additionalUserAgent the additional user agent
	 */
	public void setAdditionalUserAgent( String additionalUserAgent )
	{
		this.mAdditionalUserAgent = additionalUserAgent;
	}

	/**
	 * Get last modified of university list.
	 *
	 * @return the last modified of university list
	 */
	public Date getUniverstiesModifiedAt()
	{
		return this.mUniverstiesModifiedAt;
	}

	/**
	 * Set last modified of university list..
	 *
	 * @param value the last modified of university list.
	 */
	void setUniverstiesModifiedAt( Date value )
	{
		this.mUniverstiesModifiedAt = value;
	}
}
@@ -2755,16 +2755,23 @@
 .%0A%09 */%0A%09
+public 
 void set

Change UniversitiesModifiedAt accessor level (JVM).