java.lang.Object
com.exxothermic.audioeverywheresdk.business.model.Schedule
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ScheduleMixinAnnotations

public class Schedule extends Object implements Serializable
Class that will handle the schedule for a custom button
Since:
9/9/14
See Also:
  • Constructor Details

    • Schedule

      public Schedule()
  • Method Details

    • getHourRange

      public List<String> getHourRange()
    • setHourRange

      public void setHourRange(List<String> mHourRange)
    • getDaysRange

      public List<Integer> getDaysRange()
    • setDaysRange

      public void setDaysRange(List<Integer> mDaysRange)
    • getExpirationDate

      public long getExpirationDate()
    • setExpirationDate

      public void setExpirationDate(long mExpirationDate)
    • getmTimeZoneIdentifier

      public String getmTimeZoneIdentifier()
    • setmTimeZoneIdentifier

      public void setmTimeZoneIdentifier(String mTimeZoneIdentifier)
    • getLocalizedExpirationDate

      public String getLocalizedExpirationDate(android.content.Context currentContext)
      Method that genarates the expiration date, localized to the user device, for this custom button
      Parameters:
      currentContext - context used to get the current localization
      Returns:
      the localized date for the expiration date
    • getLocalizedDayListWithSeparator

      public String getLocalizedDayListWithSeparator(android.content.Context currentContext, int separatorStringID)
      Methods that get the current array of days as a string, localized in the current user's locale the generted string is comma separated, but will use the separator parameter before the last day
      Parameters:
      currentContext - the context used to get the localization
      separatorStringID - the resource ID for the separator, used before the last day on the List
      Returns:
      a string showing the days on wich the offer is available, based on this schedule
    • getLocalizedRangeHours

      public List<String> getLocalizedRangeHours(android.content.Context currentContext)
      Method that returns the range of available hours for this schedule, based on the user localization
      Parameters:
      currentContext - the context used to loalize the information
      Returns:
      the hours of this schedule, localized with the user preferences
    • getDemoSchedule

      public static Schedule getDemoSchedule()
      Method that will get a demo schedule, used for resources that need to show them on the demo mode
      Returns:
      a demo schedule, on wich an element is available all the days iof the week, and in 24 hours