Skip to content

Instantly share code, notes, and snippets.

View coyarzun89's full-sized avatar

Cristopher Oyarzún coyarzun89

  • Cornershop
  • Santiago, Chile
View GitHub Profile
coyarzun89 / ChatDataSource.kt
Last active August 19, 2019 15:28
First Draft...
interface ChatDataSource {
// in Android we need to pass the context to the SDK
fun connectToChat(context: Context, authHeader: String,
role: String, userId: String, endpoint: String,
listener: OnGlobalListener)
fun subscribeToRoom(roomId: String, listener: OnRoomListener)
fun sendMessageToRoom(roomId: String, multipartMessage: List<NewPart>, listener: OnCompleteListener)

Customer App Translations

File structure

Please make sure that you add the strings to the right file.

  • customer-app.twine: Strings for Customer Apps (Android, iOS and Web)

How does it works?

<?xml version="1.0" encoding="utf-8"?>
<FetchedDate>2016-07-12 05:52:14</FetchedDate>
<?xml version="1.0" encoding="utf-8"?>
<FetchedDate>2016-07-12 05:49:32</FetchedDate>
<Error>Nullable object must have a value.</Error>
public class NotificationAPI {
private static NotificationService service;
public static void init() {
OkHttpClient okHttpClient = new OkHttpClient.Builder()
.addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY))