Exemple #1
0
 public static string GetClientConfigUpdateSubscription(GraphQLSubBaseOptions options = null)
 {
     if (options == null)
     {
         options = new GraphQLSubBaseOptions();
     }
     return(FormatSubscriptionString(GraphQLSub.QueryIds["ClientConfigUpdate"],
                                     new Dictionary <string, string>
     {
         { "client_subscription_id", options.SubscriptionId ?? Guid.NewGuid().ToString() },
     }, options.ClientLogged));
 }
Exemple #2
0
 public static string GetZeroProvisionSubscription(string deviceId, GraphQLSubBaseOptions options = null)
 {
     if (options == null)
     {
         options = new GraphQLSubBaseOptions();
     }
     return(FormatSubscriptionString(GraphQLSub.QueryIds["ZeroProvision"],
                                     new Dictionary <string, string>
     {
         { "client_subscription_id", options.SubscriptionId ?? Guid.NewGuid().ToString() },
         { "device_id", deviceId },
     }, options.ClientLogged));
 }
Exemple #3
0
 public static string GetAsyncAdSubscription(string userId, GraphQLSubBaseOptions options = null)
 {
     if (options == null)
     {
         options = new GraphQLSubBaseOptions();
     }
     return(FormatSubscriptionString(GraphQLSub.QueryIds["AsyncAdSub"],
                                     new Dictionary <string, string>
     {
         { "client_subscription_id", options.SubscriptionId ?? Guid.NewGuid().ToString() },
         { "user_id", userId }
     }, options.ClientLogged));
 }
Exemple #4
0
 public static string GetVideoCallPrototypePublishSubscription(string videoCallId, GraphQLSubBaseOptions options = null)
 {
     if (options == null)
     {
         options = new GraphQLSubBaseOptions();
     }
     return(FormatSubscriptionString(GraphQLSub.QueryIds["VideoCallPrototypePublish"],
                                     new Dictionary <string, string>
     {
         { "client_subscription_id", options.SubscriptionId ?? Guid.NewGuid().ToString() },
         { "video_call_id", videoCallId },
     }, options.ClientLogged));
 }
Exemple #5
0
 public static string GetReactNativeOTAUpdateSubscription(string buildNumber, GraphQLSubBaseOptions options = null)
 {
     if (options == null)
     {
         options = new GraphQLSubBaseOptions();
     }
     return(FormatSubscriptionString(GraphQLSub.QueryIds["ReactNativeOTA"],
                                     new Dictionary <string, string>
     {
         { "client_subscription_id", options.SubscriptionId ?? Guid.NewGuid().ToString() },
         { "build_number", buildNumber },
     }, options.ClientLogged));
 }
Exemple #6
0
 public static string GetMediaFeedbackSubscription(string feedbackId, GraphQLSubBaseOptions options = null)
 {
     if (options == null)
     {
         options = new GraphQLSubBaseOptions();
     }
     return(FormatSubscriptionString(GraphQLSub.QueryIds["MediaFeedback"],
                                     new Dictionary <string, string>
     {
         { "client_subscription_id", options.SubscriptionId ?? Guid.NewGuid().ToString() },
         { "feedback_id", feedbackId },
     }, options.ClientLogged));
 }
Exemple #7
0
 public static string GetLiveTypingIndicatorSubscription(string broadcastId, GraphQLSubBaseOptions options = null)
 {
     if (options == null)
     {
         options = new GraphQLSubBaseOptions();
     }
     return(FormatSubscriptionString(GraphQLSub.QueryIds["LiveTypingIndicator"],
                                     new Dictionary <string, string>
     {
         { "client_subscription_id", options.SubscriptionId ?? Guid.NewGuid().ToString() },
         { "broadcast_id", broadcastId },
     }, options.ClientLogged));
 }
Exemple #8
0
 public static string GetInteractivityRealtimeQuestionSubmissionsStatusSubscription(string broadcastId, GraphQLSubBaseOptions options = null)
 {
     if (options == null)
     {
         options = new GraphQLSubBaseOptions();
     }
     return(FormatSubscriptionString(GraphQLSub.QueryIds["InteractivityRealtimeQuestionSubmissionsStatus"],
                                     new Dictionary <string, string>
     {
         { "client_subscription_id", options.SubscriptionId ?? Guid.NewGuid().ToString() },
         { "broadcast_id", broadcastId },
     }, options.ClientLogged));
 }