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
apply plugin: 'com.android.application' | |
apply plugin: 'android-apt' | |
android { | |
compileSdkVersion versions.compileSdk | |
buildToolsVersion versions.buildTools | |
defaultConfig { | |
applicationId "samples.linhtruong.com.ui_reactive_rxjava_realm" | |
minSdkVersion versions.minSdk |
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 interface RetrofitService { | |
@POST("players") | |
Call<Profile> registerUser(@Body Registration registration); | |
} | |
public abstract class RetrofitCallback<T> | |
implements Callback<T> { | |
private static final String TAG = "RetrofitCallback"; | |
Retrofit retrofit; |
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
/* | |
In mathematics, the digit sum of a given integer is the sum of all its digits (e.g. | |
the digit sum of 84001 is calculated as 8+4+0+0+1 = 13). | |
Write a function that will get an integer and will return the digit sum for that integer. | |
*/ | |
fun main(args: Array<String>) { | |
sumOfDigits("84001"); | |
} |
OlderNewer