Class Schedule
java.lang.Object
com.exxothermic.audioeverywheresdk.business.model.Schedule
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ScheduleMixinAnnotations
Class that will handle the schedule for a custom button
- Since:
- 9/9/14
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Schedule
Method that will get a demo schedule, used for resources that need to show them on the demo modelong
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 theseparator
parameter before the last daygetLocalizedExpirationDate
(android.content.Context currentContext) Method that genarates the expiration date, localized to the user device, for this custom buttongetLocalizedRangeHours
(android.content.Context currentContext) Method that returns the range of available hours for this schedule, based on the user localizationvoid
setDaysRange
(List<Integer> mDaysRange) void
setExpirationDate
(long mExpirationDate) void
setHourRange
(List<String> mHourRange) void
setmTimeZoneIdentifier
(String mTimeZoneIdentifier)
-
Constructor Details
-
Schedule
public Schedule()
-
-
Method Details
-
getHourRange
-
setHourRange
-
getDaysRange
-
setDaysRange
-
getExpirationDate
public long getExpirationDate() -
setExpirationDate
public void setExpirationDate(long mExpirationDate) -
getmTimeZoneIdentifier
-
setmTimeZoneIdentifier
-
getLocalizedExpirationDate
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 theseparator
parameter before the last day- Parameters:
currentContext
- the context used to get the localizationseparatorStringID
- 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
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
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
-