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
class ConversationHistoryExample { | |
PrismCore.getInstance().getConversationHistory( | |
CONVERSATION_ID, | |
ACCESS_TOKEN, | |
object : Callback<ConversationHistoryResponse> { | |
override fun onSuccess(response: ConversationHistoryResponse) { | |
// Handle success obtain conversation history | |
} | |
override fun onFailure(error: PrismCoreException) { |
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
/** | |
* Created by rakawm on 6/6/17. | |
*/ | |
class UiSettings { | |
var revision: Double? = null | |
var initialized: Boolean = false | |
var siteName: String? = null | |
var siteUrl: String? = null | |
var phone: String? = null | |
var installationComplete: Boolean? = null |
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
buildTypes { | |
release { | |
minifyEnabled true | |
consumerProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} |
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
public void useFunction1ExampleLibrary() { | |
ExampleLibrary.getInstance().showExampleLibraryScreen( | |
YourActivity.this, | |
otherParams | |
); | |
} | |
public void useFunction2ExampleLibrary() { | |
ExampleLibrary.getInstance().exitExampleLibraryScreen( | |
YourActivity.this, |
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
public class ExampleLibrary { | |
private ExampleLibrary(String title, String message) { | |
// Initialize your Library here | |
} | |
class Builder { | |
private String title; | |
private String message; | |
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
# | |
# Build configuration for Circle CI | |
# | |
general: | |
artifacts: | |
- /home/ubuntu/project-name/app/build/outputs/apk/ | |
machine: | |
environment: |
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
var express = require('express'); | |
var mysql = require('mysql'); | |
var app = express(); | |
/// | |
/// Create connection to MySQL database server. | |
/// | |
function getMySQLConnection() { | |
return mysql.createConnection({ |
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
public class ParsePushBroadcasReceiver extends ParsePushBroadcastReceiver{ | |
/** | |
* Provide resource identifier of the small icon for each | |
* push notification in the notification bar. | |
* @param context application context | |
* @param intent intent | |
* @return the icon resource id. | |
*/ | |
@Override |