This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PatientSeenSummaryFragment extends Fragment { | |
private static final String TAG = "PatientSeenSummaryFragm"; | |
private String apiBaseUrl; | |
private String authToken; | |
private ConstraintLayout content; | |
private ConstraintLayout loading; | |
private CardView cashPatientsCardView; | |
private CardView insurancePatientsCardView; | |
private TextView cashPatientsSummary; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PatientsSeenViewModel extends ViewModel { | |
private static final String TAG = "PatientsSeenViewModel"; | |
private FiltersRepository filtersRepository; | |
private PatientSeenRepository patientSeenRepository; | |
private String mApiUrl; | |
private String mAuthToken; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PatientSeenRepository { | |
private static final String TAG = "PatientSeenRepository"; | |
private String url; | |
private String token; | |
private String requestHeader = "XMLHttpRequest"; | |
private static CollabmedClient mApiClient; | |
private MutableLiveData<PatientsSeenData> patientsSeenData = new MutableLiveData<>(); | |
private MutableLiveData<PatientSeenSummaryData> patientSeenSummaryData = new MutableLiveData<>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mambobryan.samba.data.remote | |
import androidx.paging.PagingSource | |
import androidx.paging.PagingState | |
import com.mambobryan.samba.data.model.Character | |
import com.mambobryan.samba.utils.Constants | |
import kotlinx.coroutines.delay | |
import retrofit2.HttpException | |
import timber.log.Timber | |
import java.io.IOException |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mambobryan.samba.data.repositories | |
import androidx.paging.ExperimentalPagingApi | |
import androidx.paging.Pager | |
import androidx.paging.PagingConfig | |
import androidx.paging.PagingData | |
import com.mambobryan.samba.data.local.AppDatabase | |
import com.mambobryan.samba.data.model.Character | |
import com.mambobryan.samba.data.remote.ApiService | |
import com.mambobryan.samba.data.remote.CharactersPagingSource |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mambobryan.samba.ui.characters | |
import androidx.lifecycle.ViewModel | |
import androidx.lifecycle.viewModelScope | |
import androidx.paging.cachedIn | |
import com.mambobryan.samba.data.repositories.CharactersRepository | |
import dagger.hilt.android.lifecycle.HiltViewModel | |
import javax.inject.Inject | |
@HiltViewModel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mambobryan.samba.ui.characters | |
import android.os.Bundle | |
import android.view.View | |
import androidx.core.view.isVisible | |
import androidx.fragment.app.Fragment | |
import androidx.fragment.app.activityViewModels | |
import androidx.lifecycle.lifecycleScope | |
import androidx.paging.LoadState | |
import com.mambobryan.samba.R |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mambobryan.samba.ui.adapters | |
import android.view.LayoutInflater | |
import android.view.ViewGroup | |
import androidx.paging.PagingDataAdapter | |
import androidx.recyclerview.widget.RecyclerView | |
import coil.load | |
import coil.size.Scale | |
import com.facebook.shimmer.Shimmer | |
import com.facebook.shimmer.ShimmerDrawable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mambobryan.samba.ui.adapters | |
import android.view.LayoutInflater | |
import android.view.ViewGroup | |
import androidx.core.view.isVisible | |
import androidx.paging.LoadState | |
import androidx.paging.LoadStateAdapter | |
import androidx.recyclerview.widget.RecyclerView | |
import com.mambobryan.samba.databinding.LayoutLoadStateBinding | |
import timber.log.Timber |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
var greeting = "Hello, playground" | |
func getvalue<T>(m: Double) -> T { | |
return m as! T | |
} |
OlderNewer