Skip to content

Instantly share code, notes, and snippets.

View ola0x's full-sized avatar
๐Ÿ 
Working from home

Olanrewaju Ola ola0x

๐Ÿ 
Working from home
View GitHub Profile
Consider this Url
www.app.net/api/searchtypes/862189/filters?Type=6&SearchText=School
Now this is the call
@GET("/api/searchtypes/{Id}/filters")
Call<FilterResponse> getFilterList(
@Path("Id") long customerId,
@Query("Type") String responseType,
@Query("SearchText") String searchText
override fun onModalOptionSelected(tag: String?, option: Option) {
when(option.id){
R.id.action_share -> findNavController().navigate(R.id.action_favoriteFragment_to_shareFragment)
R.id.action_edit -> findNavController().navigate(R.id.action_favoriteFragment_to_editFragment)
}
}
class Timer {
fun printDifferenceDateForHours() {
val currentTime = Calendar.getInstance().time
val endDateDay = "03/02/2020 21:00:00"
val format1 = SimpleDateFormat("dd/MM/yyyy hh:mm:ss",Locale.getDefault())
val endDate = format1.parse(endDateDay)
//milliseconds