Managing teams and conversations
The SDK provides access to teams and conversations through the WireApplicationManager, available after initializing the WireAppSDK
- Kotlin
- Java
- Typescript
val applicationManager = wireAppSdk.getApplicationManager()
// Get all teams the application has been invited to
val teams = applicationManager.getTeams()
teams.forEach { teamId ->
println("Team: $teamId")
}
// Get all conversations the application has access to
val conversations = applicationManager.getConversations()
conversations.forEach { conversation ->
println("Conversation: ${conversation.id} in team: ${conversation.teamId}")
}
ApplicationManager applicationManager = wireAppSdk.getApplicationManager();
// Get all teams the application has been invited to
List<String> teams = applicationManager.getTeams();
for (String teamId : teams) {
System.out.println("Team: " + teamId);
}
// Get all conversations the application has access to
List<Conversation> conversations = applicationManager.getConversations();
for (Conversation conversation : conversations) {
System.out.println("Conversation: " + conversation.getId() + " in team: " + conversation.getTeamId());
}
const applicationManager = wireAppSdk.getApplicationManager()
// Get all conversations the application has access to
const conversations = await applicationManager.getAllConversations()
conversations.forEach((conversation: Conversation) => {
console.log(`Conversation: ${conversation.id} in team: ${conversation.teamId}`)
})