API reference

PubSubSettings Struct

All data required for publishing and subscribing to a specific web socket topic. This includes publish and subscription specific options.

Constructors

PubSubSettings ( pubSubTopicId )
Default empty constructor
Signature
Meta.Voice.Net.PubSub.PubSubSettings.PubSubSettings(string pubSubTopicId="")
Parameters
pubSubTopicId: string

Fields

PublishOptions : PubSubResponseOptions
Signature
PubSubResponseOptions Meta.Voice.Net.PubSub.PubSubSettings.PublishOptions
PubSubTopicId : string
Signature
string Meta.Voice.Net.PubSub.PubSubSettings.PubSubTopicId
SubscribeOptions : PubSubResponseOptions
Signature
PubSubResponseOptions Meta.Voice.Net.PubSub.PubSubSettings.SubscribeOptions

Methods

Equals ( other )
Defined equal check for pubsub settings
Signature
bool Meta.Voice.Net.PubSub.PubSubSettings.Equals(PubSubSettings other)
Parameters
Returns
bool
GetPublishTopics ( topics )
Gets all keys and topic ids for publishing
Signature
void Meta.Voice.Net.PubSub.PubSubSettings.GetPublishTopics(Dictionary< string, string > topics)
Parameters
topics: Dictionary< string, string >
Returns
void
GetPublishTopics ()
Signature
Dictionary<string, string> Meta.Voice.Net.PubSub.PubSubSettings.GetPublishTopics()
Returns
Dictionary< string, string >
GetSubscribeTopics ( topics )
Gets all keys and topic ids for subscription
Signature
void Meta.Voice.Net.PubSub.PubSubSettings.GetSubscribeTopics(Dictionary< string, string > topics)
Parameters
topics: Dictionary< string, string >
Returns
void
GetSubscribeTopics ()
Signature
Dictionary<string, string> Meta.Voice.Net.PubSub.PubSubSettings.GetSubscribeTopics()
Returns
Dictionary< string, string >
IsSubscribedTopicId ( topicId )
Whether the specified topic is a topic generated using the specified topic id and selected subscription options.
Signature
bool Meta.Voice.Net.PubSub.PubSubSettings.IsSubscribedTopicId(string topicId)
Parameters
topicId: string
Returns
bool

Static Methods

GetTopics ( topics , topicId , options )
Get key and topic ids depending on response options
Signature
static void Meta.Voice.Net.PubSub.PubSubSettings.GetTopics(Dictionary< string, string > topics, string topicId, PubSubResponseOptions options)
Parameters
topics: Dictionary< string, string >
topicId: string
Returns
void
GetTopics ( topicId , options )
Signature
static Dictionary<string, string> Meta.Voice.Net.PubSub.PubSubSettings.GetTopics(string topicId, PubSubResponseOptions options)
Parameters
topicId: string
Returns
Dictionary< string, string >