addContactToNetwork

abstract suspend fun addContactToNetwork(contact: IRainbowContact): RainbowResult<Invitation>

Invites a contact to join the user's network.

This API sends an invitation to the specified contact to join the user's Rainbow network. If an invitation for the contact already exists, it will be resent. Once the contact accepts the invitation, both users will be part of each other's network, allowing them to mutually share their availability status.

Return

A RainbowResult containing the Invitation on success. In case of failure, the RainbowResult will contain error details.

Parameters

contact

The IRainbowContact to invite to the user's network.