SendingNetwork
  • OVERVIEW
    • Getting Started
    • FAQs
  • Network Instructional Articles
    • Basics
      • Introducing the Edge, WatchDog, and Guardian Nodes
      • Overview
      • Messaging Solution
      • Privacy Solution
      • Rich Communication Solution
      • Multi-Platform Solution
      • Decentralized Identity
      • Multiple Chat Modes
      • How It Works
      • Token Utility
      • The Team
    • Key Concepts
      • Decentralized Identity
      • Social Graphs
      • Edge Node
  • SDK Documentation
    • Glossary
    • JavaScript client SDK
      • DID
      • User
      • Message
      • Room
      • Contact
      • Social Graph
    • iOS client SDK
      • Push
      • DID
      • User
      • Message
      • Room
      • Contact
    • Android client SDK
      • User
      • Room
    • Java SDK
      • DID
      • Room
      • Message
    • Node.js SDK
      • DID
      • Room
      • Message
    • Unreal SDK
      • DID
      • User
      • Message
      • Room
    • Unity SDK
      • DID
      • Room
      • Message
    • Website chat widget SDK
      • Customization
      • DID
      • User
      • Room
      • Message
      • Other
    • Bot SDKs
      • Golang Bot SDK
        • DID
        • User
        • Room
        • Message
    • Extensible Message Interface
    • Push Notifications
    • Flutter SDK
      • DID
      • User
      • Message
      • Room
    • PHP SDK
      • DID
      • Room
      • User
    • Developer Key
  • Acquisition Kit
    • Social Boost Development Instructions
  • WatchDog Agent
    • WatchDog Agent Guide
    • WatchDog Agent Deployment Tutorial
      • Linux Deployment Tutorial
    • One-Click Deployment
  • Edge Node
    • Edge Node Deployment Tutorial
    • VPS Setup Guide
      • Google Cloud Platform (GCP)
      • Amazon Web Services (AWS)
      • Contabo
    • Check Node Stats with Auto-Reply Bot in SendingMe App
    • Alpha-3 Testnet FAQs
  • delegation node
    • Delegation Node Deployment Tutorial
  • Private Delegation Node
  • Use Cases
    • Wallet-to-Wallet Messaging
    • Dapp Notifications
    • Identity Verification
    • Gamer Acquisition
    • Cross-platform Trading
Powered by GitBook
On this page
  • Create Room
  • Invite User
  • Kick User
  • Join Room
  • Leave Room
  • Get Room Memebers
  1. SDK Documentation
  2. Java SDK

Room

Create Room

public String createRoom(String name, String topic, List<String> invitations)

Parameters:

Name
Type
Description
Required

name

string

room name

true

topic

string

room topic

false

invitations

string array

array of user ids to invite

false

Returns:

Name
Type
Description
Required

roomId

string

id of the new room

true

Invite User

public void inviteUser(String roomId, String userId, String reason)

Parameters:

Name
Type
Description
Required

roomId

string

room id

true

userId

string

user id

true

reason

string

invite reason

false

Returns: none

Kick User

public void kickUser(String roomId, String userId, String reason)

Parameters:

Name
Type
Description
Required

roomId

string

room id

true

userId

string

user id

true

reason

string

invite reason

false

Returns: none

Join Room

public void joinRoom(String roomID)

Parameters:

Name
Type
Description
Required

roomId

string

room id

true

Returns: none

Leave Room

public void leaveRoom(String roomID)

Parameters:

Name
Type
Description
Required

roomId

string

room id

true

Returns: none

Get Room Memebers

public List<Member> getRoomMembers(String roomID)

Parameters:

Name
Type
Description
Required

roomId

string

room id

true

Returns:

Name
Type
Description
Required

Member.id

string

member user id

true

Member.display_name

string

member display name

true

Member.avatar_url

string

member avatar url

true

PreviousDIDNextMessage

Last updated 1 year ago