tripkit-android / com.skedgo.tripkit.common.util / TripSegmentUtils

TripSegmentUtils

class TripSegmentUtils

Functions

Name Summary
getDurationFromMinutes static fun getDurationFromMinutes(minutes:Long):String!
getFirstNonNullLocation TODO Should move this method into so-called 'LocationUtils'static fun getFirstNonNullLocation(vararg locations:Location!):Location!
getLocationName TODO Should move this method into so-called 'LocationUtils'static fun getLocationName(location:Location!):String!
getTripSegmentAction static fun getTripSegmentAction(context: Context!, segment:TripSegment!):String?
processDurationTemplate static fun processDurationTemplate(templateText:String?, pattern:String?, startTimeInSecs:Long, endTimeInSecs:Long):String?
processTimeTemplate static fun processTimeTemplate(context: Context!, templateText:String!, timezone:String!, timeInMillis:Long):String!