content
stringlengths 0
13M
| path
stringlengths 4
263
| contentHash
stringlengths 1
10
|
---|---|---|
package com.callastro.adapters
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.callastro.R
import com.callastro.databinding.RowConfirmationbookingCallBinding
import com.callastro.model.ConfirmationBookingData
class ConfirmationBookingCallAdapter (val context : Context, var list: List<ConfirmationBookingData>, private val listener: getUserid) :
RecyclerView.Adapter<ConfirmationBookingCallAdapter.ViewHolder>() {
var row_index: Int = -1
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var binding: RowConfirmationbookingCallBinding = DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ConfirmationBookingCallAdapter.ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_confirmationbooking_call, parent, false)
return ViewHolder(itemView)
}
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: ConfirmationBookingCallAdapter.ViewHolder, position: Int) {
val data = list[position]
holder.binding.tvName.text = data.userName
holder.binding.tvLanguage.text = data.language
holder.binding.tvPhn.text = data.mobileNo
Glide.with(context).load(data.profile.toString()).into(holder.binding.ivUserPic)
holder.binding.llStartCall.setOnClickListener(View.OnClickListener {
listener.Userid(data.userId.toString(),data.id.toString(),data.userName.toString())
Toast.makeText(context, data.userId.toString(), Toast.LENGTH_SHORT).show()
})
// holder.binding.ivNext.setOnClickListener(View.OnClickListener {
// row_index = position
// listener.onCallItemClicked(data)
// })
//
// holder.binding.llChat.setOnClickListener(View.OnClickListener {
// row_index = position
// listener.onCallItemClicked(data)
// })
//
// holder.binding.linearItem.setOnClickListener(View.OnClickListener {
// row_index = position
// listener.onListItemClicked(data)
// })
/*if(data.requestStatus!!.toString().equals("1"))
{
holder.binding.llAccept.visibility = View.VISIBLE
holder.binding.llCancel.visibility = View.VISIBLE
holder.binding.llStartCall.visibility = View.GONE
}
else if(data.requestStatus!!.toString().equals("2"))
{
holder.binding.llAccept.visibility = View.GONE
holder.binding.llCancel.visibility = View.GONE
holder.binding.llStartCall.visibility = View.VISIBLE
}
else if(data.requestStatus!!.toString().equals("3"))
{
holder.binding.llAccept.visibility = View.GONE
holder.binding.llCancel.visibility = View.GONE
holder.binding.llStartCall.visibility = View.GONE
}
*/
}
override fun getItemCount(): Int {
return list.size
}
// interface OnClick{
// fun onCallItemClicked(confirmationBookingData: ConfirmationBookingData)
// fun onListItemClicked(confirmationBookingData: ConfirmationBookingData)
//
// }
interface getUserid{
fun Userid(id:String,mainid:String,username:String)
}
} | callastro/app/src/main/java/com/callastro/adapters/ConfirmationBookingCallAdapter.kt | 255375989 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.callastro.R
import com.callastro.databinding.RowConfirmationbookingChatBinding
import com.callastro.model.ConfirmationBookingData
class ConfirmationBookingChatAdapter (val context : Context, var list: List<ConfirmationBookingData>, private val listener: OnClick) :
RecyclerView.Adapter<ConfirmationBookingChatAdapter.ViewHolder>() {
var row_index: Int = -1
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var binding: RowConfirmationbookingChatBinding = DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ConfirmationBookingChatAdapter.ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_confirmationbooking_chat, parent, false)
return ViewHolder(itemView)
}
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: ConfirmationBookingChatAdapter.ViewHolder, position: Int) {
val data = list[position]
holder.binding.tvName.text = data.userName
holder.binding.tvLanguage.text = data.language
holder.binding.tvPhn.text = data.mobileNo
Glide.with(context).load(data.profile.toString()).into(holder.binding.ivUserPic)
holder.binding.llStartChat.setOnClickListener(View.OnClickListener {
row_index = position
listener.onChatItemClicked(data)
})
holder.binding.ivNext.setOnClickListener(View.OnClickListener {
// row_index = position
// listener.onCallItemClicked(data)
})
/* holder.binding.llChat.setOnClickListener(View.OnClickListener {
//row_index = position
// listener.onChatItemClicked(data)
})*/
holder.binding.linearItem.setOnClickListener(View.OnClickListener {
row_index = position
listener.onListItemClicked(data)
})
}
override fun getItemCount(): Int {
return list.size
}
interface OnClick{
fun onChatItemClicked(confirmationBookingData: ConfirmationBookingData)
fun onListItemClicked(confirmationBookingData: ConfirmationBookingData)
}
} | callastro/app/src/main/java/com/callastro/adapters/ConfirmationBookingChatAdapter.kt | 1602426247 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.callastro.R
import com.callastro.databinding.RowProductBinding
import com.callastro.model.ProductListData
class SuggestRemedyProductsAdapter (val context : Context, var list: List<ProductListData>, private val listener: OnClick) :
RecyclerView.Adapter<SuggestRemedyProductsAdapter.ViewHolder>() {
var row_index: Int = -1
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var binding: RowProductBinding = DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): SuggestRemedyProductsAdapter.ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_product, parent, false)
return ViewHolder(itemView)
}
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: SuggestRemedyProductsAdapter.ViewHolder, position: Int) {
val data = list[position]
holder.binding.tvProductName.text = data.name
Glide.with(context).load(data.mainImage.toString()).into(holder.binding.ivProduct)
/*holder.binding.cbTick.setOnClickListener(View.OnClickListener {
row_index = position
listener.onProductItemClicked(data)
})*/
holder.binding.cbTick.setOnCheckedChangeListener { buttonView, isChecked ->
if (isChecked) {
// show toast , check box is checked
row_index = position
listener.onProductItemAddClicked(data)
} else {
// show toast , check box is not checked
row_index = position
listener.onProductItemRemoveClicked(data)
}
}
/*if(data.requestStatus!!.toString().equals("1"))
{
holder.binding.llAccept.visibility = View.VISIBLE
holder.binding.llCancel.visibility = View.VISIBLE
holder.binding.llStartCall.visibility = View.GONE
}
else if(data.requestStatus!!.toString().equals("2"))
{
holder.binding.llAccept.visibility = View.GONE
holder.binding.llCancel.visibility = View.GONE
holder.binding.llStartCall.visibility = View.VISIBLE
}
else if(data.requestStatus!!.toString().equals("3"))
{
holder.binding.llAccept.visibility = View.GONE
holder.binding.llCancel.visibility = View.GONE
holder.binding.llStartCall.visibility = View.GONE
}
*/
}
override fun getItemCount(): Int {
return list.size
}
interface OnClick{
fun onProductItemAddClicked(productListData: ProductListData)
fun onProductItemRemoveClicked(productListData: ProductListData)
}
} | callastro/app/src/main/java/com/callastro/adapters/SuggestRemedyProductsAdapter.kt | 2682829360 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.callastro.R
import com.callastro.databinding.RowConfirmationbookingChatBinding
import com.callastro.model.MyBookingsUpcomingCompletedData
class MyBookingsUpcomingAdapter (val list: List<MyBookingsUpcomingCompletedData>, private val listener: OnClick
) : RecyclerView.Adapter<MyBookingsUpcomingAdapter.ViewHolder>() {
var row_index: Int = -1
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView){
var binding: RowConfirmationbookingChatBinding= DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_confirmationbooking_chat, parent, false)
return ViewHolder(itemView) }
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val data = list[position]
holder.binding.tvName.text = data.userName
holder.binding.linearItem.setOnClickListener(View.OnClickListener {
row_index = position
listener.onChatlItemClicked(data)
})
}
override fun getItemCount(): Int {
return list.size
}
interface OnClick{
fun onChatlItemClicked(myBookingsUpcomingCompletedData: MyBookingsUpcomingCompletedData)
}
} | callastro/app/src/main/java/com/callastro/adapters/MyBookingsUpcomingAdapter.kt | 2863794325 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.callastro.R
import com.callastro.databinding.RowCancellationByUserBinding
import com.callastro.model.CancellationByUserData
class CancellationByUserAdapter (val context : Context, var list: List<CancellationByUserData>) :
RecyclerView.Adapter<CancellationByUserAdapter.ViewHolder>() {
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var binding: RowCancellationByUserBinding = DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_cancellation_by_user, parent, false)
return ViewHolder(itemView)
}
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val data = list[position]
holder.binding.tvName.text = data.toString()
holder.binding.tvLanguage.text = data.language.toString()
Glide.with(context).load(data.profile.toString()).into(holder.binding.ivUser)
/*holder.binding.linearItem.setOnClickListener(View.OnClickListener {
row_index = position
listener.onCallItemClicked(data)
})*/
/* holder.binding.llAccept.setOnClickListener(View.OnClickListener {
row_index = position
listener.onCallAcceptClicked(data)
})
holder.binding.llCancel.setOnClickListener(View.OnClickListener {
row_index = position
listener.onCallCancelClicked(data)
})*/
/* holder.binding.llCall.visibility = View.GONE
holder.binding.llAudioCall.visibility = View.VISIBLE
holder.binding.llStartCall.setOnClickListener(View.OnClickListener {
row_index = position
listener.onStartCallButtonClicked(data)
})*/
// if(data.mobile.equals("")||data.mobile.equals(null)){
// holder.binding.llAudioCall.visibility = View.GONE
// }
// else{
// holder.binding.llAudioCall.visibility = View.VISIBLE
//
// }
//1-Chat Requests,2-Call Requests, 3-Video Call Requests
if(data.type!!.toString().equals("1"))
{
holder.binding.llChat.visibility = View.VISIBLE
holder.binding.llAudioCall.visibility = View.GONE
holder.binding.llVideoCall.visibility = View.GONE
}
else if(data.type!!.toString().equals("2"))
{
holder.binding.llChat.visibility = View.GONE
holder.binding.llAudioCall.visibility = View.VISIBLE
holder.binding.llVideoCall.visibility = View.GONE
}
else if(data.type!!.toString().equals("3"))
{
holder.binding.llChat.visibility = View.GONE
holder.binding.llAudioCall.visibility = View.GONE
holder.binding.llVideoCall.visibility = View.VISIBLE
}
}
override fun getItemCount(): Int {
return list.size
}
interface OnClick{
// fun onCallItemClicked(chat_Call_ResponseData: Chat_Call_ResponseData)
// fun onCallAcceptClicked(chat_Call_ResponseData: Chat_Call_ResponseData)
// fun onCallCancelClicked(chat_Call_ResponseData: Chat_Call_ResponseData)
// fun onStartCallButtonClicked(chat_Call_ResponseData: Chat_Call_ResponseData)
}
} | callastro/app/src/main/java/com/callastro/adapters/CancellationByUserAdapter.kt | 760287201 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.content.Context
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.callastro.R
import com.callastro.databinding.RowSelectRatingReviewBinding
import com.callastro.model.GetAstroRatingReviewReviewRatings
class ReviewRatingSelectAdapter (val context : Context, var list: List<GetAstroRatingReviewReviewRatings>, private val listener: OnClick) :
RecyclerView.Adapter<ReviewRatingSelectAdapter.ViewHolder>() {
var row_index: Int = -1
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var binding: RowSelectRatingReviewBinding = DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ReviewRatingSelectAdapter.ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_select_rating_review, parent, false)
return ViewHolder(itemView)
}
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: ReviewRatingSelectAdapter.ViewHolder, position: Int) {
val data = list[position]
holder.binding.tvUserName.text = data.userName.toString()+data.id
holder.binding.tvDetail.text = data.reveiw.toString()
Glide.with(context).load(data.profile.toString()).into(holder.binding.ivImage)
holder.binding.ratingByUser.setRating(data.rating!!.toFloat());
if(data.pin!! == 1){
holder.binding.cbReview.isChecked = true
//notifyDataSetChanged()
Log.d("CheckBoxInfo_adap","str_got1__"+ data.id!! )
}
else if(data.pin!! == 0){
holder.binding.cbReview.isChecked = false
// notifyDataSetChanged()
Log.d("CheckBoxInfo","str_got0__"+ data.id!! )
}
holder.binding.cbReview.setOnClickListener(View.OnClickListener {
row_index = position
var checkAdd: String? =""
if(holder.binding.cbReview.isChecked){
Toast.makeText(context, "checked", Toast.LENGTH_SHORT).show()
checkAdd = "1"
}
else if(!holder.binding.cbReview.isChecked) {
Toast.makeText(context, "unchecked", Toast.LENGTH_SHORT).show()
checkAdd = "0"
}
listener.onRatingItemClicked(data,checkAdd.toString())
})
}
override fun getItemCount(): Int {
return list.size
}
override fun getItemViewType(position: Int): Int {
return position
}
override fun getItemId(position: Int): Long {
return position.toLong()
}
interface OnClick{
fun onRatingItemClicked(getAstroRatingReviewReviewRatings: GetAstroRatingReviewReviewRatings, checkAdd :String)
}
} | callastro/app/src/main/java/com/callastro/adapters/ReviewRatingSelectAdapter.kt | 2319766148 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.content.Context
import android.os.Build
import android.text.Html
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.callastro.R
import com.callastro.databinding.RowChatwithusBinding
import com.callastro.model.ChatListMessageData
import com.callastro.model.GetCustomerSupportChatData
import com.maxtra.callastro.prefs.UserPref
import java.lang.Long
import java.text.SimpleDateFormat
import java.util.Date
class CustomerSupportChat(
private val context: Context,
messageList: List<GetCustomerSupportChatData>
) : RecyclerView.Adapter<CustomerSupportChat.MyViewHolder>() {
private val messageList: List<GetCustomerSupportChatData>
private val userPref: UserPref
override fun onCreateViewHolder(
parent: ViewGroup,
viewType: Int
): MyViewHolder {
val itemView: View =
LayoutInflater.from(parent.context).inflate(R.layout.row_chatwithus, parent, false)
return MyViewHolder(itemView)
}
@SuppressLint("SimpleDateFormat")
fun getTimeStampDate(str_date: String): String? {
var str_date = str_date
val format = SimpleDateFormat("dd-MMM-yy hh.mm a")
if (str_date.length < 13) {
str_date = (java.lang.Long.valueOf(str_date) * 1000).toString() + ""
}
var date: Date? = null
try {
date = Date(Long.valueOf(str_date))
} catch (e: Exception) {
e.printStackTrace()
}
assert(date != null)
var timestampValue: String? = ""
try {
timestampValue = format.format(date)
} catch (e: Exception) {
e.printStackTrace()
}
return timestampValue
}
override fun onBindViewHolder(
holder: MyViewHolder,
position: Int
) {
if (messageList[position].type.toString().equals("1")
) {
holder.binding!!.cvMy.visibility = View.VISIBLE
holder.binding.cvOther.visibility = View.GONE
if (messageList[position].createdAt != null && !messageList[position].createdAt
!!.equals("")
) {
holder.binding.tvDateTimeMy.text = /*getTimeStampDate(*/
messageList[position].createdAt!!.toString()
// )
} else {
holder.binding.tvDateTimeMy.text = ""
}
//
// holder.binding.tvMsgMy.text = messageList[position]
// .message
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
holder.binding.tvMsgMy.setText(Html.fromHtml(messageList[position].message, Html.FROM_HTML_MODE_LEGACY));
} else
holder.binding.tvMsgMy.setText(Html.fromHtml(messageList[position].message));
holder.binding.tvMsgMy.visibility = View.VISIBLE
} else {
holder.binding!!.cvMy.visibility = View.GONE
holder.binding.cvOther.visibility = View.VISIBLE
if (messageList[position].createdAt != null && !messageList[position].createdAt
!!.equals("")
) {
holder.binding.tvDateTimeOther.text =
/* getTimeStampDate(*/messageList[position].createdAt!!.toString()/*)*/
} else {
holder.binding.tvDateTimeOther.text = ""
}
// holder.binding.tvMsgOther.text =
// if (messageList[position].message != null) messageList[position]
// .message else ""
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
holder.binding.tvMsgOther.setText(Html.fromHtml(messageList[position].message, Html.FROM_HTML_MODE_LEGACY));
} else
holder.binding.tvMsgOther.setText(Html.fromHtml(messageList[position].message));
holder.binding.tvMsgOther.visibility = View.VISIBLE
}
}
override fun getItemCount(): Int {
return messageList.size
}
inner class MyViewHolder(view: View?) : RecyclerView.ViewHolder(view!!) {
val binding: RowChatwithusBinding? = DataBindingUtil.bind(view!!)
}
init {
this.messageList = messageList
userPref = UserPref(this.context)
}
} | callastro/app/src/main/java/com/callastro/adapters/CustomerSupportChat.kt | 3871929776 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.callastro.R
import com.callastro.databinding.RowCallHistoryBinding
import com.callastro.model.CallHistoryListData
import com.callastro.model.ChatHistoryListData
class CallHistoryListAdapter (val list: List<CallHistoryListData>, private val listener: OnClick
) : RecyclerView.Adapter<CallHistoryListAdapter.ViewHolder>() {
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView){
var binding: RowCallHistoryBinding = DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_call_history, parent, false)
return ViewHolder(itemView) }
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val data = list[position]
// holder.binding.tvNationality.text = data.nationality
// holder.binding.tvSessionType.text = data.session_type
holder.binding.tvOrderId.text = "Order id: ${data.orderId.toString()}"
holder.binding.tvUserName.text = data.userName
holder.binding.tvDateTime.text = data.date + " ," + data.time
holder.binding.tvDuration.text = data.duration
holder.binding.tvCallRate.text = "Calling Charge: ₹ "+data.rate
holder.binding.Earned.text = "Earned: ₹ "+data.amount
if (data.feedback == ""){
}else{
holder.binding.tvFeedback.text = data.feedback.toString()
}
if (data.refund_status!!.equals(1)){
holder.binding.llRefundAmount.visibility = View.GONE
}else{
holder.binding.llRefundAmount.visibility = View.VISIBLE
}
holder.binding.ratingUser.setRating(data.rating!!.toFloat());
holder.binding.tvStatus.text = data.status
holder.binding.llSuggestRemedy.setOnClickListener(View.OnClickListener {
listener.onSuggestRemedyClicked(data)
})
holder.binding.llRefundAmount.setOnClickListener(View.OnClickListener {
listener.onRefundAmountClicked(data)
})
}
override fun getItemCount(): Int {
return list.size
}
interface OnClick{
fun onSuggestRemedyClicked(callHistoryListData: CallHistoryListData)
fun onRefundAmountClicked(callHistoryListData: CallHistoryListData)
}
} | callastro/app/src/main/java/com/callastro/adapters/CallHistoryListAdapter.kt | 1660063010 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.callastro.R
import com.callastro.databinding.RowPostprofileReviewsBinding
import com.callastro.model.GetAstroRatingReviewReviewRatings
class ReviewRatingAllAdapter (val context : Context, var list: List<GetAstroRatingReviewReviewRatings>, private val listener: OnClick) :
RecyclerView.Adapter<ReviewRatingAllAdapter.ViewHolder>() {
var row_index: Int = -1
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var binding: RowPostprofileReviewsBinding = DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ReviewRatingAllAdapter.ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_postprofile_reviews, parent, false)
return ViewHolder(itemView)
}
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: ReviewRatingAllAdapter.ViewHolder, position: Int) {
val data = list[position]
holder.binding.tvUserName.text = data.userName.toString()
holder.binding.tvDetail.text = data.reveiw.toString()
Glide.with(context).load(data.profile.toString()).into(holder.binding.ivImage)
holder.binding.ratingByUser.setRating(data.rating!!.toFloat());
holder.binding.linearItem.setOnClickListener(View.OnClickListener {
row_index = position
listener.onRatingItemClicked(data)
})
}
override fun getItemCount(): Int {
return list.size
}
interface OnClick{
fun onRatingItemClicked(getAstroRatingReviewReviewRatings: GetAstroRatingReviewReviewRatings)
}
} | callastro/app/src/main/java/com/callastro/adapters/ReviewRatingAllAdapter.kt | 2547997242 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.callastro.R
import com.callastro.databinding.RowChatRequestBinding
import com.callastro.model.Chat_Call_ResponseData
class ChatHomeAdapter (val context : Context, var list: List<Chat_Call_ResponseData>, private val listener:OnClick) :
RecyclerView.Adapter<ChatHomeAdapter.ViewHolder>() {
var row_index: Int = -1
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var binding: RowChatRequestBinding = DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ChatHomeAdapter.ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_chat_request, parent, false)
return ViewHolder(itemView)
}
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: ChatHomeAdapter.ViewHolder, position: Int) {
val data = list[position]
holder.binding.tvName.text = data.userName.toString()
holder.binding.tvLanguage.text = data.language.toString()
// Glide.with(context).load(data.toString()).into(holder.binding.image)
Glide.with(context).load(data.profile.toString()).into(holder.binding.image)
holder.binding.linearItem.setOnClickListener(View.OnClickListener {
row_index = position
listener.onChatItemClicked(data)
})
holder.binding.llAccept.setOnClickListener(View.OnClickListener {
row_index = position
listener.onChatAcceptClicked(data)
})
holder.binding.llCancel.setOnClickListener(View.OnClickListener {
row_index = position
listener.onChatCancelClicked(data)
})
holder.binding.llStartChat.setOnClickListener(View.OnClickListener {
row_index = position
listener.onStartChatButtonClicked(data)
})
if(data.requestStatus!!.toString().equals("1"))
{
holder.binding.llAccept.visibility = View.VISIBLE
holder.binding.llCancel.visibility = View.VISIBLE
holder.binding.llStartChat.visibility = View.GONE
}
else if(data.requestStatus!!.toString().equals("2"))
{
holder.binding.llAccept.visibility = View.GONE
holder.binding.llCancel.visibility = View.GONE
holder.binding.llStartChat.visibility = View.VISIBLE
}
else if(data.requestStatus!!.toString().equals("3"))
{
holder.binding.llAccept.visibility = View.GONE
holder.binding.llCancel.visibility = View.GONE
holder.binding.llStartChat.visibility = View.GONE
}
}
override fun getItemCount(): Int {
return list.size
}
interface OnClick{
fun onChatItemClicked(chat_Call_ResponseData: Chat_Call_ResponseData)
fun onChatAcceptClicked(chat_Call_ResponseData: Chat_Call_ResponseData)
fun onChatCancelClicked(chat_Call_ResponseData: Chat_Call_ResponseData)
fun onStartChatButtonClicked(chat_Call_ResponseData: Chat_Call_ResponseData)
}
} | callastro/app/src/main/java/com/callastro/adapters/ChatHomeAdapter.kt | 2032935096 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.callastro.R
import com.callastro.databinding.RowSelectTimeBinding
import com.callastro.model.CalenderListData
class CalenderScheduleAdapter (val context : Context, var data: ArrayList<CalenderListData>, private val listener: OnClick) :
RecyclerView.Adapter<CalenderScheduleAdapter.ViewHolder>() {
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var binding: RowSelectTimeBinding = DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): CalenderScheduleAdapter.ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_select_time, parent, false)
return ViewHolder(itemView)
}
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: CalenderScheduleAdapter.ViewHolder, position: Int) {
val List = data[position]
holder.binding.tvTimeFrom.text = List.fromTime.toString()
holder.binding.tvTimeTo.text = List.toTime.toString()
holder.binding.tvDateView.text = List.date.toString()
// Log.d(TAG, "onBindViewHolde6r:AG, "onBindViewHolde6r: "+DateFormat.dealstimeforedit(List.fromTime.toString()))
// Log.d(TAG, "onBindViewHolde6r: "+DateFormat.getDealTime(List.fromTime.toString()))
// Log.d(TAG, "onBindViewHolde6r: "+DateFormat.dealstime(List.fromTime.toString()))
// Log.d(TAG, "onBindViewHolde6r: "+DateFormat.dealstimeforedit(List.fromTime.toString())) "+DateFormat.getDealTime(List.fromTime.toString()))
// Log.d(TAG, "onBindViewHolde6r: "+DateFormat.dealstime(List.fromTime.toString()))
// Log.d(TAG, "onBindViewHolde6r: "+DateFormat.dealstimeforedit(List.fromTime.toString()))
holder.binding.tvRemove.setOnClickListener(View.OnClickListener {
listener.onRemovedFromApiClicked(List)
})
}
override fun getItemCount(): Int {
return data.size
}
interface OnClick{
fun onRemovedFromApiClicked(calenderListData: CalenderListData)
}
} | callastro/app/src/main/java/com/callastro/adapters/CalenderScheduleAdapter.kt | 1167193890 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.callastro.R
import com.callastro.databinding.RowConfirmationbookingFixedsessionBinding
import com.callastro.model.ConfirmationBookingData
class ConfirmationBookingFSAdapter(
val context: Context,
var list: List<ConfirmationBookingData>,
private val listener: OnClick
) :
RecyclerView.Adapter<ConfirmationBookingFSAdapter.ViewHolder>() {
var row_index: Int = -1
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var binding: RowConfirmationbookingFixedsessionBinding = DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(
parent: ViewGroup,
viewType: Int
): ConfirmationBookingFSAdapter.ViewHolder {
val itemView = LayoutInflater.from(parent.context)
.inflate(R.layout.row_confirmationbooking_fixedsession, parent, false)
return ViewHolder(itemView)
}
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: ConfirmationBookingFSAdapter.ViewHolder, position: Int) {
val data = list[position]
holder.binding.tvName.text = data.userName
holder.binding.tvLanguage.text = data.language
holder.binding.tvPhn.text = data.mobileNo
holder.binding.tvFixedSessionTime.text = "Fixed Session: " + data.fix_session
Glide.with(context).load(data.profile.toString()).into(holder.binding.ivUserPic)
if (data.active_status == 1) {
holder.binding.start.text = "Active"
} else {
holder.binding.start.text = "Waiting"
}
holder.binding.llStartCall.setOnClickListener(View.OnClickListener {
if (data.active_status == 1) {
row_index = position
listener.onListItemClicked(data)
} else {
Toast.makeText(context, "session not start", Toast.LENGTH_SHORT).show()
}
}
)
holder.binding.ivNext.setOnClickListener(View.OnClickListener {
// row_index = position
// listener.onCallItemClicked(data)
})
holder.binding.llAudioCall.setOnClickListener(View.OnClickListener {
// row_index = position
// listener.onCallItemClicked(data)
})
holder.binding.linearItem.setOnClickListener(View.OnClickListener {
row_index = position
listener.onListItemClicked(data)
})
/*if(data.requestStatus!!.toString().equals("1"))
{
holder.binding.llAccept.visibility = View.VISIBLE
holder.binding.llCancel.visibility = View.VISIBLE
holder.binding.llStartCall.visibility = View.GONE
}
else if(data.requestStatus!!.toString().equals("2"))
{
holder.binding.llAccept.visibility = View.GONE
holder.binding.llCancel.visibility = View.GONE
holder.binding.llStartCall.visibility = View.VISIBLE
}
else if(data.requestStatus!!.toString().equals("3"))
{
holder.binding.llAccept.visibility = View.GONE
holder.binding.llCancel.visibility = View.GONE
holder.binding.llStartCall.visibility = View.GONE
}
*/
}
override fun getItemCount(): Int {
return list.size
}
interface OnClick {
fun onListItemClicked(confirmationBookingData: ConfirmationBookingData)
}
} | callastro/app/src/main/java/com/callastro/adapters/ConfirmationBookingFSAdapter.kt | 888747154 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.callastro.R
import com.callastro.databinding.RowCallHistoryBinding
import com.callastro.model.ChatHistoryListData
class ChatHistoryListAdapter (val list: List<ChatHistoryListData>, private val listener: OnClick
) : RecyclerView.Adapter<ChatHistoryListAdapter.ViewHolder>() {
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView){
var binding: RowCallHistoryBinding = DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_call_history, parent, false)
return ViewHolder(itemView) }
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val data = list[position]
// holder.binding.tvNationality.text = data.nationality
// holder.binding.tvSessionType.text = data.session_type
holder.binding.tvOrderId.text = "Order id: ${data.orderId.toString()}"
holder.binding.tvUserName.text = data.userName
holder.binding.tvDateTime.text = data.date + " ," + data.time
holder.binding.tvDuration.text = data.duration
holder.binding.tvCallRate.text = "Calling Charge: ₹ "+data.rate
holder.binding.Earned.text = "Earned: ₹ "+data.amount
holder.binding.tvFeedback.text = data.feedback
holder.binding.ratingUser.setRating(data.rating!!.toFloat());
holder.binding.tvStatus.text = data.status
if (data.refund_status!!.equals(1)){
holder.binding.llRefundAmount.visibility = View.GONE
}else{
holder.binding.llRefundAmount.visibility = View.VISIBLE
}
holder.binding.llSuggestRemedy.setOnClickListener(View.OnClickListener {
listener.onSuggestRemedyClicked(data)
})
holder.binding.llRefundAmount.setOnClickListener(View.OnClickListener {
listener.onRefundAmountClicked(data)
})
}
override fun getItemCount(): Int {
return list.size
}
interface OnClick{
fun onSuggestRemedyClicked(chatHistoryListData: ChatHistoryListData)
fun onRefundAmountClicked(chatHistoryListData: ChatHistoryListData)
}
} | callastro/app/src/main/java/com/callastro/adapters/ChatHistoryListAdapter.kt | 1432224468 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CompoundButton
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.callastro.R
import com.callastro.databinding.RowMyBookingsCompletedBinding
import com.callastro.model.MyBookingsUpcomingCompletedData
import java.util.ArrayList
class MyBookingsCompletedAdapter (val list: List<MyBookingsUpcomingCompletedData>
) : RecyclerView.Adapter<MyBookingsCompletedAdapter.ViewHolder>() {
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView){
var binding: RowMyBookingsCompletedBinding= DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_my_bookings_completed, parent, false)
return ViewHolder(itemView) }
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val data = list[position]
holder.binding.tvName.text = data.userName
/*holder.binding.llViewdetails.setOnClickListener(View.OnClickListener {
val intent = Intent(context, TripDetailsActivity::class.java)
intent.putExtra("orderType", "4")
context.startActivity(intent)
})*/
var listreasonType = ArrayList<String>()
var listreasonType_id = ArrayList<String>()
/*holder.binding.cbReason.setOnClickListener(View.OnClickListener { view ->
if ((view as CompoundButton).isChecked) {
val reasonvalue = data.reason
val reasonvalue_id = data.id.toString()
listreasonType.add(data.reason!!)
listreasonType_id.add(data.id.toString())
TripDetailsActivity().checkBox(data.id)
// Toast.makeText(context, "Selected CheckBox ID" + data.id, Toast.LENGTH_SHORT).show();
} else {
listreasonType.remove(data.reason)
listreasonType_id.remove(data.id.toString())
println("Un-Checked")
}
})*/
}
override fun getItemCount(): Int {
return list.size
}
} | callastro/app/src/main/java/com/callastro/adapters/MyBookingsCompletedAdapter.kt | 3027185452 |
package com.callastro.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.callastro.R
import com.callastro.model.BannerResponseData
import com.smarteist.autoimageslider.SliderViewAdapter
class BannerAdapter ( private val sliderDataArrayList: ArrayList<BannerResponseData>) :
SliderViewAdapter<BannerAdapter.BannerAdapterViewHolder>() {
class BannerAdapterViewHolder(itemView: View) :
ViewHolder(itemView) {
var imageViewBackground: ImageView
init {
imageViewBackground = itemView.findViewById(R.id.iv_auto_image_slider)
}
}
override fun onCreateViewHolder(parent: ViewGroup): BannerAdapter.BannerAdapterViewHolder {
val inflate: View =
LayoutInflater.from(parent.context).inflate(R.layout.slider_layout, null)
return BannerAdapterViewHolder(inflate)
}
override fun onBindViewHolder(viewHolder: BannerAdapter.BannerAdapterViewHolder, position: Int) {
val sliderItem = sliderDataArrayList[position]
Glide.with(viewHolder.itemView)
.load(sliderItem.image)
.fitCenter()
.into(viewHolder.imageViewBackground)
}
override fun getCount(): Int {
return sliderDataArrayList.size
}
} | callastro/app/src/main/java/com/callastro/adapters/BannerAdapter.kt | 167519802 |
package com.callastro.adapters
import android.annotation.SuppressLint
import android.content.Context
import android.os.Build
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.RequiresApi
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.callastro.R
import com.callastro.databinding.RowSelectTimeNewBinding
import com.callastro.model.CreateCalendarSchedule
class CalenderScheduleNewAppAdapter (val context : Context, var data: ArrayList<CreateCalendarSchedule>, private val listener: OnClick) :
RecyclerView.Adapter<CalenderScheduleNewAppAdapter.ViewHolder>() {
var row_index: Int = -1
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
var binding: RowSelectTimeNewBinding = DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): CalenderScheduleNewAppAdapter.ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_select_time_new, parent, false)
return ViewHolder(itemView)
}
@RequiresApi(Build.VERSION_CODES.O)
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: CalenderScheduleNewAppAdapter.ViewHolder, position: Int) {
val List = data[position]
holder.binding.tvTimeFromNew.text = List.slottime1Show
holder.binding.tvTimeToNew.text = List.slottime2Show
holder.binding.tvDateViewNew.text = List.slotDate
holder.binding.tvRemoveNew.setOnClickListener {
row_index = position
listener.onRemoveClicked(List)
notifyDataSetChanged()
}
// holder.binding.tvTimeDate.text = List.slotDate
// holder.binding.tvTime1.text = DateFormat.orderDateTime(List.slottime1)
// holder.binding.tvTime2.text = DateFormat.orderDateTime(List.slottime2)
}
override fun getItemCount(): Int {
return data.size
}
interface OnClick{
fun onRemoveClicked(createCalendarSchedule: CreateCalendarSchedule)
}
} | callastro/app/src/main/java/com/callastro/adapters/CalenderScheduleNewAppAdapter.kt | 1140495283 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ReviewPinUpdateResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : String? = null
) | callastro/app/src/main/java/com/callastro/model/ReviewPinUpdateResponse.kt | 680911485 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class AddSkillsItemResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<AddSkillsItemData> = arrayListOf()
)
data class AddSkillsItemData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("skill_name" ) var skillName : String? = null
) | callastro/app/src/main/java/com/callastro/model/AddSkillsItemResponse.kt | 397048723 |
package com.callastro.model
class CreateCalendarSchedule(
var slottime1: String = "",
var slottime2: String = "",
var slotDate: String = "",
var slottime1Show: String = "",
var slottime2Show: String = "",
var removeSlot: String = ""
) {
} | callastro/app/src/main/java/com/callastro/model/CreateCalendarSchedule.kt | 3742203769 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class GetCustomerSupportChat(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<GetCustomerSupportChatData> = arrayListOf()
)
data class GetCustomerSupportChatData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("is_read" ) var isRead : Int? = null,
@SerializedName("type" ) var type : Int? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null,
@SerializedName("time" ) var time : String? = null,
@SerializedName("timetwo" ) var timetwo : String? = null,
@SerializedName("datetwo" ) var datetwo : String? = null
)
| callastro/app/src/main/java/com/callastro/model/GetCustomerSupportChat.kt | 1851591579 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class CallendbyuserResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : CallendbyuserResponseData? = CallendbyuserResponseData()
)
data class CallendbyuserResponseData(
@SerializedName("call_end_status" ) var callEndStatus : Int? = null
)
| callastro/app/src/main/java/com/callastro/model/CallendbyuserResponse.kt | 1521346557 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ChatRequestCancelResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ChatRequestCancelResponseData = ChatRequestCancelResponseData()
)
data class ChatRequestCancelResponseData (
@SerializedName("unique_id" ) var unique_id : String? = null,
) | callastro/app/src/main/java/com/callastro/model/ChatRequestCancelResponse.kt | 1186496974 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class BankDetailResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : BankDetailResponseData? = BankDetailResponseData()
)
data class BankDetailResponseData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("astro_id" ) var astroId : Int? = null,
@SerializedName("bank_name" ) var bankName : String? = null,
@SerializedName("account_no" ) var accountNo : String? = null,
@SerializedName("holder_name" ) var holderName : String? = null,
@SerializedName("ifsc_code" ) var ifscCode : String? = null,
@SerializedName("branch" ) var branch : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null
) | callastro/app/src/main/java/com/callastro/model/BankDetailResponse.kt | 2046539206 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ChatHistoryListResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<ChatHistoryListData> = arrayListOf()
)
data class ChatHistoryListData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("order_id" ) var orderId : Int? = null,
@SerializedName("user_name" ) var userName : String? = null,
@SerializedName("userid" ) var userid : String? = null,
@SerializedName("date" ) var date : String? = null,
@SerializedName("time" ) var time : String? = null,
@SerializedName("duration" ) var duration : String? = null,
@SerializedName("amount" ) var amount : String? = null,
@SerializedName("rate" ) var rate : String? = null,
@SerializedName("feedback" ) var feedback : String? = null,
@SerializedName("rating" ) var rating : Float? = null,
@SerializedName("refund_money" ) var refund_status : Int? = null,
@SerializedName("status" ) var status : String? = null,
@SerializedName("nationality" ) var nationality : String? = null,
@SerializedName("session_type" ) var session_type : String? = null
) | callastro/app/src/main/java/com/callastro/model/ChatHistoryListResponse.kt | 2395663506 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class GetBankDetail(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : GetBankDetailData? = GetBankDetailData()
)
data class GetBankDetailData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("astro_id" ) var astroId : Int? = null,
@SerializedName("bank_name" ) var bankName : String? = null,
@SerializedName("account_no" ) var accountNo : String? = null,
@SerializedName("holder_name" ) var holderName : String? = null,
@SerializedName("ifsc_code" ) var ifscCode : String? = null,
@SerializedName("branch" ) var branch : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null
) | callastro/app/src/main/java/com/callastro/model/GetBankDetail.kt | 3246795287 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class CallChatStatusResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : CallChatStatusResponseData? = CallChatStatusResponseData()
)
data class CallChatStatusResponseData(
@SerializedName("chat_req" ) var chatReq : Int? = null,
@SerializedName("call_req" ) var callReq : Int? = null,
@SerializedName("fix_req" ) var fix_req : Int? = null
) | callastro/app/src/main/java/com/callastro/model/CallChatStatusResponse.kt | 2993310454 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class AstroEarningListResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<AstroEarningListResponseData> = arrayListOf()
)
data class AstroEarningListResponseData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("type" ) var type : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("amount" ) var amount : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("created_time" ) var createdTime : String? = null,
@SerializedName("user_name" ) var userName : String? = null,
@SerializedName("content" ) var content : String? = null
)
| callastro/app/src/main/java/com/callastro/model/AstroEarningListResponse.kt | 1914443961 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class call_ring_status_save_Response(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : call_ring_status_save_ResponseData? = call_ring_status_save_ResponseData()
)
data class call_ring_status_save_ResponseData(
@SerializedName("status" ) var status : Int? = null
) | callastro/app/src/main/java/com/callastro/model/call_ring_status_save_Response.kt | 3480871250 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class StateListResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<StateListData> = arrayListOf()
)
data class StateListData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("state_name" ) var stateName : String? = null
) | callastro/app/src/main/java/com/callastro/model/StateListResponse.kt | 1650319109 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class GetAstroRatingReviewListResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : GetAstroRatingReviewData? = GetAstroRatingReviewData()
)
data class GetAstroRatingReviewReviewRatings (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("rating" ) var rating : String? = null,
@SerializedName("reveiw" ) var reveiw : String? = null,
@SerializedName("user_name" ) var userName : String? = null,
@SerializedName("profile" ) var profile : String? = null,
@SerializedName("pin" ) var pin : Int? = null
)
data class GetAstroRatingReviewCounts (
@SerializedName("total_pin" ) var totalPin : Int? = null,
@SerializedName("total_review" ) var totalReview : Int? = null
)
data class GetAstroRatingReviewData (
@SerializedName("astro_rating" ) var astroRating : AstroRating? = AstroRating(),
@SerializedName("review_ratings" ) var reviewRatings : ArrayList<GetAstroRatingReviewReviewRatings> = arrayListOf(),
@SerializedName("counts" ) var counts : GetAstroRatingReviewCounts? = GetAstroRatingReviewCounts()
)
data class AstroRating (
@SerializedName("avg_rating" ) var avgRating : String? = null,
@SerializedName("total" ) var total : Int? = null,
@SerializedName("five" ) var five : Int? = null,
@SerializedName("four" ) var four : Int? = null,
@SerializedName("three" ) var three : Int? = null,
@SerializedName("two" ) var two : Int? = null,
@SerializedName("one" ) var one : Int? = null
) | callastro/app/src/main/java/com/callastro/model/GetAstroRatingReviewListResponse.kt | 1348855552 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class AgoraGenerateTokenResponse(
@SerializedName("status") var status: Int? = null,
@SerializedName("message") var message: String? = null,
@SerializedName("data") var data: AgoraGenerateTokenData? = AgoraGenerateTokenData()
)
data class AgoraGenerateTokenData(
@SerializedName("id") var id: Int? = null,
@SerializedName("user_id") var userId: Int? = null,
@SerializedName("other_user") var otherUser: Int? = null,
@SerializedName("agora_token") var agoraToken: String? = null,
@SerializedName("expire_time") var expireTime: String? = null,
@SerializedName("channel_name") var channelName: String? = null,
@SerializedName("app_id") var appId: String? = null,
@SerializedName("from_name") var from_name: String? = null,
@SerializedName("from_profile") var from_profile: String? = null,
@SerializedName("caller_id") var caller_id: String? = null,
@SerializedName("to_name") var to_name: String? = null,
@SerializedName("to_profile") var to_profile: String? = null,
@SerializedName("created_at") var createdAt: String? = null,
@SerializedName("updated_at") var updatedAt: String? = null
) | callastro/app/src/main/java/com/callastro/model/AgoraGenerateTokenResponse.kt | 672284147 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ChatListMessageResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<ChatListMessageData> = arrayListOf()
)
data class ChatListMessageData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("to_userid" ) var toUserid : Int? = null,
@SerializedName("from_id" ) var fromId : Int? = null,
@SerializedName("to_id" ) var toId : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("type" ) var type : String? = null,
@SerializedName("token" ) var token : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated" ) var updated : String? = null
)
| callastro/app/src/main/java/com/callastro/model/ChatListMessageResponse.kt | 1530243855 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class PostProfileUpdateResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : PostProfileUpdateData? = PostProfileUpdateData()
)
data class PostProfileUpdateData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("name" ) var name : String? = null,
@SerializedName("email" ) var email : String? = null,
@SerializedName("profile" ) var profile : String? = null,
@SerializedName("is_new" ) var isNew : Int? = null
) | callastro/app/src/main/java/com/callastro/model/PostProfileUpdateResponse.kt | 3808528483 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ChatRequestDetailResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ChatRequestDetailData? = ChatRequestDetailData()
)
data class ChatRequestDetailProfileDetail (
@SerializedName("type" ) var type : Int? = null,
@SerializedName("username" ) var username : String? = null,
@SerializedName("language" ) var language : String? = null,
@SerializedName("mobile" ) var mobile : String? = null,
@SerializedName("profile_image" ) var profileImage : String? = null
)
data class ChatRequestDetailReports (
// @SerializedName("name" ) var name : String? = null,
// @SerializedName("dob" ) var dob : String? = null,
// @SerializedName("time_birth" ) var timeBirth : String? = null,
// @SerializedName("place_birth" ) var placeBirth : String? = null,
// @SerializedName("occupation" ) var occupation : String? = null,
// @SerializedName("maritial_status" ) var maritialStatus : String? = null,
// @SerializedName("topic_consultant" ) var topicConsultant : String? = null
@SerializedName("name" ) var name : String? = null,
@SerializedName("dob" ) var dob : String? = null,
@SerializedName("time_birth" ) var timeBirth : String? = null,
@SerializedName("place_birth" ) var placeBirth : String? = null,
@SerializedName("occupation" ) var occupation : String? = null,
@SerializedName("maritial_status" ) var maritialStatus : String? = null,
@SerializedName("topic_consultant" ) var topicConsultant : String? = null,
@SerializedName("boy_name" ) var boyName : String? = null,
@SerializedName("dob_boy" ) var dobBoy : String? = null,
@SerializedName("birth_time_boy" ) var birthTimeBoy : String? = null,
@SerializedName("place_birth_boy" ) var placeBirthBoy : String? = null,
@SerializedName("occupation_boy" ) var occupationBoy : String? = null,
@SerializedName("maritial_status_boy" ) var maritialStatusBoy : String? = null,
@SerializedName("topic_consultation_boy" ) var topicConsultationBoy : String? = null,
@SerializedName("girl_name" ) var girlName : String? = null,
@SerializedName("dob_girl" ) var dobGirl : String? = null,
@SerializedName("birth_time_girl" ) var birthTimeGirl : String? = null,
@SerializedName("place_birth_girl" ) var placeBirthGirl : String? = null,
@SerializedName("occupation_girl" ) var occupationGirl : String? = null,
@SerializedName("maritial_status_girl" ) var maritialStatusGirl : String? = null,
@SerializedName("topic_consultation_girl" ) var topicConsultationGirl : String? = null,
@SerializedName("state" ) var state : String? = null,
@SerializedName("city" ) var city : String? = null,
@SerializedName("fixed_session" ) var fixedSession : String? = null,
@SerializedName("fixed_session_type" ) var fixedSessionType : String? = null,
@SerializedName("calendar_schedules_id" ) var calendarSchedulesId : String? = null
)
data class ChatRequestDetailData (
@SerializedName("profile_detail" ) var profileDetail : ChatRequestDetailProfileDetail? = ChatRequestDetailProfileDetail(),
@SerializedName("reports" ) var reports : ChatRequestDetailReports? = ChatRequestDetailReports()
)
| callastro/app/src/main/java/com/callastro/model/ChatRequestDetailResponse.kt | 2635636050 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class BannerResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<BannerResponseData> = arrayListOf()
)
data class BannerResponseData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("image" ) var image : String? = null,
// @SerializedName("status" ) var status : Int? = null,
// @SerializedName("created_at" ) var createdAt : String? = null,
// @SerializedName("updated_at" ) var updatedAt : String? = null
) | callastro/app/src/main/java/com/callastro/model/BannerResponse.kt | 3189620757 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class SuggestRemedyListResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : SuggestRemedyListData? = SuggestRemedyListData()
)
data class SuggestRemedyListSuggestedMsgt (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("suggest" ) var suggest : String? = null
)
data class SuggestRemedyListProducts (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("main_image" ) var mainImage : String? = null,
@SerializedName("name" ) var name : String? = null
)
data class SuggestRemedyListData (
@SerializedName("suggested_msgt" ) var suggestedMsgt : ArrayList<SuggestRemedyListSuggestedMsgt> = arrayListOf(),
@SerializedName("products" ) var products : ArrayList<SuggestRemedyListProducts> = arrayListOf()
)
| callastro/app/src/main/java/com/callastro/model/SuggestRemedyListResponse.kt | 515419246 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ExperienceListResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<ExperienceListData> = arrayListOf()
)
data class ExperienceListData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("experience" ) var experience : String? = null
) | callastro/app/src/main/java/com/callastro/model/ExperienceListResponse.kt | 1461494489 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ManageCalendarScheduleResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : String? = null
) | callastro/app/src/main/java/com/callastro/model/ManageCalendarScheduleResponse.kt | 4171933896 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class DeleteLanguageItemResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : String? = null
) | callastro/app/src/main/java/com/callastro/model/DeleteLanguageItemResponse.kt | 3982620461 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class Chat_Call_Response(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<Chat_Call_ResponseData> = arrayListOf()
)
data class Chat_Call_ResponseData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("type" ) var type : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("astro_id" ) var astroId : Int? = null,
@SerializedName("request_status" ) var requestStatus : Int? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null,
@SerializedName("user_name" ) var userName : String? = null,
@SerializedName("unique_id" ) var unique_id : String? = null,
@SerializedName("language" ) var language : String? = null,
@SerializedName("profile" ) var profile : String? = null,
@SerializedName("mobile" ) var mobile : String? = null
) | callastro/app/src/main/java/com/callastro/model/Chat_Call_Response.kt | 449829967 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class CancellationByUserResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<CancellationByUserData> = arrayListOf()
)
data class CancellationByUserData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("user_detail_id" ) var userDetailId : String? = null,
@SerializedName("type" ) var type : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("astro_id" ) var astroId : Int? = null,
@SerializedName("language_id" ) var languageId : Int? = null,
@SerializedName("request_status" ) var requestStatus : Int? = null,
@SerializedName("reason" ) var reason : Int? = null,
@SerializedName("comment" ) var comment : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null,
@SerializedName("user_name" ) var userName : String? = null,
@SerializedName("language" ) var language : String? = null,
@SerializedName("profile" ) var profile : String? = null
) | callastro/app/src/main/java/com/callastro/model/CancellationByUserResponse.kt | 3429010720 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class NotificationListResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<NotificationListData> = arrayListOf()
)
data class NotificationListData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("is_read" ) var isRead : Int? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("time" ) var time : String? = null,
@SerializedName("title" ) var title : String? = null,
) | callastro/app/src/main/java/com/callastro/model/NotificationListResponse.kt | 1884759158 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class AddAstroDetailResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : AddAstroDetailData? = AddAstroDetailData()
)
data class AddAstroDetailData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("name" ) var name : String? = null,
@SerializedName("email" ) var email : String? = null,
@SerializedName("profile" ) var profile : String? = null,
@SerializedName("is_new" ) var isNew : Int? = null
) | callastro/app/src/main/java/com/callastro/model/AddAstroDetailResponse.kt | 1313656799 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class AddLanguageItemResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<AddLanguageItemData> = arrayListOf()
)
data class AddLanguageItemData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("language_name" ) var languageName : String? = null
) | callastro/app/src/main/java/com/callastro/model/AddLanguageItemResponse.kt | 1040290567 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ChatAgoraResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ChatAgoraData? = ChatAgoraData()
)
/*data class ChatAgoraSubData (
@SerializedName("22" ) var 22 : String? = null
)*/
// // @SerializedName("data" ) var data : ChatAgoraSubData? = ChatAgoraSubData(),
data class ChatAgoraData (
@SerializedName("path" ) var path : String? = null,
@SerializedName("uri" ) var uri : String? = null,
@SerializedName("timestamp" ) var timestamp : Long? = null,
@SerializedName("organization" ) var organization : String? = null,
@SerializedName("application" ) var application : String? = null,
@SerializedName("caller_id" ) var caller_id : String? = null,
@SerializedName("action" ) var action : String? = null,
@SerializedName("duration" ) var duration : Int? = null,
@SerializedName("applicationName" ) var applicationName : String? = null
) | callastro/app/src/main/java/com/callastro/model/ChatAgoraResponse.kt | 2720289751 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class CallRequestDetailResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : CallRequestDetailData? = CallRequestDetailData()
)
data class CallRequestDetailProfileDetail (
@SerializedName("username" ) var username : String? = null,
@SerializedName("language" ) var language : String? = null,
@SerializedName("type" ) var type : Int? = null,
@SerializedName("mobile" ) var mobile : String? = null,
@SerializedName("profile_image" ) var profileImage : String? = null
)
data class CallRequestDetailReports (
// @SerializedName("name" ) var name : String? = null,
// @SerializedName("dob" ) var dob : String? = null,
// @SerializedName("time_birth" ) var timeBirth : String? = null,
// @SerializedName("place_birth" ) var placeBirth : String? = null,
// @SerializedName("occupation" ) var occupation : String? = null,
// @SerializedName("maritial_status" ) var maritialStatus : String? = null,
// @SerializedName("topic_consultant" ) var topicConsultant : String? = null
@SerializedName("name" ) var name : String? = null,
@SerializedName("dob" ) var dob : String? = null,
@SerializedName("time_birth" ) var timeBirth : String? = null,
@SerializedName("place_birth" ) var placeBirth : String? = null,
@SerializedName("occupation" ) var occupation : String? = null,
@SerializedName("maritial_status" ) var maritialStatus : String? = null,
@SerializedName("topic_consultant" ) var topicConsultant : String? = null,
@SerializedName("boy_name" ) var boyName : String? = null,
@SerializedName("dob_boy" ) var dobBoy : String? = null,
@SerializedName("birth_time_boy" ) var birthTimeBoy : String? = null,
@SerializedName("place_birth_boy" ) var placeBirthBoy : String? = null,
@SerializedName("occupation_boy" ) var occupationBoy : String? = null,
@SerializedName("maritial_status_boy" ) var maritialStatusBoy : String? = null,
@SerializedName("topic_consultation_boy" ) var topicConsultationBoy : String? = null,
@SerializedName("girl_name" ) var girlName : String? = null,
@SerializedName("dob_girl" ) var dobGirl : String? = null,
@SerializedName("birth_time_girl" ) var birthTimeGirl : String? = null,
@SerializedName("place_birth_girl" ) var placeBirthGirl : String? = null,
@SerializedName("occupation_girl" ) var occupationGirl : String? = null,
@SerializedName("maritial_status_girl" ) var maritialStatusGirl : String? = null,
@SerializedName("topic_consultation_girl" ) var topicConsultationGirl : String? = null,
@SerializedName("state" ) var state : String? = null,
@SerializedName("city" ) var city : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null,
@SerializedName("fixed_session" ) var fixedSession : String? = null,
@SerializedName("fixed_session_type" ) var fixedSessionType : String? = null,
@SerializedName("calendar_schedules_id" ) var calendarSchedulesId : String? = null
)
data class CallRequestDetailData (
@SerializedName("profile_detail" ) var profileDetail : CallRequestDetailProfileDetail? = CallRequestDetailProfileDetail(),
@SerializedName("intak" ) var intak : CallRequestDetailReports? = CallRequestDetailReports()
)
| callastro/app/src/main/java/com/callastro/model/CallRequestDetailResponse.kt | 3003936998 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class PincodeListResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<PincodeListData> = arrayListOf()
)
data class PincodeListData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("city_id" ) var cityId : Int? = null,
@SerializedName("pincode" ) var pincode : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null
) | callastro/app/src/main/java/com/callastro/model/PincodeListResponse.kt | 3755686765 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ExpertizeResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<ExpertizeResponseData> = arrayListOf()
)
data class ExpertizeResponseData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("name" ) var name : String? = null
) | callastro/app/src/main/java/com/callastro/model/ExpertizeResponse.kt | 1677530338 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class FixedsessionResponseList(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<FixedsessionResponseListData> = arrayListOf()
)
data class FixedsessionResponseListData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("user_detail_id" ) var userDetailId : Int? = null,
@SerializedName("type" ) var type : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("astro_id" ) var astroId : Int? = null,
@SerializedName("language_id" ) var languageId : Int? = null,
@SerializedName("request_status" ) var requestStatus : Int? = null,
@SerializedName("reason" ) var reason : String? = null,
@SerializedName("comment" ) var comment : String? = null,
@SerializedName("unique_id" ) var uniqueId : String? = null,
@SerializedName("action_by" ) var actionBy : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null,
@SerializedName("user_name" ) var userName : String? = null,
@SerializedName("mobile" ) var mobile : String? = null,
@SerializedName("language" ) var language : String? = null,
@SerializedName("profile" ) var profile : String? = null,
@SerializedName("fix_session" ) var fix_session : String? = null,
@SerializedName("fixed_session_type" ) var fix_session_type : Int? = null,
@SerializedName("session_type" ) var sessionType : Int? = null
)
| callastro/app/src/main/java/com/callastro/model/FixedsessionResponseList.kt | 3385171914 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class EmailUs_Response(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : EmailUs_ResponseData? = EmailUs_ResponseData()
)
data class EmailUs_ResponseData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("email" ) var email : String? = null
)
| callastro/app/src/main/java/com/callastro/model/EmailUs_Response.kt | 1683192118 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class CallHistoryListResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<CallHistoryListData> = arrayListOf()
)
data class CallHistoryListData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("order_id" ) var orderId : Int? = null,
@SerializedName("user_name" ) var userName : String? = null,
@SerializedName("date" ) var date : String? = null,
@SerializedName("userid" ) var userid : String? = null,
@SerializedName("time" ) var time : String? = null,
@SerializedName("duration" ) var duration : String? = null,
@SerializedName("rate" ) var rate : String? = null,
@SerializedName("amount" ) var amount : String? = null,
@SerializedName("feedback" ) var feedback : String? = null,
@SerializedName("refund_money" ) var refund_status : Int? = null,
@SerializedName("rating" ) var rating : Double? = null,
@SerializedName("status" ) var status : String? = null,
@SerializedName("nationality" ) var nationality : String? = null,
@SerializedName("session_type" ) var session_type : String? = null
) | callastro/app/src/main/java/com/callastro/model/CallHistoryListResponse.kt | 150840310 |
package com.callastro.model
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.callastro.R
import com.callastro.databinding.RowExpertiseItemBinding
class GetProfileExpertiseAdapter (val list: List<GetAddedExpertiseData>, private val listener: OnClick
) : RecyclerView.Adapter<GetProfileExpertiseAdapter.ViewHolder>() {
var row_index: Int = -1
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView){
var binding: RowExpertiseItemBinding = DataBindingUtil.bind(itemView)!!
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
val itemView = LayoutInflater.from(parent.context).inflate(R.layout.row_expertise_item, parent, false)
return ViewHolder(itemView) }
@SuppressLint("SetTextI18n")
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val data = list[position]
holder.binding.tvHead.text = data.expertiseName
holder.binding.ivCross.setOnClickListener(View.OnClickListener {
row_index = position
listener.onExpertiseItemDeleteClicked(data)
})
}
override fun getItemCount(): Int {
return list.size
}
interface OnClick{
fun onExpertiseItemDeleteClicked(getAddedExpertiseData: GetAddedExpertiseData)
}
} | callastro/app/src/main/java/com/callastro/model/GetProfileExpertiseAdapter.kt | 3021369361 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ProductListResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<ProductListData> = arrayListOf()
)
data class ProductListData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("name" ) var name : String? = null,
@SerializedName("main_image" ) var mainImage : String? = null
)
| callastro/app/src/main/java/com/callastro/model/ProductListResponse.kt | 2053429162 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class CallRingResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : CallRingResponseData? = CallRingResponseData()
)
data class CallRingResponseData(
@SerializedName("ring_status" ) var ringStatus : Int? = null
) | callastro/app/src/main/java/com/callastro/model/CallRingResponse.kt | 170951658 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class GoLiveResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : GoLiveResponseData? = GoLiveResponseData()
)
data class GoLiveResponseData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("topic" ) var topic : String? = null,
@SerializedName("agora_token" ) var agoraToken : String? = null,
@SerializedName("channel_name" ) var channelName : String? = null,
@SerializedName("appId" ) var appId : String? = null,
@SerializedName("expire_time" ) var expireTime : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null
)
| callastro/app/src/main/java/com/callastro/model/GoLiveResponse.kt | 1092275384 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class NotificationResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<NotificationData> = arrayListOf()
)
data class NotificationData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("is_read" ) var isRead : Int? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("time" ) var time : String? = null,
@SerializedName("title" ) var title : String? = null,
@SerializedName("message" ) var message : String? = null,
) | callastro/app/src/main/java/com/callastro/model/NotificationResponse.kt | 2027780598 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class LanguageResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<LanguageResponseData> = arrayListOf()
)
data class LanguageResponseData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("language" ) var language : String? = null
) | callastro/app/src/main/java/com/callastro/model/LanguageResponse.kt | 1793718642 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class GiveReviewResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : String? = null
)
| callastro/app/src/main/java/com/callastro/model/GiveReviewResponse.kt | 481414024 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class GetAddedExpertiseResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<GetAddedExpertiseData> = arrayListOf()
)
data class GetAddedExpertiseData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("expertise_name" ) var expertiseName : String? = null
) | callastro/app/src/main/java/com/callastro/model/GetAddedExpertiseResponse.kt | 2868350370 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class GetAddedLanguageResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<GetAddedLanguageData> = arrayListOf()
)
data class GetAddedLanguageData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("language_name" ) var languageName : String? = null
) | callastro/app/src/main/java/com/callastro/model/GetAddedLanguageResponse.kt | 4181232954 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class DeleteSkillsItemResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : String? = null
)
| callastro/app/src/main/java/com/callastro/model/DeleteSkillsItemResponse.kt | 2534121557 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class AddExpertiseItemResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<AddExpertiseItemData> = arrayListOf()
)
data class AddExpertiseItemData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("expertise_name" ) var expertiseName : String? = null
) | callastro/app/src/main/java/com/callastro/model/AddExpertiseItemResponse.kt | 3826615967 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class AstroEarningResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : AstroEarningData? = AstroEarningData()
)
data class AstroEarningTransactionHistory (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("transaction" ) var transaction : String? = null,
@SerializedName("user_name" ) var userName : String? = null,
@SerializedName("amount" ) var amount : String? = null,
@SerializedName("pay_date" ) var payDate : String? = null
)
data class AstroEarningData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("wallet" ) var wallet : String? = null,
@SerializedName("remainig" ) var remainig : String? = null,
@SerializedName("withdrawal" ) var withdrawal : String? = null,
@SerializedName("transaction_history" ) var transactionHistory : ArrayList<AstroEarningTransactionHistory> = arrayListOf()
) | callastro/app/src/main/java/com/callastro/model/AstroEarningResponse.kt | 3194114076 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ConfirmationReportHistoryResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ConfirmationReportHistoryResponseData? = ConfirmationReportHistoryResponseData()
)
data class ConfirmationReportHistoryResponseData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("astro_id" ) var astroId : Int? = null,
@SerializedName("language_id" ) var languageId : String? = null,
@SerializedName("report_id" ) var reportId : Int? = null,
@SerializedName("full_name" ) var fullName : String? = null,
@SerializedName("gender" ) var gender : String? = null,
@SerializedName("dob" ) var dob : String? = null,
@SerializedName("birth_time" ) var birthTime : String? = null,
@SerializedName("place_birth" ) var placeBirth : String? = null,
@SerializedName("occupation" ) var occupation : String? = null,
@SerializedName("maritial_status" ) var maritialStatus : String? = null,
@SerializedName("topic_consultation" ) var topicConsultation : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null
) | callastro/app/src/main/java/com/callastro/model/ConfirmationReportHistoryResponse.kt | 3964921961 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class GetAstroRatingReviewPinResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<GetAstroRatingReviewPinData> = arrayListOf()
)
data class GetAstroRatingReviewPinData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("rating" ) var rating : String? = null,
@SerializedName("reveiw" ) var reveiw : String? = null,
@SerializedName("user_name" ) var userName : String? = null,
@SerializedName("profile" ) var profile : String? = null,
@SerializedName("pin" ) var pin : Int? = null
) | callastro/app/src/main/java/com/callastro/model/GetAstroRatingReviewPinResponse.kt | 1313119953 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class SkillsListResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<SkillsListData> = arrayListOf()
)
data class SkillsListData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("skill_name" ) var skillName : String? = null
) | callastro/app/src/main/java/com/callastro/model/SkillsListResponse.kt | 574058212 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ConfirmationBookingResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<ConfirmationBookingData> = arrayListOf()
)
data class ConfirmationBookingData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("user_detail_id" ) var userDetailId : Int? = null,
@SerializedName("type" ) var type : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("astro_id" ) var astroId : Int? = null,
@SerializedName("language_id" ) var languageId : Int? = null,
@SerializedName("request_status" ) var requestStatus : Int? = null,
@SerializedName("reason" ) var reason : String? = null,
@SerializedName("comment" ) var comment : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null,
@SerializedName("user_name" ) var userName : String? = null,
@SerializedName("mobile_no" ) var mobileNo : String? = null,
@SerializedName("language" ) var language : String? = null,
@SerializedName("profile" ) var profile : String? = null,
@SerializedName("unique_id" ) var uniqueId : String? = null,
@SerializedName("active_status" ) var active_status : Int? = null,
@SerializedName("fix_session" ) var fix_session : String? = null
) | callastro/app/src/main/java/com/callastro/model/ConfirmationBookingResponse.kt | 2712880077 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ViewProfileResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ViewProfileResponseData? = ViewProfileResponseData()
)
data class ViewProfileResponseData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("type" ) var type : Int? = null,
@SerializedName("name" ) var name : String? = null,
@SerializedName("email" ) var email : String? = null,
@SerializedName("mobile_no" ) var mobileNo : String? = null,
@SerializedName("company_name" ) var companyName : String? = null,
@SerializedName("calling_charg" ) var calling_charg : String? = null,
@SerializedName("profile" ) var profile : String? = null,
@SerializedName("wallet" ) var wallet : String? = null,
@SerializedName("gender" ) var gender : Int? = null,
@SerializedName("dob" ) var dob : String? = null,
@SerializedName("address" ) var address : String? = null,
@SerializedName("state" ) var state : Int? = null,
@SerializedName("city" ) var city : Int? = null,
@SerializedName("pincode" ) var pincode : String? = null,
@SerializedName("document1" ) var document1 : String? = null,
@SerializedName("document2" ) var document2 : String? = null,
@SerializedName("otp" ) var otp : String? = null,
@SerializedName("about_us" ) var aboutUs : String? = null,
@SerializedName("experence_id" ) var experenceId : Int? = null,
@SerializedName("birth_time" ) var birthTime : String? = null,
@SerializedName("birth_place" ) var birthPlace : String? = null,
@SerializedName("is_chat" ) var isChat : Int? = null,
@SerializedName("is_audio_call" ) var isAudioCall : Int? = null,
@SerializedName("is_video_call" ) var isVideoCall : Int? = null,
@SerializedName("is_live" ) var isLive : Int? = null,
@SerializedName("status" ) var status : Int? = null,
@SerializedName("login_status" ) var loginStatus : Int? = null,
@SerializedName("is_deleted" ) var isDeleted : Int? = null,
@SerializedName("email_verified_at" ) var emailVerifiedAt : String? = null,
@SerializedName("password" ) var password : String? = null,
@SerializedName("api_token" ) var apiToken : String? = null,
@SerializedName("remember_token" ) var rememberToken : String? = null,
@SerializedName("latitude" ) var latitude : String? = null,
@SerializedName("longtitude" ) var longtitude : String? = null,
@SerializedName("fixed_session_30min_charge" ) var fixed_session_30min_charge : String? = null,
@SerializedName("fixed_session_60min_charge" ) var fixed_session_60min_charge : String? = null,
// @SerializedName("longtitude" ) var longtitude : String? = null,
@SerializedName("device_id" ) var deviceId : String? = null,
@SerializedName("device_type" ) var deviceType : String? = null,
@SerializedName("device_name" ) var deviceName : String? = null,
@SerializedName("device_token" ) var deviceToken : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null
) | callastro/app/src/main/java/com/callastro/model/ViewProfileResponse.kt | 1352114967 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class CallUserListResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<CallUserListData> = arrayListOf()
)
data class CallUserListData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("name" ) var name : String? = null,
@SerializedName("profile" ) var profile : String? = null,
@SerializedName("is_live" ) var isLive : Int? = null,
@SerializedName("last_online_time" ) var lastOnlineTime : String? = null
) | callastro/app/src/main/java/com/callastro/model/CallUserListResponse.kt | 3826709856 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class GetAddedSkillsResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<GetAddedSkillsData> = arrayListOf()
)
data class GetAddedSkillsData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("skill_name" ) var skillName : String? = null
) | callastro/app/src/main/java/com/callastro/model/GetAddedSkillsResponse.kt | 2619343580 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class AddSuggestRemedyResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : String? = null
) | callastro/app/src/main/java/com/callastro/model/AddSuggestRemedyResponse.kt | 1654161031 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ScheduleCalendarDeleteResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("date" ) var date : String? = null
) | callastro/app/src/main/java/com/callastro/model/ScheduleCalendarDeleteResponse.kt | 1318177947 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class DeleteExpertiseItemResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : String? = null
) | callastro/app/src/main/java/com/callastro/model/DeleteExpertiseItemResponse.kt | 2418639154 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class CommonResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : String? = null
)
| callastro/app/src/main/java/com/callastro/model/CommonResponse.kt | 3301707673 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class LiveCommentsModelClass(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<LiveCommentsModelClassData> = arrayListOf()
)
data class LiveCommentsModelClassData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("astro_id" ) var astroId : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("channel_name" ) var channelName : String? = null,
@SerializedName("type" ) var type : Int? = null,
@SerializedName("status" ) var status : Int? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null,
@SerializedName("gift_id" ) var giftId : String? = null,
@SerializedName("name" ) var name : String? = null,
@SerializedName("profile" ) var profile : String? = null,
@SerializedName("image" ) var image : String? = null
) | callastro/app/src/main/java/com/callastro/model/LiveCommentsModelClass.kt | 3602407645 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class AboutUsResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : AboutUsResponseData? = AboutUsResponseData()
)
data class AboutUsResponseData(
@SerializedName("details" ) var details : String? = null
) | callastro/app/src/main/java/com/callastro/model/AboutUsResponse.kt | 4254423060 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class PostProfileDetailResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : PostProfileDetaiData? = PostProfileDetaiData()
)
data class Language (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("language" ) var language : String? = null
)
data class Skills (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("skill_name" ) var skillName : String? = null
)
data class Expertises (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("name" ) var name : String? = null
)
data class RatingRaview (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("rating" ) var rating : String? = null,
@SerializedName("reveiw" ) var reveiw : String? = null,
@SerializedName("name" ) var name : String? = null,
@SerializedName("profile" ) var profile : String? = null
)
data class PostProfileDetaiData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("name" ) var name : String? = null,
@SerializedName("gender" ) var gender : Int? = null,
@SerializedName("experence_id" ) var experenceId : Int? = null,
@SerializedName("language" ) var language : ArrayList<Language> = arrayListOf(),
@SerializedName("skills" ) var skills : ArrayList<Skills> = arrayListOf(),
@SerializedName("expertises" ) var expertises : ArrayList<Expertises> = arrayListOf(),
@SerializedName("experence" ) var experence : String? = null,
@SerializedName("rating_raview" ) var ratingRaview : ArrayList<RatingRaview> = arrayListOf()
)
| callastro/app/src/main/java/com/callastro/model/PostProfileDetailResponse.kt | 654646957 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class LoginResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("approval" ) var approval : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : LoginData? = LoginData()
)
data class LoginData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("mobile_no" ) var mobileNo : String? = null,
@SerializedName("otp" ) var otp : String? = null,
@SerializedName("is_new" ) var is_new : String? = null
) | callastro/app/src/main/java/com/callastro/model/LoginResponse.kt | 751851561 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class FixSessionDetail(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : FixSessionDetailData = FixSessionDetailData()
)
data class FixSessionDetailData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("type" ) var type : Int? = null,
@SerializedName("name" ) var name : String? = null,
@SerializedName("gender" ) var gender : Int? = null,
@SerializedName("dob" ) var dob : String? = null,
@SerializedName("birth_time" ) var birthTime : String? = null,
@SerializedName("place_birth" ) var placeBirth : String? = null,
@SerializedName("occupation" ) var occupation : String? = null,
@SerializedName("maritial_status" ) var maritialStatus : String? = null,
@SerializedName("topic_consultation" ) var topicConsultation : String? = null,
@SerializedName("boy_name" ) var boyName : String? = null,
@SerializedName("dob_boy" ) var dobBoy : String? = null,
@SerializedName("birth_time_boy" ) var birthTimeBoy : String? = null,
@SerializedName("place_birth_boy" ) var placeBirthBoy : String? = null,
@SerializedName("occupation_boy" ) var occupationBoy : String? = null,
@SerializedName("maritial_status_boy" ) var maritialStatusBoy : String? = null,
@SerializedName("topic_consultation_boy" ) var topicConsultationBoy : String? = null,
@SerializedName("girl_name" ) var girlName : String? = null,
@SerializedName("dob_girl" ) var dobGirl : String? = null,
@SerializedName("birth_time_girl" ) var birthTimeGirl : String? = null,
@SerializedName("place_birth_girl" ) var placeBirthGirl : String? = null,
@SerializedName("occupation_girl" ) var occupationGirl : String? = null,
@SerializedName("maritial_status_girl" ) var maritialStatusGirl : String? = null,
@SerializedName("topic_consultation_girl" ) var topicConsultationGirl : String? = null,
@SerializedName("state" ) var state : String? = null,
@SerializedName("city" ) var city : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null,
@SerializedName("language" ) var language : String? = null,
@SerializedName("mobile_no" ) var mobile_no : String? = null,
@SerializedName("fixed_session" ) var fixedSession : String? = null,
@SerializedName("fixed_session_type" ) var fixedSessionType : Int? = null,
@SerializedName("calendar_schedules_id" ) var calendarSchedulesId : String? = null
) | callastro/app/src/main/java/com/callastro/model/FixSessionDetail.kt | 3463189775 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class MyBookingsUpcomingCompletedResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<MyBookingsUpcomingCompletedData> = arrayListOf()
)
data class MyBookingsUpcomingCompletedData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("user_detail_id" ) var userDetailId : Int? = null,
@SerializedName("type" ) var type : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("astro_id" ) var astroId : Int? = null,
@SerializedName("language_id" ) var languageId : Int? = null,
@SerializedName("request_status" ) var requestStatus : Int? = null,
@SerializedName("reason" ) var reason : String? = null,
@SerializedName("comment" ) var comment : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null,
@SerializedName("user_name" ) var userName : String? = null,
@SerializedName("mobile" ) var mobile : String? = null,
@SerializedName("language" ) var language : String? = null,
@SerializedName("profile" ) var profile : String? = null
) | callastro/app/src/main/java/com/callastro/model/MyBookingsUpcomingCompletedResponse.kt | 2957956634 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class FAQResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<FAQResponseData> = arrayListOf()
)
data class FAQResponseData(
@SerializedName("type" ) var type : Int? = null,
@SerializedName("questions" ) var questions : String? = null,
@SerializedName("answers" ) var answers : String? = null
) | callastro/app/src/main/java/com/callastro/model/FAQResponse.kt | 246781996 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class SettingDetailsGetResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : SettingDetailsGetData? = SettingDetailsGetData()
)
data class SettingDetailsGetData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("is_chat" ) var isChat : Int? = null,
@SerializedName("is_audio_call" ) var isAudioCall : Int? = null,
@SerializedName("is_video_call" ) var isVideoCall : Int? = null
) | callastro/app/src/main/java/com/callastro/model/SettingDetailsGetResponse.kt | 1487473480 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ChatCallCancelReasonResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<ChatCallCancelReasonData> = arrayListOf()
)
data class ChatCallCancelReasonData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("reason" ) var reason : String? = null
) | callastro/app/src/main/java/com/callastro/model/ChatCallCancelReasonResponse.kt | 1928079328 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class ChatUserListResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<ChatUserListData> = arrayListOf()
)
data class ChatUserListData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("user_id" ) var userId : Int? = null,
@SerializedName("name" ) var name : String? = null,
@SerializedName("profile" ) var profile : String? = null,
@SerializedName("is_live" ) var isLive : Int? = null,
@SerializedName("unique_id" ) var unique_id : Int? = null,
@SerializedName("last_online_time" ) var lastOnlineTime : String? = null
) | callastro/app/src/main/java/com/callastro/model/ChatUserListResponse.kt | 2266513458 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class LoginverificationResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var otpdata : LoginverificationResponseData? = LoginverificationResponseData()
)
data class LoginverificationResponseData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("type" ) var type : Int? = null,
@SerializedName("name" ) var name : String? = null,
@SerializedName("email" ) var email : String? = null,
@SerializedName("mobile_no" ) var mobileNo : String? = null,
@SerializedName("company_name" ) var companyName : String? = null,
@SerializedName("profile" ) var profile : String? = null,
@SerializedName("wallet" ) var wallet : String? = null,
@SerializedName("gender" ) var gender : Int? = null,
@SerializedName("dob" ) var dob : String? = null,
@SerializedName("address" ) var address : String? = null,
@SerializedName("state" ) var state : String? = null,
@SerializedName("city" ) var city : String? = null,
@SerializedName("pincode" ) var pincode : String? = null,
@SerializedName("document1" ) var document1 : String? = null,
@SerializedName("document2" ) var document2 : String? = null,
@SerializedName("otp" ) var otp : String? = null,
@SerializedName("about_us" ) var aboutUs : String? = null,
@SerializedName("experence_id" ) var experenceId : String? = null,
@SerializedName("birth_time" ) var birthTime : String? = null,
@SerializedName("birth_place" ) var birthPlace : String? = null,
@SerializedName("is_live" ) var isLive : Int? = null,
@SerializedName("status" ) var status : Int? = null,
@SerializedName("login_status" ) var loginStatus : Int? = null,
@SerializedName("is_deleted" ) var isDeleted : Int? = null,
@SerializedName("email_verified_at" ) var emailVerifiedAt : String? = null,
@SerializedName("api_token" ) var apiToken : String? = null,
@SerializedName("latitude" ) var latitude : String? = null,
@SerializedName("longtitude" ) var longtitude : String? = null,
@SerializedName("device_id" ) var deviceId : String? = null,
@SerializedName("device_type" ) var deviceType : String? = null,
@SerializedName("device_name" ) var deviceName : String? = null,
@SerializedName("device_token" ) var deviceToken : String? = null,
@SerializedName("created_at" ) var createdAt : String? = null,
@SerializedName("updated_at" ) var updatedAt : String? = null
) | callastro/app/src/main/java/com/callastro/model/LoginverificationResponse.kt | 4211798801 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class CalenderList(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("date" ) var date : String? = null,
@SerializedName("data" ) var data : ArrayList<CalenderListData> = arrayListOf()
)
data class CalenderListData(
@SerializedName("id" ) var id : Int? = null,
@SerializedName("date" ) var date : String? = null,
@SerializedName("from_time" ) var fromTime : String? = null,
@SerializedName("to_time" ) var toTime : String? = null
) | callastro/app/src/main/java/com/callastro/model/CalenderList.kt | 2336055585 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class CheckChatEndResponse(
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : CheckChatEndResponseData = CheckChatEndResponseData()
)
data class CheckChatEndResponseData(
@SerializedName("is_chat_end" ) var is_chat_end : Int? = null,
@SerializedName("user_type" ) var user_type : Int? = null,
)
| callastro/app/src/main/java/com/callastro/model/CheckChatEndResponse.kt | 3750409655 |
package com.callastro.model
import com.google.gson.annotations.SerializedName
data class CityListResponse (
@SerializedName("status" ) var status : Int? = null,
@SerializedName("message" ) var message : String? = null,
@SerializedName("data" ) var data : ArrayList<CityListData> = arrayListOf()
)
data class CityListData (
@SerializedName("id" ) var id : Int? = null,
@SerializedName("state_id" ) var stateId : Int? = null,
@SerializedName("city_name" ) var cityName : String? = null
) | callastro/app/src/main/java/com/callastro/model/CityListResponse.kt | 744971402 |
package com.callastro
import android.app.Application
import android.util.Log
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class AndroidApp : Application(),LifecycleObserver {
override fun onCreate() {
super.onCreate()
onAppForegrounded()
onAppBackgrounded()
// ProcessLifecycleOwner.get().lifecycle.addObserver(this);
// ProcessLifecycleOwner.get().lifecycle.addObserver(this);
}
// override fun onTerminate() {
// super.onTerminate()
//
// onAppForegrounded()
// onAppBackgrounded()
//
// }
@OnLifecycleEvent(Lifecycle.Event.ON_STOP)
fun onAppBackgrounded() {
// toast("False")
// toast("True")
Log.d("AppLog", "App in background")
}
@OnLifecycleEvent(Lifecycle.Event.ON_START)
fun onAppForegrounded() {
// toast("False")
// toast("True")
Log.d("AppLog", "App in foreground")
}
} | callastro/app/src/main/java/com/callastro/AndroidApp.kt | 1774694123 |
package com.callastro.fcm
import android.annotation.SuppressLint
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.media.MediaPlayer
import android.media.RingtoneManager
import android.os.Build
import android.os.Vibrator
import android.util.Log
import androidx.core.app.NotificationCompat
import com.callastro.R
import com.callastro.broadcastReceiver.NotificationBroadcastReceiver
import com.callastro.ui.activities.CallRequest
import com.callastro.ui.activities.ChatwithUsActivity
import com.callastro.util.SoundUtil
import com.google.firebase.messaging.FirebaseMessagingService
import com.google.firebase.messaging.RemoteMessage
import com.maxtra.u.Constant
@SuppressLint("MissingFirebaseInstanceTokenRefresh")
class MyFirebaseMessagingService : FirebaseMessagingService() {
private var count = 0
var notificationCount = 0
var mNotificationId = 1
private var vib: Vibrator? = null
var mMediaPlayer: MediaPlayer? = null
override fun onMessageReceived(remote: RemoteMessage) {
super.onMessageReceived(remote)
Log.d("TAG", "onMessageReceived: " + remote.data)
val data = remote.data
val title = remote.notification?.title ?: "title"
val body = remote.notification?.body ?: "body"
createNotification(body, remote.data, title)
Log.d("title1", "title1: " + title)
Log.d("body1", "body1: " + body)
val broadcastReceiver: BroadcastReceiver = object : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {
// internet lost alert dialog method call from here...
// broadCastingReceiver.ma!!.chatList()
}
}
}
@SuppressLint("LaunchActivityFromNotification")
private fun createNotification(
body1: String,
data: MutableMap<String, String>, title1: String
) {
try {
val notificationType: String = data["call_type"].toString()
val type: String = data["type"].toString()
val user_id: String = data["astro_id"].toString()
val user_name: String = data["astro_name"].toString()
val agora_token: String = data["agora_token"].toString()
val channel_name: String = data["channel_name"].toString()
val appId: String = data["app_id"].toString()
val title = data["body"].toString()
val name: String = data["title"].toString()
val other_user: String = data["other_user"].toString()
SoundUtil.playSound(this)
val notificationManager =
getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
val notificationBuilder =
NotificationCompat.Builder(
this,
getString(R.string.app_name)
)
.setSmallIcon(getNotificationIcon())
/* .setSound(defaultSoundUri)*/
.setContentTitle(title1)
.setContentText(body1)
.setPriority(NotificationCompat.PRIORITY_HIGH)
.setChannelId(getString(R.string.app_name))
val notificationBuilder1 =
NotificationCompat.Builder(
this,
getString(R.string.app_name)
)
.setSmallIcon(getNotificationIcon())
/*.setSound(defaultSoundUri)*/
.setContentTitle(title1)
.setContentText(body1)
.setPriority(NotificationCompat.PRIORITY_HIGH)
.setChannelId(getString(R.string.app_name))
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
notificationBuilder.setChannelId(getString(R.string.app_name))
val notificationChannel = NotificationChannel(
getString(R.string.app_name),
getString(R.string.app_name),
NotificationManager.IMPORTANCE_HIGH
)
notificationChannel.lockscreenVisibility = Notification.VISIBILITY_PRIVATE
notificationManager.createNotificationChannel(notificationChannel)
val contentIntent = PendingIntent.getBroadcast(
this,
0,
// Intent(this, ChatwithUsActivity::class.java)
Intent(this, NotificationBroadcastReceiver::class.java)
.putExtra("other_user", other_user)
.putExtra("title", name)
.putExtra("call_type", notificationType)
.putExtra("list_id", user_id)
.putExtra("list_userName", user_name)
.putExtra("app_id", appId)
.putExtra("channel_name", channel_name)
.putExtra(Constant.NOTIFICATION_ID, 321)
.putExtra("agora_token", agora_token)
.putExtra("type", type),
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
)
// notificationBuilder.clearActions()
notificationBuilder.setContentIntent(contentIntent)
if (notificationType == "3") {
SoundUtil.playSound(this)
try {
val contentIntent = PendingIntent.getActivity(
this,
1,
// Intent(this, ChatwithUsActivity::class.java)
Intent(this, ChatwithUsActivity::class.java)
.putExtra("other_user", other_user)
.putExtra("title", name)
.putExtra("call_type", notificationType)
.putExtra("list_id", user_id)
.putExtra("list_userName", user_name)
.putExtra("app_id", appId)
.putExtra("channel_name", channel_name)
.putExtra("agora_token", agora_token),
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
)
// notificationBuilder.clearActions()
notificationBuilder.setContentIntent(contentIntent)
} catch (e: Exception) {
e.printStackTrace()
}
} else if (notificationType == "2") {
SoundUtil.playSound(this)
try {
val contentIntent = PendingIntent.getActivity(
this,
2,
// Intent(this, IncomingCallActivity::class.java).putExtra(
Intent(this, CallRequest::class.java).putExtra(
"other_user",
other_user
)
.putExtra("title", name)
.putExtra("app_id", appId)
.putExtra("channel_name", channel_name)
.putExtra("call_type", "2") //Video Call Request
.putExtra("list_id", user_id)
.putExtra("astro_name", user_name)
.putExtra("agora_token", agora_token),
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
)
notificationBuilder.setContentIntent(contentIntent)
} catch (e: Exception) {
e.printStackTrace()
}
} else if (notificationType == "1") {
SoundUtil.playSound(this)
try {
val contentIntent = PendingIntent.getActivity(
this,
3,
// Intent(this, DashboardAudioCallActivity::class.java).putExtra(
Intent(this, CallRequest::class.java).putExtra(
"other_user",
other_user
)
.putExtra("title", name)
.putExtra("app_id", appId)
.putExtra("channel_name", channel_name)
.putExtra("call_type", "1") //Audio Call Request
.putExtra("list_id", user_id)
.putExtra("astro_name", user_name)
.putExtra("notification","1")
.putExtra("agora_token", agora_token),
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
)
notificationBuilder.setContentIntent(contentIntent)
} catch (e: Exception) {
e.printStackTrace()
}
} else {
}
}
// Gets an instance of the NotificationManager service
// Gets an instance of the NotificationManager service
val mNotificationManager =
this.getSystemService(NOTIFICATION_SERVICE) as NotificationManager
// Builds the notification and issues it.
// Builds the notification and issues it.
mNotificationManager.notify(mNotificationId, notificationBuilder.build())
} catch (e: Exception) {
e.printStackTrace()
}
}
/* fun playSound() {
// if (mMediaPlayer == null) {
mMediaPlayer = MediaPlayer.create(this, R.raw.rington)
vib = this.getSystemService(Context.VIBRATOR_SERVICE) as Vibrator
vib!!.vibrate(1000)
mMediaPlayer!!.isLooping = false
mMediaPlayer!!.start()
// } else mMediaPlayer!!.start()
}*/
private fun getNotificationIcon(): Int {
val useWhiteIcon = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
return if (useWhiteIcon) R.drawable.logo else R.drawable.logo
}
} | callastro/app/src/main/java/com/callastro/fcm/MyFirebaseMessagingService.kt | 2781794376 |
package com.callastro.data
import com.callastro.model.*
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.Response
import retrofit2.http.Field
import retrofit2.http.GET
import retrofit2.http.Header
interface MainRepository {
suspend fun login(country_code: String,mobile:String,device_id: String,device_type: String,device_name: String,device_token: String):
Response<LoginResponse>
suspend fun loginverification(id: String, otp: String):
Response<LoginverificationResponse>
suspend fun Expertize(token:String):
Response<ExpertizeResponse>
suspend fun Language(token:String):
Response<LanguageResponse>
suspend fun post_profile_detailApi(token:String):
Response<PostProfileDetailResponse>
suspend fun stateListApi(token:String):
Response<StateListResponse>
suspend fun cityListApi(token:String, state_id:String):
Response<CityListResponse>
suspend fun pinCodeListApi(token:String, city_id:String):
Response<PincodeListResponse>
suspend fun skills_listApi(token:String):
Response<SkillsListResponse>
suspend fun agora_generate_tokenApi(token:String, astro_id: String, call_type: String):
Response<AgoraGenerateTokenResponse>
suspend fun add_comment(
user_id: String,
astro_id: String,
message: String,
type: String,
): Response<CommonResponse>
suspend fun call_end_by_status(token:String,caller_id: String):
Response<CallendbyuserResponse>
suspend fun live_agora_generate_token(token:String,topic: String):
Response<GoLiveResponse>
suspend fun delete_live_astro(token:String):
Response<CommonResponse>
suspend fun checkOnlineStatusRepo(token:String):
Response<CommonResponse>
suspend fun live_agora_topic(token:String, topic:String):
Response<GoLiveResponse>
suspend fun astro_home(token:String):
Response<CallChatStatusResponse>
suspend fun chat_user_listApi(token:String):
Response<ChatUserListResponse>
suspend fun click_user_chat(token:String,user_id: String):
Response<CommonResponse>
suspend fun astro_give_review(token: String,astro_id: String,rating: String,review: String,):
Response<GiveReviewResponse>
suspend fun recent_otp(mobile_no: String,type: String,):
Response<LoginResponse>
suspend fun call_user_listApi(token:String):
Response<CallUserListResponse>
suspend fun banner(token:String):
Response<BannerResponse>
suspend fun AddAstroDetailsApi(token:String,
full_name: RequestBody,
company_name: RequestBody,
email: RequestBody,
gender: RequestBody,
address: RequestBody,
state_id: RequestBody,
city_id: RequestBody,
pincode_id: RequestBody,
expertise: RequestBody,
language: RequestBody,
skills: RequestBody,
bank_name: RequestBody,
account_no: RequestBody,
acc_holder_name: RequestBody,
ifsc_code: RequestBody,
branch: RequestBody,
document1: MultipartBody.Part,
document2: MultipartBody.Part,
profile_image: MultipartBody.Part,
calling_charge:RequestBody,
about_us: RequestBody,
fixed_session_30min_charge :RequestBody,
fixed_session_60min_charge :RequestBody,
experience :RequestBody
):
Response<AddAstroDetailResponse>
@GET("get_added_expertise")
suspend fun get_added_expertiseApi(
@Header("Authorization") authorization: String,
): Response<GetAddedExpertiseResponse>
suspend fun add_expertiseApi(token:String, expertise_id:String):
Response<AddExpertiseItemResponse>
suspend fun delete_expertiseApi(token:String, id:String):
Response<DeleteExpertiseItemResponse>
suspend fun get_added_skillsApi(token:String):
Response<GetAddedSkillsResponse>
suspend fun add_skillsApi(token:String, skill_id:String):
Response<AddSkillsItemResponse>
suspend fun delete_skillsApi(token:String, id:String):
Response<DeleteSkillsItemResponse>
suspend fun get_added_languageApi(token:String):
Response<GetAddedLanguageResponse>
suspend fun add_languageApi(token:String, language_id:String):
Response<AddLanguageItemResponse>
suspend fun delete_languageApi(token:String, id:String):
Response<DeleteLanguageItemResponse>
suspend fun post_profile_updateApi(token:String, full_name:String, gender:String, experience:String):
Response<PostProfileUpdateResponse>
suspend fun experience_listApi(token:String):
Response<ExperienceListResponse>
suspend fun callHistoryListApi(token:String, /*dummy:String*/):
Response<CallHistoryListResponse>
suspend fun chatHistoryListApi(token:String,/* dummy:String*/):
Response<ChatHistoryListResponse>
suspend fun product_listApi(token:String):
Response<ProductListResponse>
suspend fun add_suggest_remedyApi(token:String, product_ids:String, user_id:String):
Response<AddSuggestRemedyResponse>
suspend fun suggest_remedy_listApi(token:String,user_id: String):
Response<SuggestRemedyListResponse>
suspend fun add_suggest_remedy_messageApi(token:String, user_id: String, message: String):
Response<CommonResponse>
suspend fun fix_session_detail(token:String,user_detail_id:String):
Response<FixSessionDetail>
suspend fun EmailUs(token:String):
Response<EmailUs_Response>
suspend fun callback_apply(token:String,mobile:String,discription:String):
Response<CommonResponse>
suspend fun aboutus(token:String):
Response<AboutUsResponse>
suspend fun get_chat_with_us(token:String):
Response<GetCustomerSupportChat>
suspend fun call_ring_status_save(token:String,channel_name: String):
Response<call_ring_status_save_Response>
suspend fun call_ring_end(token:String,channel_name: String):
Response<CommonResponse>
suspend fun send_chat_with_us(token:String,message:String):
Response<CommonResponse>
suspend fun notificationApi(token:String):
Response<NotificationListResponse>
suspend fun faq(token:String):
Response<FAQResponse>
suspend fun chat_list_MessageApi(token:String, to_id: String):
Response<ChatListMessageResponse>
suspend fun call_end(token:String,timer:String,from_user: String,to_user: String,caller_id:String,type: String,fixed_session: String):
Response<CommonResponse>
suspend fun live_end(token:String,timer:String,from_user: String,to_user: String,type: String):
Response<CommonResponse>
suspend fun chat_end(token:String,timer:String,from_user: String,to_user: String,caller_id:String,type: String,fixed_session: String,):
Response<CommonResponse>
suspend fun check_chat_end(token:String,caller_id: String):
Response<CheckChatEndResponse>
suspend fun notification(token: String):
Response<NotificationResponse>
suspend fun chatagoraApi(token:String, to_userId: String, message: String, type: String):
Response<ChatAgoraResponse>
suspend fun setting_detailsApi(token:String):
Response<SettingDetailsGetResponse>
suspend fun setting_updateApi(token:String, is_chat:String, is_audio_call:String, is_video_call:String):
Response<SettingDetailsGetResponse>
suspend fun GetCalender(token:String,date:String):
Response<CalenderList>
suspend fun manage_calendar_scheduleApi(token:String, date: String, from_time: String, to_time: String):
Response<ManageCalendarScheduleResponse>
suspend fun calendar_schedule_deleteApi(token:String, id: String):
Response<ScheduleCalendarDeleteResponse>
suspend fun call_request_detail_api(token:String,id:String):
Response<CallRequestDetailResponse>
suspend fun call_request_accecpt_api(token:String,id:String):
Response<ChatRequestCancelResponse>
suspend fun call_request_cancel_api(token:String,id:String,reason:String,comment:String,action_by: String,):
Response<ChatRequestCancelResponse>
suspend fun upcomingCompletedBookingsApi(token:String, type:String):
Response<MyBookingsUpcomingCompletedResponse>
suspend fun chat_request_detail_api(token:String,id:String):
Response<ChatRequestDetailResponse>
suspend fun ViewProfile(token:String):
Response<ViewProfileResponse>
suspend fun chat_request_accecpt_api(token:String,id:String):
Response<ChatRequestCancelResponse>
suspend fun chatcallReasonCancelListApi(token:String):
Response<ChatCallCancelReasonResponse>
suspend fun cancellationByUserApi(token:String):
Response<CancellationByUserResponse>
suspend fun chat_request_cancel_api(token:String,id:String,reason:String,comment:String):
Response<ChatRequestCancelResponse>
suspend fun Chathome(token:String):
Response<Chat_Call_Response>
suspend fun Callhome(token:String):
Response<Chat_Call_Response>
suspend fun confirmation_booking_listApi(token:String, type:String):
Response<ConfirmationBookingResponse>
suspend fun report_doc_upload(token:String,
user_id: RequestBody,
report_intake_id: RequestBody,
text: RequestBody,
file: MultipartBody.Part,
): Response<CommonResponse>
suspend fun astro_earningApi(token:String, filter:String):
Response<AstroEarningResponse>
suspend fun fixed_session_requests(token:String):
Response<FixedsessionResponseList>
suspend fun request_money(token:String, money:String):
Response<CommonResponse>
suspend fun fixed_session_request_accecpt(token:String,id:String):
Response<ChatRequestCancelResponse>
suspend fun UpdateBank(token:String,bank_name:String,account_no: String,acc_holder_name: String,ifsc_code: String,branch: String):
Response<BankDetailResponse>
suspend fun GetBankDetail(token:String):
Response<GetBankDetail>
suspend fun get_live_comments(
token: String,
channel_name: String,
): Response<LiveCommentsModelClass>
// suspend fun Expertize(token:String):
// Response<ExpertizeResponse>
//
// suspend fun Liveastrologersviewall(token:String):
// Response<LiveastrologerviewallResponse>
//
// suspend fun RemedySuggested(token:String):
// Response<RemedySuggestedResponse>
//
// suspend fun RemedyProduct(token:String):
// Response<RemedyProductResponse>
//
// suspend fun ShopwithusViewall(token:String):
// Response<ShopwithusViewallResponse>
//
// suspend fun Chat(token:String):
// Response<ChatFragmentResponse>
//
// suspend fun CategoryList(token:String,id:String):
// Response<CategoryProductResponse>
//
// suspend fun ProductDetails(token:String,id:String):
// Response<ProductResponse>
//
// suspend fun Call(token:String):
// Response<ChatFragmentResponse>
// suspend fun EditProfile(token:String, name: RequestBody, mobile_no: RequestBody, email: RequestBody, dob: RequestBody, profile: MultipartBody.Part):
// Response<LoginverificationResponse>
suspend fun confirmation_booking_report_detail(token:String,report_intakes_id: String):
Response<ConfirmationReportHistoryResponse>
suspend fun astro_rating_review_listApi(token:String):
Response<GetAstroRatingReviewListResponse>
suspend fun rating_review_pinselected_listApi(token:String):
Response<GetAstroRatingReviewPinResponse>
suspend fun review_pin_updateApi(token:String, id:String, type:String):
Response<ReviewPinUpdateResponse>
suspend fun astro_history_wallets(token:String):
Response<AstroEarningListResponse>
suspend fun EditProfile(token:String, name: RequestBody, mobile_no: RequestBody, email: RequestBody, gender: RequestBody, profile: MultipartBody.Part,
address: RequestBody,
state_id: RequestBody,
/*expertise: RequestBody,
language: RequestBody,
skills: RequestBody,*/
company_name: RequestBody,
city: RequestBody,
pincode: RequestBody,
calling_charg: RequestBody,
document1: MultipartBody.Part,
document2: MultipartBody.Part,
about_us: RequestBody,
fixed_session_30min_charge: RequestBody,
fixed_session_60min_charge: RequestBody,
experience: RequestBody,):
Response<LoginverificationResponse>
suspend fun refund_money(token:String,order_id: String):
Response<CommonResponse>
suspend fun call_ring(token: String,astro_id:String,user_id:String,request_id: String):
Response<CallRingResponse>
// suspend fun StateList(): Response<StateList>
//
// suspend fun CityList(id:Int): Response<CityList>
//
// suspend fun banner(token:String):
// Response<BannerResponse>
//
// suspend fun OrderDetails(token:String,product_id:String,address_id:String): Response<MyCartResponse>
//
// suspend fun HistoryWallet(token: String):
// Response<HistoryWallet>
//
// suspend fun history_call(token: String):
// Response<CallHistoryResponse>
//
// suspend fun history_chat(token: String):
// Response<ChatHistoryResponse>
// suspend fun history_reports(token: String):
// Response<ReportsHistoryResponse>
// suspend fun OrderPlaced(
// token: String,
// product_id: String,
// product_price: String,
// shipping_chard: String,
// coupon_discount: String,
// grand_total: String,
// coupon_code: String,
// address_id: String,
// qty: String,
// transaction_id: String,
// payment_status: String,
// payment_type: String,
// ): Response<PlaceOrderResponse>
//
// suspend fun history_products(token: String,type:String):
// Response<HistoryProductSuggestedResponse>
//
// suspend fun user_my_reveiw(token: String):
// Response<MyReviewsResponse>
//
// suspend fun my_orders(token: String,type:String):
// Response<MyOrdersEcommersProductResponse>
//
// suspend fun booking_detail(token: String,order_id:String):
// Response<BookingDetailsResponse>
//
// suspend fun strologer_details(token: String, id: String,):
// Response<AstrorahiResponse>
//
// suspend fun consultancy_order(token: String):
// Response<ConsultancyOrderResponse>
//
// suspend fun consultancy_order_detail(token: String, id: String):
// Response<ConsultancyDetail>
//
//
// suspend fun user_give_review(token: String,astro_id: String,rating: String,review: String,):
// Response<GiveReviewResponse>
//
// suspend fun strologer_availability(token: String,id: String,):Response<AvailabilityResponse>
//
// suspend fun MatchMaking(
// token: String,
// dob_boy: String,
// birth_time_boy: String,
// place_birth_boy: String,
// occupation_boy: String,
// maritial_status_boy: String,
// topic_consultation_boy: String,
// dob_girl: String,
// birth_time_girl: String,
// place_birth_girl: String,
// occupation_girl: String,
// maritial_status_girl: String,
// topic_consultation_girl: String,
// ): Response<MatchMakingResponse>
//
// suspend fun Language(token:String):
// Response<LanguageResponse>
// suspend fun add_user_details_first(
// token: String,
// dob: String,
// birth_time: String,
// place_birth: String,
// occupation: String,
// maritial_status: String,
// topic_consultation: String,
// language_id: String,
// astro_id: String,
// request_type: String,
// ):
// Response<IntakeResponse>
//
//
// suspend fun agora_generate_tokenApi(token:String, astro_id: String, call_type: String):
// Response<AgoraGenerateTokenResponse>
//
// suspend fun agora_create_userApi(token:String, to_userId:String, nickname:String):
// Response<AgoraCreateUserResponse>
//
// suspend fun chat_list_MessageApi(token:String, to_id: String):
// Response<ChatListMessageResponse>
//
// suspend fun chatagoraApi(token:String, to_userId: String, message: String, type: String):
// Response<ChatAgoraResponse>
//
// suspend fun reason_cancel_list(token: String):
// Response<CancelReasonResponse>
// suspend fun strologers_list(token: String):
// Response<AstrologersListViewAllResponse>
//
// suspend fun request_for_report(
// token: String,
// dob: String,
// birth_time: String,
// place_birth: String,
// occupation: String,
// maritial_status: String,
// topic_consultation: String,
// astro_id: String,
// ):
// Response<CommonResponse>
//
// suspend fun delete_address(token:String,id:String):
// Response<CommonResponse>
//
// suspend fun cancel_order(token:String,id:String,reason_ids: String,write_reason: String,):
// Response<CommonResponse>
//
// suspend fun call_end(token:String,timer:String,from_user: String,to_user: String,caller_id:String):
// Response<CommonResponse>
//
// suspend fun when_call_start(token:String,astro_id: String):
// Response<CallStartResponse>
//
// suspend fun add_money(token:String,amount: String,payment_status: String,transaction_id: String,):
// Response<CommonResponse>
//
// suspend fun get_report_astro_list(token: String):
// Response<AstrologersListViewAllResponse>
//
// suspend fun get_report_astro_details(token: String,astro_id:String):
// Response<GetAstroDetailsResponse>
}
| callastro/app/src/main/java/com/callastro/data/MainRepository.kt | 404033284 |
package com.callastro.data
import com.callastro.model.*
import hilt_aggregated_deps._com_maxtra_astrorahiastrologer_util_Utils
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.Response
import retrofit2.http.*
interface ApiService {
@FormUrlEncoded
@POST("astro_login")
suspend fun login(
@Field("country_code") country_code: String,
@Field("mobile_no") mobile: String,
@Field("device_id") device_id: String,
@Field("device_type") device_type: String,
@Field("device_name") device_name: String,
@Field("device_token") device_token: String,
): Response<LoginResponse>
@FormUrlEncoded
@POST("astro_verify_otp")
suspend fun login_verification(
@Field("id") id: String,
@Field("otp") otp: String,
): Response<LoginverificationResponse>
@FormUrlEncoded
@POST("astro_earning")
suspend fun astro_earningApi(
@Header("Authorization") authorization: String,
@Field("filter") filter: String
): Response<AstroEarningResponse>
@FormUrlEncoded
@POST("request_money")
suspend fun request_money(
@Header("Authorization") authorization: String,
@Field("money") money: String
): Response<CommonResponse>
@GET("expertise_list")
suspend fun Expertize(
@Header("Authorization") authorization: String,
): Response<ExpertizeResponse>
@GET("language_list")
suspend fun Language(
@Header("Authorization") authorization: String,
): Response<LanguageResponse>
@GET("post_profile_detail")
suspend fun post_profile_detailApi(
@Header("Authorization") authorization: String,
): Response<PostProfileDetailResponse>
@GET("state_list")
suspend fun stateListApi(
@Header("Authorization") authorization: String
): Response<StateListResponse>
@FormUrlEncoded
@POST("city_list")
suspend fun cityListApi(
@Header("Authorization") authorization: String,
@Field("state_id") state_id: String
): Response<CityListResponse>
@FormUrlEncoded
@POST("pincode_list")
suspend fun pinCodeListApi(
@Header("Authorization") authorization: String,
@Field("city_id") city_id: String
): Response<PincodeListResponse>
@GET("skills_list")
suspend fun skills_listApi(
@Header("Authorization") authorization: String
): Response<SkillsListResponse>
@Multipart
@POST("add_astro_details")
suspend fun AddAstroDetailsApi(
@Header("Authorization") authorization: String,
@Part("full_name") full_name: RequestBody,
@Part("company_name") company_name: RequestBody,
@Part("email") email: RequestBody,
@Part("gender") gender: RequestBody,
@Part("address") address: RequestBody,
@Part("state_id") state_id: RequestBody,
@Part("city_id") city_id: RequestBody,
@Part("pincode_id") pincode_id: RequestBody,
@Part("expertise") expertise: RequestBody,
@Part("language") language: RequestBody,
@Part("skills") skills: RequestBody,
@Part("bank_name") bank_name: RequestBody,
@Part("account_no") account_no: RequestBody,
@Part("acc_holder_name") acc_holder_name: RequestBody,
@Part("ifsc_code") ifsc_code: RequestBody,
@Part("branch") branch: RequestBody,
@Part document1: MultipartBody.Part,
@Part document2: MultipartBody.Part,
@Part profile_image: MultipartBody.Part,
@Part("calling_charg") calling_charge: RequestBody,
@Part("about_us") about_us: RequestBody,
@Part("fixed_session_30min_charge") fixed_session_30min_charge :RequestBody,
@Part("fixed_session_60min_charge") fixed_session_60min_charge :RequestBody,
@Part("experience") experience: RequestBody,
): Response<AddAstroDetailResponse>
@FormUrlEncoded
@POST("add_expertise")
suspend fun add_expertiseApi(
@Header("Authorization") authorization: String,
@Field("expertise_id") expertise_id: String
): Response<AddExpertiseItemResponse>
@GET("astro_banner")
suspend fun banner(
@Header("Authorization") authorization: String,
): Response<BannerResponse>
@FormUrlEncoded
@POST("delete_expertise")
suspend fun delete_expertiseApi(
@Header("Authorization") authorization: String,
@Field("id") id: String
): Response<DeleteExpertiseItemResponse>
@GET("get_added_skills")
suspend fun get_added_skillsApi(
@Header("Authorization") authorization: String,
): Response<GetAddedSkillsResponse>
@FormUrlEncoded
@POST("add_skills")
suspend fun add_skillsApi(
@Header("Authorization") authorization: String,
@Field("skill_id") skill_id: String
): Response<AddSkillsItemResponse>
@GET("get_added_expertise")
suspend fun get_added_expertiseApi(
@Header("Authorization") authorization: String,
): Response<GetAddedExpertiseResponse>
@FormUrlEncoded
@POST("astro_give_review")
suspend fun astro_give_review(
@Header("Authorization") authorization: String,
@Field("user_id") astro_id: String,
@Field("rating") rating: String,
@Field("review") review: String,
): Response<GiveReviewResponse>
@FormUrlEncoded
@POST("recent_otp")
suspend fun recent_otp(
@Field("mobile_no") mobile_no: String,
@Field("type") type: String,
): Response<LoginResponse>
@FormUrlEncoded
@POST("delete_skills")
suspend fun delete_skillsApi(
@Header("Authorization") authorization: String,
@Field("id") id: String
): Response<DeleteSkillsItemResponse>
@GET("get_added_language")
suspend fun get_added_languageApi(
@Header("Authorization") authorization: String,
): Response<GetAddedLanguageResponse>
@GET("astro_bank_detail")
suspend fun GetBankDetail(
@Header("Authorization") authorization: String,
): Response<GetBankDetail>
@FormUrlEncoded
@POST("refund_money")
suspend fun refund_money(
@Header("Authorization") authorization: String,
@Field("order_id") order_id: String,
): Response<CommonResponse>
@FormUrlEncoded
@POST("astro_update_bank")
suspend fun UpdateBank(
@Header("Authorization") authorization: String,
@Field("bank_name") bank_name: String,
@Field("account_no") account_no: String,
@Field("acc_holder_name") acc_holder_name: String,
@Field("ifsc_code") ifsc_code: String,
@Field("branch") branch: String,
): Response<BankDetailResponse>
@FormUrlEncoded
@POST("add_language")
suspend fun add_languageApi(
@Header("Authorization") authorization: String,
@Field("language_id") language_id: String
): Response<AddLanguageItemResponse>
@FormUrlEncoded
@POST("delete_language")
suspend fun delete_languageApi(
@Header("Authorization") authorization: String,
@Field("id") id: String
): Response<DeleteLanguageItemResponse>
@FormUrlEncoded
@POST("post_profile_update")
suspend fun post_profile_updateApi(
@Header("Authorization") authorization: String,
@Field("full_name") full_name: String,
@Field("gender") gender: String,
@Field("experience") experience: String
): Response<PostProfileUpdateResponse>
@GET("experience_list")
suspend fun experience_listApi(
@Header("Authorization") authorization: String,
): Response<ExperienceListResponse>
// @GET("astro_profile")
// suspend fun experience_listApi(
// @Header("Authorization") authorization: String,
// ): Response<>
@Multipart
@POST("astro_profile_update")
suspend fun Editprofile(
@Header("Authorization") authorization: String,
@Part("name") name: RequestBody,
@Part("mobile_no") mobile_no: RequestBody,
@Part("email") email: RequestBody,
@Part("gender") gender: RequestBody,
@Part profile: MultipartBody.Part,
@Part("address") address: RequestBody,
@Part("state_id") state_id: RequestBody,
// @Part("expertise") expertise: RequestBody,
// @Part("language") language: RequestBody,
// @Part("skills") skills: RequestBody,
@Part("company_name") company_name: RequestBody,
@Part("city") city: RequestBody,
@Part("pincode") pincode: RequestBody,
@Part("calling_charg") calling_charg: RequestBody,
@Part document1: MultipartBody.Part,
@Part document2: MultipartBody.Part,
@Part("about_us") about_us: RequestBody,
@Part("fixed_session_30min_charge") fixed_session_30min_charge: RequestBody,
@Part("fixed_session_60min_charge") fixed_session_60min_charge: RequestBody,
@Part("experence_id") experience: RequestBody,
): Response<LoginverificationResponse>
@GET("astro_rating_review_list")
suspend fun astro_rating_review_listApi(
@Header("Authorization") authorization: String,
): Response<GetAstroRatingReviewListResponse>
@FormUrlEncoded
@POST("review_pin_update")
suspend fun review_pin_updateApi(
@Header("Authorization") authorization: String,
@Field("id") id: String,
@Field("type") type: String
): Response<ReviewPinUpdateResponse>
@GET("rating_review_pinselected_list")
suspend fun rating_review_pinselected_listApi(
@Header("Authorization") authorization: String,
): Response<GetAstroRatingReviewPinResponse>
@FormUrlEncoded
@POST("confirmation_booking_report_detail")
suspend fun confirmation_booking_report_detail(
@Header("Authorization") authorization: String,
@Field("report_intakes_id") report_intakes_id: String
): Response<ConfirmationReportHistoryResponse>
// @FormUrlEncoded
@GET("call_history")
suspend fun callHistoryListApi(
@Header("Authorization") authorization: String,
// @Field("dummy") dummy: String
): Response<CallHistoryListResponse>
// @FormUrlEncoded
@GET("chart_history")
suspend fun chatHistoryListApi(
@Header("Authorization") authorization: String,
// @Field("dummy") dummy: String
): Response<ChatHistoryListResponse>
@GET("product_list")
suspend fun product_listApi(
@Header("Authorization") authorization: String,
): Response<ProductListResponse>
@FormUrlEncoded
@POST("add_suggest_remedy")
suspend fun add_suggest_remedyApi(
@Header("Authorization") authorization: String,
@Field("product_ids") product_ids: String,
@Field("user_id") user_id: String,
): Response<AddSuggestRemedyResponse>
@FormUrlEncoded
@POST("suggest_remedy_list")
suspend fun suggest_remedy_listApi(
@Header("Authorization") authorization: String,
@Field("user_id") user_id: String,
): Response<SuggestRemedyListResponse>
@FormUrlEncoded
@POST("agora_generate_token")
suspend fun agora_generate_tokenApi(
@Header("Authorization") authorization: String,
@Field("astro_id") astro_id: String,
@Field("call_type") call_type: String, // 1-audiocall, 2-videocall
): Response<AgoraGenerateTokenResponse>
@FormUrlEncoded
@POST("call_end_by_status")
suspend fun call_end_by_status(
@Header("Authorization") authorization: String,
@Field("caller_id") caller_id: String,
): Response<CallendbyuserResponse>
@FormUrlEncoded
@POST("live_agora_generate_token")
suspend fun live_agora_generate_token(
@Header("Authorization") authorization: String,
@Field("topic") topic: String,
): Response<GoLiveResponse>
@GET("delete_live_astro")
suspend fun delete_live_astro(
@Header("Authorization") authorization: String,
): Response<CommonResponse>
@GET("astro_history_wallets")
suspend fun astro_history_wallets(
@Header("Authorization") authorization: String,
): Response<AstroEarningListResponse>
@FormUrlEncoded
@POST("live_agora_topic")
suspend fun live_agora_topic(
@Header("Authorization") authorization: String,
@Field("topic") topic: String
): Response<GoLiveResponse>
@GET("astro_home")
suspend fun astro_home(
@Header("Authorization") authorization: String,
): Response<CallChatStatusResponse>
@FormUrlEncoded
@POST("add_suggest_remedy_message")
suspend fun add_suggest_remedy_messageApi(
@Header("Authorization") authorization: String,
@Field("user_id") user_id: String,
@Field("message") message: String,
): Response<CommonResponse>
@GET("customer_support_email")
suspend fun EmailUs(
@Header("Authorization") authorization: String,
): Response<EmailUs_Response>
@FormUrlEncoded
@POST("callback_apply")
suspend fun callback_apply(
@Header("Authorization") authorization: String,
@Field("mobile") mobile: String,
@Field("message") message: String,
): Response<CommonResponse>
@GET("about_us")
suspend fun AboutUs(
@Header("Authorization") authorization: String,
): Response<AboutUsResponse>
@GET("astro_profile")
suspend fun ViewProfile(
@Header("Authorization") authorization: String,
): Response<ViewProfileResponse>
@GET("notification")
suspend fun notificationApi(
@Header("Authorization") authorization: String,
): Response<NotificationListResponse>
@GET("faq")
suspend fun FAQ(
@Header("Authorization") authorization: String,
): Response<FAQResponse>
@FormUrlEncoded
@POST("chat_list")
suspend fun chat_list_MessageApi(
@Header("Authorization") authorization: String,
@Field("to_id") to_id: String,
): Response<ChatListMessageResponse>
@FormUrlEncoded
@POST("call_end")
suspend fun call_end(
@Header("Authorization") authorization: String,
@Field("timer") timer: String,
@Field("from_user") from_user: String,
@Field("to_user") to_user: String,
@Field("caller_id") caller_id: String,
@Field("type") type: String,
@Field("unique_id") fixed_session: String,
): Response<CommonResponse>
@FormUrlEncoded
@POST("chat_end")
suspend fun chat_end(
@Header("Authorization") authorization: String,
@Field("timer") timer: String,
@Field("from_user") from_user: String,
@Field("to_user") to_user: String,
@Field("caller_id") caller_id: String,
@Field("type") type: String,
@Field("unique_id") fixed_session: String,
): Response<CommonResponse>
@FormUrlEncoded
@POST("live_end")
suspend fun live_end(
@Header("Authorization") authorization: String,
@Field("timer") timer: String,
@Field("from_user") from_user: String,
@Field("to_user") to_user: String,
@Field("type") type: String,
): Response<CommonResponse>
@FormUrlEncoded
@POST("send_chat_with_us")
suspend fun send_chat_with_us(
@Header("Authorization") authorization: String,
@Field("message") caller_id: String,
): Response<CommonResponse>
@GET("get_chat_with_us")
suspend fun get_chat_with_us(
@Header("Authorization") authorization: String,
): Response<GetCustomerSupportChat>
@FormUrlEncoded
@POST("check_chat_end")
suspend fun check_chat_end(
@Header("Authorization") authorization: String,
@Field("caller_id") caller_id: String,
): Response<CheckChatEndResponse>
@GET("notification")
suspend fun Notification(
@Header("Authorization") authorization: String,
): Response<NotificationResponse>
@FormUrlEncoded
@POST("call_ring_status_save")
suspend fun call_ring_status_save(
@Header("Authorization") authorization: String,
@Field("channel_name") channel_name: String,
): Response<call_ring_status_save_Response>
@FormUrlEncoded
@POST("call_ring_end")
suspend fun call_ring_end(
@Header("Authorization") authorization: String,
@Field("channel_name") channel_name: String,
): Response<CommonResponse>
@FormUrlEncoded
@POST("call_ring")
suspend fun call_ring(
@Header("Authorization") authorization: String,
@Field("astro_id") astro_id: String,
@Field("user_id") user_id: String,
@Field("request_id") request_id: String,
): Response<CallRingResponse>
@FormUrlEncoded
@POST("chatagora")
suspend fun chatagoraApi(
@Header("Authorization") authorization: String,
@Field("to_userId") to_userId: String,
@Field("message") message: String,
@Field("type") type: String,
): Response<ChatAgoraResponse>
@GET("setting_details")
suspend fun setting_detailsApi(
@Header("Authorization") authorization: String,
): Response<SettingDetailsGetResponse>
@GET("update_online_status")
suspend fun checkOnlineStatusApi(
@Header("Authorization") authorization: String,
): Response<CommonResponse>
@FormUrlEncoded
@POST("setting_update")
suspend fun setting_updateApi(
@Header("Authorization") authorization: String,
@Field("is_chat") is_chat: String,
@Field("is_audio_call") is_audio_call: String,
@Field("is_video_call") is_video_call: String
): Response<SettingDetailsGetResponse>
@FormUrlEncoded
@POST("get_cls_date_wise")
suspend fun GetCalender(
@Header("Authorization") authorization: String,
@Field("date") date: String,
): Response<CalenderList>
@FormUrlEncoded
@POST("manage_calendar_schedule")
suspend fun manage_calendar_scheduleApi(
@Header("Authorization") authorization: String,
@Field("date") date: String,
@Field("from_time") from_time: String,
@Field("to_time") to_time: String,
): Response<ManageCalendarScheduleResponse>
@FormUrlEncoded
@POST("calendar_schedule_delete")
suspend fun calendar_schedule_deleteApi(
@Header("Authorization") authorization: String,
@Field("id") id: String,
): Response<ScheduleCalendarDeleteResponse>
@FormUrlEncoded
@POST("call_request_detail")
suspend fun call_request_detail_api(
@Header("Authorization") authorization: String,
@Field("id") id: String
): Response<CallRequestDetailResponse>
@FormUrlEncoded
@POST("call_request_accecpt")
suspend fun call_request_accecpt_api(
@Header("Authorization") authorization: String,
@Field("id") id: String
): Response<ChatRequestCancelResponse>
@FormUrlEncoded
@POST("call_request_cancel")
suspend fun call_request_cancel_api(
@Header("Authorization") authorization: String,
@Field("id") id: String,
@Field("reason") reason: String,
@Field("comment") comment: String,
@Field("action_by") action_by: String,
): Response<ChatRequestCancelResponse>
@FormUrlEncoded
@POST("click_user_chat")
suspend fun click_user_chat(
@Header("Authorization") authorization: String,
@Field("user_id") user_id: String,
): Response<CommonResponse>
@GET("chat_user_list")
suspend fun chat_user_listApi(
@Header("Authorization") authorization: String,
): Response<ChatUserListResponse>
@FormUrlEncoded
@POST("chat_request_detail")
suspend fun chat_request_detail_api(
@Header("Authorization") authorization: String,
@Field("id") id: String
): Response<ChatRequestDetailResponse>
@GET("call_user_list")
suspend fun call_user_listApi(
@Header("Authorization") authorization: String,
): Response<CallUserListResponse>
@FormUrlEncoded
@POST("chat_request_accecpt")
suspend fun chat_request_accecpt_api(
@Header("Authorization") authorization: String,
@Field("id") id: String
): Response<ChatRequestCancelResponse>
@GET("reason_cancel_list")
suspend fun chatcallReasonCancelListApi(
@Header("Authorization") authorization: String,
): Response<ChatCallCancelReasonResponse>
@GET("cancellation_by_user")
suspend fun cancellationByUserApi(
@Header("Authorization") authorization: String,
): Response<CancellationByUserResponse>
@FormUrlEncoded
@POST("chat_request_cancel")
suspend fun chat_request_cancel_api(
@Header("Authorization") authorization: String,
@Field("id") id: String,
@Field("reason") reason: String,
@Field("comment") comment: String
): Response<ChatRequestCancelResponse>
@GET("chat_request_list")
suspend fun Chathome(
@Header("Authorization") authorization: String,
): Response<Chat_Call_Response>
@GET("call_request_list")
suspend fun Callhome(
@Header("Authorization") authorization: String,
): Response<Chat_Call_Response>
@FormUrlEncoded
@POST("add_comment")
suspend fun add_comment(
@Field("user_id") user_id: String,
@Field("astro_id") astro_id: String,
@Field("message") message: String,
@Field("type") type: String,
): Response<CommonResponse>
@FormUrlEncoded
@POST("get_live_comments")
suspend fun get_live_comments(
@Header("Authorization") authorization: String,
@Field("channel_name") channel_name: String,
): Response<LiveCommentsModelClass>
@FormUrlEncoded
@POST("confirmation_booking_list")
suspend fun confirmation_booking_listApi(
@Header("Authorization") authorization: String,
@Field("type") type: String
): Response< ConfirmationBookingResponse>
@Multipart
@POST("report_doc_upload")
suspend fun report_doc_upload(
@Header("Authorization") authorization: String,
@Part("user_id") user_id: RequestBody,
@Part("report_intake_id") report_intake_id: RequestBody,
@Part("text") text: RequestBody,
@Part file: MultipartBody.Part,
): Response<CommonResponse>
@GET("fixed_session_requests")
suspend fun fixed_session_requests(
@Header("Authorization") authorization: String,
): Response<FixedsessionResponseList>
@FormUrlEncoded
@POST("fixed_session_request_accecpt")
suspend fun fixed_session_request_accecpt(
@Header("Authorization") authorization: String,
@Field("id") id: String
): Response<ChatRequestCancelResponse>
@FormUrlEncoded
@POST("fix_session_detail")
suspend fun fix_session_detail(
@Header("Authorization") authorization: String,
@Field("user_detail_id") user_detail_id: String
): Response<FixSessionDetail>
@FormUrlEncoded
@POST("my_bookings")
suspend fun upcomingCompletedBookingsApi(
@Header("Authorization") authorization: String,
@Field("type") type: String,
): Response<MyBookingsUpcomingCompletedResponse>
} | callastro/app/src/main/java/com/callastro/data/ApiService.kt | 49263579 |
package com.callastro.data
import com.callastro.model.*
import okhttp3.MultipartBody
import okhttp3.RequestBody
import retrofit2.Response
import retrofit2.http.Field
import retrofit2.http.Part
import javax.inject.Inject
class MainRepositoryImpl @Inject constructor(private val apiService: ApiService) : MainRepository {
override suspend fun login(
country_code: String,
mobile: String,
device_id: String,
device_type: String,
device_name: String,
device_token: String
):
Response<LoginResponse> =
apiService.login(country_code,mobile, device_id, device_type, device_name, device_token)
override suspend fun loginverification(id: String, otp: String):
Response<LoginverificationResponse> = apiService.login_verification(id, otp)
override suspend fun Expertize(token:String):
Response<ExpertizeResponse> = apiService.Expertize(token)
override suspend fun Language(token:String):
Response<LanguageResponse> = apiService.Language(token)
override suspend fun post_profile_detailApi(token:String):
Response<PostProfileDetailResponse> = apiService.post_profile_detailApi(token)
override suspend fun stateListApi(token:String):
Response<StateListResponse> = apiService.stateListApi(token)
override suspend fun cityListApi(token:String, state_id:String):
Response<CityListResponse> = apiService.cityListApi(token,state_id)
override suspend fun pinCodeListApi(token:String, city_id:String):
Response<PincodeListResponse> = apiService.pinCodeListApi(token, city_id)
override suspend fun skills_listApi(token:String):
Response<SkillsListResponse> = apiService.skills_listApi(token)
override suspend fun astro_earningApi(token:String, filter:String):
Response<AstroEarningResponse> = apiService.astro_earningApi(token, filter)
override suspend fun request_money(token:String, money:String):
Response<CommonResponse> = apiService.request_money(token, money)
override suspend fun chat_user_listApi(token:String):
Response<ChatUserListResponse> = apiService.chat_user_listApi(token)
override suspend fun click_user_chat(token:String,user_id: String):
Response<CommonResponse> = apiService.click_user_chat(token,user_id)
override suspend fun agora_generate_tokenApi(token:String, astro_id: String, call_type: String):
Response<AgoraGenerateTokenResponse> = apiService.agora_generate_tokenApi(token, astro_id, call_type)
override suspend fun call_end_by_status(token:String,caller_id: String):
Response<CallendbyuserResponse> = apiService.call_end_by_status(token,caller_id)
override suspend fun live_agora_generate_token(token:String,topic: String):
Response<GoLiveResponse> = apiService.live_agora_generate_token(token,topic)
override suspend fun upcomingCompletedBookingsApi(token:String, type:String):
Response<MyBookingsUpcomingCompletedResponse> = apiService.upcomingCompletedBookingsApi(token, type)
override suspend fun delete_live_astro(token:String):
Response<CommonResponse> = apiService.delete_live_astro(token)
override suspend fun checkOnlineStatusRepo(token: String): Response<CommonResponse> = apiService.checkOnlineStatusApi(token)
override suspend fun astro_history_wallets(token:String):
Response<AstroEarningListResponse> = apiService.astro_history_wallets(token)
override suspend fun live_agora_topic(token:String, topic:String):
Response<GoLiveResponse> = apiService.live_agora_topic(token, topic)
override suspend fun astro_home(token:String):
Response<CallChatStatusResponse> = apiService.astro_home(token)
override suspend fun AddAstroDetailsApi(token:String,
full_name: RequestBody,
company_name: RequestBody,
email: RequestBody,
gender: RequestBody,
address: RequestBody,
state_id: RequestBody,
city_id: RequestBody,
pincode_id: RequestBody,
expertise: RequestBody,
language: RequestBody,
skills: RequestBody,
bank_name: RequestBody,
account_no: RequestBody,
acc_holder_name: RequestBody,
ifsc_code: RequestBody,
branch: RequestBody,
document1: MultipartBody.Part,
document2: MultipartBody.Part,
profile_image: MultipartBody.Part,
calling_charge:RequestBody,
about_us: RequestBody,
fixed_session_30min_charge :RequestBody,
fixed_session_60min_charge :RequestBody,
experience :RequestBody,):
Response<AddAstroDetailResponse> = apiService.AddAstroDetailsApi(token,
full_name, company_name, email, gender, address ,state_id , city_id, pincode_id,expertise , language,
skills, bank_name,account_no , acc_holder_name,ifsc_code , branch,document1, document2,profile_image,calling_charge,about_us,fixed_session_30min_charge,fixed_session_60min_charge,experience )
override suspend fun add_expertiseApi(token:String, expertise_id:String):
Response<AddExpertiseItemResponse> = apiService.add_expertiseApi(token, expertise_id)
override suspend fun banner(token: String):
Response<BannerResponse> = apiService.banner(token)
override suspend fun delete_expertiseApi(token:String, id:String):
Response<DeleteExpertiseItemResponse> = apiService.delete_expertiseApi(token, id)
override suspend fun get_added_skillsApi(token:String):
Response<GetAddedSkillsResponse> = apiService.get_added_skillsApi(token)
override suspend fun add_skillsApi(token:String, skill_id:String):
Response<AddSkillsItemResponse> = apiService.add_skillsApi(token, skill_id)
override suspend fun get_added_expertiseApi(token:String):
Response<GetAddedExpertiseResponse> = apiService.get_added_expertiseApi(token)
override suspend fun astro_give_review(token: String,astro_id: String,rating: String,review: String,):
Response<GiveReviewResponse> = apiService.astro_give_review(token, astro_id,rating,review)
override suspend fun recent_otp(mobile_no: String,type: String,):
Response<LoginResponse> = apiService.recent_otp(mobile_no,type)
override suspend fun delete_skillsApi(token:String, id:String):
Response<DeleteSkillsItemResponse> = apiService.delete_skillsApi(token, id)
override suspend fun get_added_languageApi(token:String):
Response<GetAddedLanguageResponse> = apiService.get_added_languageApi(token)
override suspend fun add_languageApi(token:String, language_id:String):
Response<AddLanguageItemResponse> = apiService.add_languageApi(token, language_id)
override suspend fun delete_languageApi(token:String, id:String):
Response<DeleteLanguageItemResponse> = apiService.delete_languageApi(token, id)
override suspend fun post_profile_updateApi(token:String, full_name:String, gender:String, experience:String):
Response<PostProfileUpdateResponse> = apiService.post_profile_updateApi(token, full_name, gender, experience)
override suspend fun experience_listApi(token:String):
Response<ExperienceListResponse> = apiService.experience_listApi(token)
override suspend fun confirmation_booking_report_detail(token:String,report_intakes_id: String):
Response<ConfirmationReportHistoryResponse> = apiService.confirmation_booking_report_detail(token,report_intakes_id)
override suspend fun astro_rating_review_listApi(token:String):
Response<GetAstroRatingReviewListResponse> = apiService.astro_rating_review_listApi(token)
override suspend fun review_pin_updateApi(token:String, id:String, type:String):
Response<ReviewPinUpdateResponse> = apiService.review_pin_updateApi(token, id, type)
override suspend fun rating_review_pinselected_listApi(token:String):
Response<GetAstroRatingReviewPinResponse> = apiService.rating_review_pinselected_listApi(token)
override suspend fun EditProfile(token:String, name: RequestBody, mobile_no: RequestBody, email: RequestBody, gender: RequestBody, profile: MultipartBody.Part,
address: RequestBody,
state_id: RequestBody,
// expertise: RequestBody,
// language: RequestBody,
// skills: RequestBody,
company_name: RequestBody,
city: RequestBody,
pincode: RequestBody,
calling_charg: RequestBody,
document1: MultipartBody.Part,
document2: MultipartBody.Part,
about_us: RequestBody,
fixed_session_30min_charge: RequestBody,
fixed_session_60min_charge: RequestBody,
experience: RequestBody,):
Response<LoginverificationResponse> = apiService.Editprofile(token,
name,
mobile_no,
email,gender,
profile,address, state_id, /*expertise, language, skills, */company_name, city, pincode, calling_charg, document1, document2,about_us,fixed_session_30min_charge,fixed_session_60min_charge,experience)
override suspend fun callHistoryListApi(token:String,/* dummy:String*/):
Response<CallHistoryListResponse> = apiService.callHistoryListApi(token, /*dummy*/)
override suspend fun chatHistoryListApi(token:String, /*dummy:String*/):
Response<ChatHistoryListResponse> = apiService.chatHistoryListApi(token,/*dummy*/)
override suspend fun EmailUs(token:String):
Response<EmailUs_Response> = apiService.EmailUs(token)
override suspend fun product_listApi(token:String):
Response<ProductListResponse> = apiService.product_listApi(token)
override suspend fun add_suggest_remedyApi(token:String, product_ids:String, user_id:String):
Response<AddSuggestRemedyResponse> = apiService.add_suggest_remedyApi(token, product_ids, user_id)
override suspend fun suggest_remedy_listApi(token:String, user_id: String):
Response<SuggestRemedyListResponse> = apiService.suggest_remedy_listApi(token, user_id)
override suspend fun add_suggest_remedy_messageApi(token:String, user_id: String, message: String):
Response<CommonResponse> = apiService.add_suggest_remedy_messageApi(token, user_id, message)
override suspend fun callback_apply(token:String,mobile:String,discription:String):
Response<CommonResponse> = apiService.callback_apply(token,mobile,discription)
override suspend fun aboutus(token:String):
Response<AboutUsResponse> = apiService.AboutUs(token)
override suspend fun notificationApi(token:String):
Response<NotificationListResponse> = apiService.notificationApi(token)
override suspend fun faq(token:String):
Response<FAQResponse> = apiService.FAQ(token)
override suspend fun chat_list_MessageApi(token:String, to_id: String):
Response<ChatListMessageResponse> = apiService.chat_list_MessageApi(token, to_id)
override suspend fun call_end(token:String,timer:String,from_user: String,to_user: String,caller_id:String,type: String,fixed_session: String,):
Response<CommonResponse> = apiService.call_end(token,timer,from_user,to_user,caller_id,type,fixed_session)
override suspend fun chat_end(token:String,timer:String,from_user: String,to_user: String,caller_id:String,type: String,fixed_session: String,):
Response<CommonResponse> = apiService.chat_end(token,timer,from_user,to_user,caller_id,type,fixed_session)
override suspend fun live_end(token:String,timer:String,from_user: String,to_user: String,type: String):
Response<CommonResponse> = apiService.live_end(token,timer,from_user,to_user,type)
override suspend fun send_chat_with_us(token:String,message:String):
Response<CommonResponse> = apiService.send_chat_with_us(token,message)
override suspend fun get_chat_with_us(token:String):
Response<GetCustomerSupportChat> = apiService.get_chat_with_us(token)
override suspend fun notification(token: String):
Response<NotificationResponse> = apiService.Notification(token)
override suspend fun call_ring_status_save(token:String,channel_name: String):
Response<call_ring_status_save_Response> = apiService.call_ring_status_save(token,channel_name)
override suspend fun call_ring_end(token:String,channel_name: String):
Response<CommonResponse> = apiService.call_ring_end(token,channel_name)
override suspend fun call_ring(token: String,astro_id:String,user_id:String,request_id: String):
Response<CallRingResponse> = apiService.call_ring(token,astro_id,user_id,request_id)
override suspend fun check_chat_end(token:String,caller_id: String):
Response<CheckChatEndResponse> = apiService.check_chat_end(token,caller_id)
override suspend fun chatagoraApi(token:String, to_userId: String, message: String, type: String):
Response<ChatAgoraResponse> = apiService.chatagoraApi(token, to_userId, message, type)
override suspend fun setting_detailsApi(token:String):
Response<SettingDetailsGetResponse> = apiService.setting_detailsApi(token)
override suspend fun setting_updateApi(token:String, is_chat:String, is_audio_call:String, is_video_call:String):
Response<SettingDetailsGetResponse> = apiService.setting_updateApi(token, is_chat, is_audio_call, is_video_call)
override suspend fun GetCalender(token:String,date:String):
Response<CalenderList> = apiService.GetCalender(token,date)
override suspend fun manage_calendar_scheduleApi(token:String, date: String, from_time: String, to_time: String):
Response<ManageCalendarScheduleResponse> = apiService.manage_calendar_scheduleApi(token, date, from_time, to_time)
override suspend fun calendar_schedule_deleteApi(token:String, id: String):
Response<ScheduleCalendarDeleteResponse> = apiService.calendar_schedule_deleteApi(token, id)
override suspend fun call_request_detail_api(token:String,id:String):
Response<CallRequestDetailResponse> = apiService.call_request_detail_api(token,id)
override suspend fun call_request_accecpt_api(token:String,id:String):
Response<ChatRequestCancelResponse> = apiService.call_request_accecpt_api(token,id)
override suspend fun call_request_cancel_api(token:String,id:String,reason:String,comment:String,action_by: String,):
Response<ChatRequestCancelResponse> = apiService.call_request_cancel_api(token,id,reason,comment,action_by)
override suspend fun chat_request_detail_api(token:String,id:String):
Response<ChatRequestDetailResponse> = apiService.chat_request_detail_api(token,id)
override suspend fun chat_request_accecpt_api(token:String,id:String):
Response<ChatRequestCancelResponse> = apiService.chat_request_accecpt_api(token,id)
override suspend fun chatcallReasonCancelListApi(token:String):
Response<ChatCallCancelReasonResponse> = apiService.chatcallReasonCancelListApi(token)
override suspend fun cancellationByUserApi(token:String):
Response<CancellationByUserResponse> = apiService.cancellationByUserApi(token)
override suspend fun chat_request_cancel_api(token:String,id:String,reason:String,comment:String):
Response<ChatRequestCancelResponse> = apiService.chat_request_cancel_api(token,id,reason,comment)
override suspend fun Chathome(token:String):
Response<Chat_Call_Response> = apiService.Chathome(token)
override suspend fun Callhome(token:String):
Response<Chat_Call_Response> = apiService.Callhome(token)
override suspend fun confirmation_booking_listApi(token:String, type:String):
Response<ConfirmationBookingResponse> = apiService.confirmation_booking_listApi(token, type)
override suspend fun report_doc_upload(token:String,
user_id: RequestBody,
report_intake_id: RequestBody,
text: RequestBody,
file: MultipartBody.Part,
):
Response<CommonResponse> = apiService.report_doc_upload(
token,
user_id,
report_intake_id,
text,
file)
override suspend fun call_user_listApi(token:String):
Response<CallUserListResponse> = apiService.call_user_listApi(token)
override suspend fun ViewProfile(token: String):
Response<ViewProfileResponse> = apiService.ViewProfile(token)
override suspend fun add_comment(
user_id: String,
astro_id: String,
message: String,
type: String,
): Response<CommonResponse> =
apiService.add_comment(user_id, astro_id, message, type)
override suspend fun fixed_session_requests(token:String):
Response<FixedsessionResponseList> = apiService.fixed_session_requests(token)
override suspend fun fixed_session_request_accecpt(token:String,id:String):
Response<ChatRequestCancelResponse> = apiService.fixed_session_request_accecpt(token,id)
override suspend fun fix_session_detail(token:String,user_detail_id:String):
Response<FixSessionDetail> = apiService.fix_session_detail(token,user_detail_id)
override suspend fun UpdateBank(token:String,bank_name:String,account_no: String,acc_holder_name: String,ifsc_code: String,branch: String):
Response<BankDetailResponse> = apiService.UpdateBank(token,bank_name,account_no,acc_holder_name,ifsc_code,branch)
override suspend fun GetBankDetail(token:String):
Response<GetBankDetail> = apiService.GetBankDetail(token)
override suspend fun refund_money(token:String,order_id: String):
Response<CommonResponse> = apiService.refund_money(token,order_id)
override suspend fun get_live_comments(
token: String,
channel_name: String,
): Response<LiveCommentsModelClass> =
apiService.get_live_comments(token,channel_name)
} | callastro/app/src/main/java/com/callastro/data/MainRepositoryImpl.kt | 1189102254 |
package com.callastro.broadcastReceiver
//import com.example.swastharakshak.chats.VoiceCallActivity
import android.annotation.SuppressLint
import android.app.NotificationManager
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.media.MediaPlayer
import android.os.Vibrator
import com.callastro.R
import com.callastro.fcm.MyFirebaseMessagingService
import com.maxtra.u.Constant
class NotificationBroadcastReceiver : BroadcastReceiver() {
// private var incomingCallNotificationBuilder: FirebaseMessaging? = null
// lateinit var apppcontext:Context
private var vib: Vibrator? = null
var mMediaPlayer: MediaPlayer? = null
override fun onReceive(context: Context, intent: Intent) {
if (intent != null) {
val eventType = intent.getStringExtra("action")
val roomId = intent.getStringExtra("Channelname")
val type = intent.getStringExtra("types")
val notId = intent.getIntExtra(Constant.NOTIFICATION_ID, 0)
val token = intent.getStringExtra(Constant.TOKEN)
val doctor_name = intent.getStringExtra("doctor_name")
val doctor_image = intent.getStringExtra("doctor_image")
// println("shivani>" + eventType)
// apppcontext = this
val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
notificationManager.cancel(notId!!)
var vib: Vibrator? = null
var mMediaPlayer: MediaPlayer? = null
mMediaPlayer = MediaPlayer.create(context, R.raw.notification)
vib = context.getSystemService(Context.VIBRATOR_SERVICE) as Vibrator
vib!!.vibrate(1000)
mMediaPlayer!!.isLooping = false
mMediaPlayer!!.start()
// mMediaPlayer = MediaPlayer.create(context, R.raw.notification)
// vib = context.getSystemService(Context.VIBRATOR_SERVICE) as Vibrator
// vib!!.vibrate(1000)
// mMediaPlayer!!.isLooping = false
// mMediaPlayer!!.start()
// incomingCallNotificationBuilder = apppcontext
val intent = Intent(context, MyFirebaseMessagingService::class.java)
// Toast.makeText(context, "hiiftrhtrhtrhtrff", Toast.LENGTH_SHORT).show()
intent.putExtra("id", 101)
intent.putExtra("msg", "hi")
context.sendBroadcast(intent)
// FirebaseMessaging().stopSound(context)
//starting service
// stopSound()
//starting service
// Toast.makeText(context, "hiiftrhtrhtrhtrff", Toast.LENGTH_SHORT).show()
// val pm = getSystemService(Context.POWER_SERVICE) as PowerManager
// val wl = pm.newWakeLock(
// PowerManager.PARTIAL_WAKE_LOCK or PowerManager.ACQUIRE_CAUSES_WAKEUP,
// "myalarmapp:alarm."
// )
// wl.acquire(5000)
val notifManager =
context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
notifManager.cancelAll()
// eventType?.let {
//// if (it.equals("Accept")) {
//// Toast.makeText(context, eventType, Toast.LENGTH_SHORT).show()
// if (type == "1"){
//
// val intent = Intent(context, VoiceCallActivity::class.java).apply {
// putExtra("channelName", roomId)
// putExtra("token", token)
// putExtra("doctor_name", doctor_name)
// putExtra("doctor_image", doctor_image)
// flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
// }
// context.startActivity(intent)
//// context.sendBroadcast(intent)
// NotificationManagerCompat.from(context).cancel(null, 321);
// }else if (type == "2"){
//// Toast.makeText(context, "hiihtrhtrhtrfff", Toast.LENGTH_SHORT).show()
// val intent = Intent(context, VideoCallActivity::class.java).apply {
// putExtra("channelName", roomId)
// putExtra("token", token)
// putExtra("doctor_name", doctor_name)
// putExtra("doctor_image", doctor_image)
// flags = Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_CLEAR_TASK
//
// }
// context.startActivity(intent)
//
//// context.sendBroadcast(intent)
// NotificationManagerCompat.from(context).cancel(null, 321);
// }
//// Toast.makeText(context, "hiiftrhtrhtrhtrff", Toast.LENGTH_SHORT).show()
//// }else if (it.equals("Reject")) {
//// context.stopService(Intent(context, FirebaseMessaging::class.java))
//// val it = Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)
//// context.sendBroadcast(it)
////
//// }
// }
}
}
@SuppressLint("MissingPermission")
fun stopSound() {
if (mMediaPlayer != null) {
mMediaPlayer!!.stop()
vib!!.cancel()
mMediaPlayer!!.release()
mMediaPlayer = null
}
}
} | callastro/app/src/main/java/com/callastro/broadcastReceiver/NotificationBroadcastReceiver.kt | 2392833591 |
package com.swnishan.materialdatetimepicker.sample
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.tabs.TabLayoutMediator
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
viewPager.adapter = ViewPagerAdapter(supportFragmentManager, this.lifecycle)
TabLayoutMediator(tabLayout, viewPager) { tab, position ->
when (position) {
0 -> tab.text = getString(R.string.time_picker)
1 -> tab.text = getString(R.string.date_picker)
}
}.attach()
}
}
| callastro/sample/src/main/java/com/swnishan/materialdatetimepicker/sample/MainActivity.kt | 2750257319 |
package com.swnishan.materialdatetimepicker.sample
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.swnishan.materialdatetimepicker.sample.fragment.DatePickerFragment
import com.swnishan.materialdatetimepicker.sample.fragment.TimePickerFragment
internal class ViewPagerAdapter(fragmentManager: FragmentManager, lifeCycle: Lifecycle) : FragmentStateAdapter(fragmentManager, lifeCycle) {
override fun getItemCount(): Int = 2
override fun createFragment(position: Int): Fragment = when (position) {
0 -> TimePickerFragment()
else -> DatePickerFragment()
}
}
| callastro/sample/src/main/java/com/swnishan/materialdatetimepicker/sample/ViewPagerAdapter.kt | 1249144338 |
package com.swnishan.materialdatetimepicker.sample.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import com.swnishan.materialdatetimepicker.sample.R
import com.swnishan.materialdatetimepicker.timepicker.MaterialTimePickerDialog
import com.swnishan.materialdatetimepicker.timepicker.MaterialTimePickerView
import kotlinx.android.synthetic.main.fragment_time_picker.*
class TimePickerFragment : Fragment() {
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
return inflater.inflate(R.layout.fragment_time_picker, container, false)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
btnTimePickerDialog.setOnClickListener {
val builder = MaterialTimePickerDialog.Builder.setTitle(getString(R.string.set_start_time))
.setNegativeButtonText(getString(R.string.cancel))
.setPositiveButtonText(getString(R.string.ok))
// Below values can be set from the style as well (materialTimePickerViewStyle)
.setTimeConvention(MaterialTimePickerView.TimeConvention.HOURS_12) // default 12 hours
.setHour(13) // default current hour
.setMinute(34) // default current minute
.setTimePeriod(MaterialTimePickerView.TimePeriod.AM) // default based on the current time
.setFadeAnimation(350L, 1050L, .3f, .7f)
.setTheme(R.style.ThemeOverlay_Dialog_TimePicker) // default [R.style.ThemeOverlay_Dialog_MaterialTimePicker]
.build()
builder.setOnTimePickListener { selectedTime -> // Selected time as long value
Toast.makeText(
requireContext(),
"${builder.getHour()} : ${builder.getMinute()} ${builder.getTimePeriod().name}",
Toast.LENGTH_SHORT
).show()
}
builder.show(requireNotNull(this.fragmentManager), MaterialTimePickerDialog::class.simpleName)
}
}
}
| callastro/sample/src/main/java/com/swnishan/materialdatetimepicker/sample/fragment/TimePickerFragment.kt | 2244138662 |
package com.swnishan.materialdatetimepicker.sample.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import com.swnishan.materialdatetimepicker.datepicker.MaterialDatePickerDialog
import com.swnishan.materialdatetimepicker.datepicker.MaterialDatePickerView
import com.swnishan.materialdatetimepicker.sample.R
import kotlinx.android.synthetic.main.fragment_date_picker.*
import org.threeten.bp.OffsetDateTime
class DatePickerFragment : Fragment() {
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
return inflater.inflate(R.layout.fragment_date_picker, container, false)
}
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
btnDatePickerDialog.setOnClickListener {
val builder = MaterialDatePickerDialog.Builder.setTitle(getString(R.string.set_start_date))
.setNegativeButtonText(getString(R.string.cancel))
.setPositiveButtonText(getString(R.string.ok))
// Below values can be set from the style as well (materialDatePickerViewStyle)
.setDate(OffsetDateTime.now().plusDays(10).toInstant().toEpochMilli()) // default current date
.setDateFormat(MaterialDatePickerView.DateFormat.DD_MMMM_YYYY) // default DateFormat.DD_MMM_YYYY (05 Feb 2021)
.setTheme(R.style.ThemeOverlay_Dialog_DatePicker) // default R.style.ThemeOverlay_Dialog_MaterialDatePicker
.setFadeAnimation(350L, 1050L, .3f, .7f)
.build()
builder.setOnDatePickListener { selectedDate -> // selected date as long value
Toast.makeText(
it.context,
"${builder.getDayOfMonth()}-${builder.getMonth()}-${builder.getYear()}",
Toast.LENGTH_SHORT
).show()
}
builder.show(requireNotNull(this.fragmentManager), MaterialDatePickerDialog::class.simpleName)
}
}
}
| callastro/sample/src/main/java/com/swnishan/materialdatetimepicker/sample/fragment/DatePickerFragment.kt | 2914383241 |
package com.example.project8_classc
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.example.project8_classc", appContext.packageName)
}
} | 061_RestAPI/app/src/androidTest/java/com/example/project8_classc/ExampleInstrumentedTest.kt | 909588357 |
package com.example.project8_classc
import org.junit.Test
import org.junit.Assert.*
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@Test
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
} | 061_RestAPI/app/src/test/java/com/example/project8_classc/ExampleUnitTest.kt | 2290303531 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.