Last active
August 20, 2020 10:08
-
-
Save mustafayigitt/cf808d9b2de346bcc108e2856ef5c459 to your computer and use it in GitHub Desktop.
get mock data
This file contains 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.mustafayigit.recyclerviewexample.mockData | |
import com.mustafayigit.recyclerviewexample.model.ProfileData | |
/** | |
* Created By MUSTAFA | |
* on 26/03/2020 | |
*/ | |
object MockList { | |
fun getMockData(): List<ProfileData> { | |
val profileData = ProfileData( | |
"https://cdn.webtekno.com/media/cache/content_detail_v2/article/29121/android-kotlin-1495097437.jpg", | |
"User Full Name", | |
"User Department" | |
) | |
val profileDataList: ArrayList<ProfileData> = ArrayList() | |
repeat(20){ | |
profileDataList.add(profileData) | |
} | |
return profileDataList | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment