org.jasig.schedassist.web.owner.schedule
Class AvailableScheduleDataController.AvailableBlockJsonRepresentation

java.lang.Object
  extended by org.jasig.schedassist.web.owner.schedule.AvailableScheduleDataController.AvailableBlockJsonRepresentation
Enclosing class:
AvailableScheduleDataController

public static class AvailableScheduleDataController.AvailableBlockJsonRepresentation
extends Object

Simpler representation of an AvailableBlock tailored for JSON.

Author:
Nicholas Blair, npblair@wisc.edu

Field Summary
static String DATETIME_FORMAT
           
 
Constructor Summary
AvailableScheduleDataController.AvailableBlockJsonRepresentation(AvailableBlock block)
           
 
Method Summary
 int getDurationIn15Mins()
           
 String getMeetingLocation()
           
 String getStartTime()
           
 int getVisitorLimit()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATETIME_FORMAT

public static final String DATETIME_FORMAT
See Also:
Constant Field Values
Constructor Detail

AvailableScheduleDataController.AvailableBlockJsonRepresentation

public AvailableScheduleDataController.AvailableBlockJsonRepresentation(AvailableBlock block)
Parameters:
block -
Method Detail

getStartTime

public String getStartTime()
Returns:
the formatted start time of the block

getDurationIn15Mins

public int getDurationIn15Mins()
Returns:
the duration of the block in 15 minute segments (e.g. ~block duration / 15)

getVisitorLimit

public int getVisitorLimit()
Returns:
the block's visitorLimit

getMeetingLocation

public String getMeetingLocation()
Returns:
the block's meetingLocation


Copyright © 2012 Jasig. All Rights Reserved.