public void SetActiveClient() { SetActiveClientRequest request = new SetActiveClientRequest() { request_header = RequestHeaderBody, full_jid = string.Format("{0}/{1}", _email, _client_id), is_active = true, timeout_secs = 120 }; HttpResponseMessage message = _client.PostProtoJson(_api_key, "clients/setactiveclient", request); }
public async Task SetActiveClientAsync(bool active = true) { SetActiveClientRequest request = new SetActiveClientRequest() { request_header = RequestHeaderBody, full_jid = string.Format("{0}/{1}", _email, _client_id), is_active = active, timeout_secs = 120, unknown = true }; HttpResponseMessage message = await _client.PostProtoJson("clients/setactiveclient", _api_key, request); message.Dispose(); }
public void SetActiveClient(bool active = true) { SetActiveClientRequest request = new SetActiveClientRequest() { request_header = RequestHeaderBody, full_jid = string.Format("{0}/{1}", CurrentUser.Email, _client_id), is_active = active, timeout_secs = 120, unknown = true }; HttpResponseMessage message = _client.PostProtoJson("clients/setactiveclient", request); message.Dispose(); }