Exemple #1
0
        public void SetFocus(string conversationId)
        {
            if (conversationId.Length == 0)
                return;

            SetFocusRequest request = new SetFocusRequest()
            {
                request_header = RequestHeaderBody,
                conversation_id = new ConversationId() { id = conversationId },
                type = FocusType.FOCUS_TYPE_FOCUSED,
                timeout_secs = 20
            };
                        
            HttpResponseMessage message = _client.PostProtoJson(_api_key, "conversations/setfocus", request);            
        }
Exemple #2
0
        public async Task SetFocusAsync(string conversationId)
        {
            if (conversationId.Length == 0)
                return;

            SetFocusRequest request = new SetFocusRequest()
            {
                request_header = RequestHeaderBody,
                conversation_id = new ConversationId() { id = conversationId },
                type = FocusType.FOCUS_TYPE_FOCUSED,
                timeout_secs = 20
            };

            HttpResponseMessage message = await _client.PostProtoJson("conversations/setfocus", _api_key, request);
            message.Dispose();
        }