Package com.whatsapp.api.domain.messages
Class DateTime
java.lang.Object
com.whatsapp.api.domain.messages.DateTime
The type Date time.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets calendar.Gets day of month.Gets day of week.Gets fallback value.getHour()
Gets hour.Gets minute.getMonth()
Gets month.getYear()
Gets year.setCalendar
(CalendarType calendar) Sets calendar.setDayOfMonth
(Integer dayOfMonth) Sets day of month.setDayOfWeek
(Integer dayOfWeek) Sets day of week.setFallbackValue
(String fallbackValue) Sets fallback value.Sets hour.Sets minute.Sets month.Sets year.
-
Constructor Details
-
DateTime
public DateTime()
-
-
Method Details
-
getFallbackValue
Gets fallback value.- Returns:
- the fallback value
-
setFallbackValue
Sets fallback value.- Parameters:
fallbackValue
- the fallback value- Returns:
- the fallback value
-
getCalendar
Gets calendar.- Returns:
- the calendar
-
setCalendar
Sets calendar.- Parameters:
calendar
- the calendar- Returns:
- the calendar
-
getMonth
Gets month.- Returns:
- the month
-
setMonth
Sets month.- Parameters:
month
- the month- Returns:
- the month
-
getHour
Gets hour.- Returns:
- the hour
-
setHour
Sets hour.- Parameters:
hour
- the hour- Returns:
- the hour
-
getYear
Gets year.- Returns:
- the year
-
setYear
Sets year.- Parameters:
year
- the year- Returns:
- the year
-
getDayOfMonth
Gets day of month.- Returns:
- the day of month
-
setDayOfMonth
Sets day of month.- Parameters:
dayOfMonth
- the day of month- Returns:
- the day of month
-
getDayOfWeek
Gets day of week.- Returns:
- the day of week
-
setDayOfWeek
Sets day of week.- Parameters:
dayOfWeek
- the day of week- Returns:
- the day of week
-
getMinute
Gets minute.- Returns:
- the minute
-
setMinute
Sets minute.- Parameters:
minute
- the minute- Returns:
- the minute
-