Skip to content

API docs #8

@TMichaelan

Description

@TMichaelan
        // Пример вызова функции getExerciseListByTarget
        lifecycleScope.launch {
            
            val ex = getExerciseListByTarget("abs")
            if (ex != null) {
                
                for (e in ex) {
                    Log.d("HomeFragment", e.name + " " + e.target + " " + e.bodyPart + " " + e.gifUrl + " " + e.id)
                }
            }
        }
        
        // Пример вызова функции getExerciseById
        lifecycleScope.launch {
            val e = getExerciseById("0007")
            if (e != null) {
                Log.d("HomeFragment", e.name + " " + e.target + " " + e.bodyPart + " " + e.gifUrl + " " + e.id)
            }
        }
        
         // Пример вызова функции getExerciseListByName
        lifecycleScope.launch {
            val ex = getExerciseListByName("alternate")
            
                for (e in ex) {
                Log.d("HomeFragment", e.name + " " + e.target + " " + e.bodyPart + " " + e.gifUrl + " " + e.id)
                }
        }
        
        // Пример вызова функции getBodyPartExercises
        lifecycleScope.launch {
            val ex = getBodyPartExercises("back")
                for (e in ex) {
                Log.d("HomeFragment", e.name + " " + e.target + " " + e.bodyPart + " " + e.gifUrl + " " + e.id)
                }
        }
        
        
        

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions