Please make sure that you add the strings to the right file.
- customer-app.twine: Strings for Customer Apps (Android, iOS and Web)
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) |
<?xml version="1.0" encoding="utf-8"?> | |
<HattrickData> | |
<FileName>live.xml</FileName> | |
<Version>1.8</Version> | |
<UserID>12429002</UserID> | |
<FetchedDate>2016-07-12 05:52:14</FetchedDate> | |
<MatchList> | |
<Match> | |
<SourceSystem>Hattrick</SourceSystem> | |
<MatchID>582684953</MatchID> |
<?xml version="1.0" encoding="utf-8"?> | |
<HattrickData> | |
<FileName>chpperror.xml</FileName> | |
<Version>1.1</Version> | |
<UserID>12429002</UserID> | |
<FetchedDate>2016-07-12 05:49:32</FetchedDate> | |
<Error>Nullable object must have a value.</Error> | |
<ErrorCode>58392548</ErrorCode> | |
<ErrorGUID>b6d37639-908f-4221-9caf-5c7bb51f0288</ErrorGUID> | |
<Server>chpp93.hattrick.org</Server> |
public class NotificationAPI { | |
private static NotificationService service; | |
public static void init() { | |
OkHttpClient okHttpClient = new OkHttpClient.Builder() | |
.addInterceptor(new HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY)) | |
.build(); |