Files
tgstation-server/_chat_bots_client_8cs_source.html

161 lines
37 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>tgstation-server: src/Tgstation.Server.Client/Components/ChatBotsClient.cs Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">tgstation-server<span id="projectnumber">&#160;6.19.3</span>
</div>
<div id="projectbrief">The /tg/station 13 server suite</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_9826fb2d31585a830723e6d7089b5d0e.html">Tgstation.Server.Client</a></li><li class="navelem"><a class="el" href="dir_6c60df807dd2523776d391746c262b4d.html">Components</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">ChatBotsClient.cs</div></div>
</div><!--header-->
<div class="contents">
<a href="_chat_bots_client_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="keyword">using </span>System;</div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="keyword">using </span>System.Collections.Generic;</div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="keyword">using </span>System.Threading;</div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="keyword">using </span>System.Threading.Tasks;</div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api.html">Tgstation.Server.Api</a>;</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html">Tgstation.Server.Api.Models</a>;</div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_request.html">Tgstation.Server.Api.Models.Request</a>;</div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_response.html">Tgstation.Server.Api.Models.Response</a>;</div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span> </div>
<div class="foldopen" id="foldopen00011" data-start="{" data-end="}">
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="namespace_tgstation_1_1_server_1_1_client_1_1_components.html"> 11</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_client_1_1_components.html">Tgstation.Server.Client.Components</a></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span>{</div>
<div class="foldopen" id="foldopen00014" data-start="{" data-end="};">
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html"> 14</a></span> <span class="keyword">sealed</span> <span class="keyword">class </span><a class="code hl_class" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html">ChatBotsClient</a> : <a class="code hl_class" href="class_tgstation_1_1_server_1_1_client_1_1_paginated_client.html">PaginatedClient</a>, <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_client_1_1_components_1_1_i_chat_bots_client.html">IChatBotsClient</a></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> {</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#af082b31182c4ecdcbe3b9c0a81bf9ead"> 19</a></span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">readonly</a> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_instance.html">Instance</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#af082b31182c4ecdcbe3b9c0a81bf9ead">instance</a>;</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="foldopen" id="foldopen00026" data-start="{" data-end="}">
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a322c40d10b0b8b65802c71a899a555d9"> 26</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a322c40d10b0b8b65802c71a899a555d9">ChatBotsClient</a>(<a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_client_1_1_i_api_client.html">IApiClient</a> apiClient, <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_instance.html">Instance</a> <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#af082b31182c4ecdcbe3b9c0a81bf9ead">instance</a>)</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> : <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">base</a>(apiClient)</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> {</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">this.instance</a> = <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#af082b31182c4ecdcbe3b9c0a81bf9ead">instance</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">ArgumentNullException</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">nameof</a>(<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#af082b31182c4ecdcbe3b9c0a81bf9ead">instance</a>));</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> }</div>
</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a0a8a998b74a05f98ae559f148f02ec08"> 33</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">ValueTask&lt;ChatBotResponse&gt;</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#ac3d135d2d2b0dec64cdb811af146626b">Create</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_chat_bot_create_request.html">ChatBotCreateRequest</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">settings</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">CancellationToken</a> cancellationToken) =&gt; <a class="code hl_class" href="class_tgstation_1_1_server_1_1_client_1_1_api_client.html">ApiClient</a>.Create&lt;<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_chat_bot_create_request.html">ChatBotCreateRequest</a>, <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_chat_bot_response.html">ChatBotResponse</a>&gt;(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a6cf0d5e4d1f8ed76d2cf84a56392ed2d">Chat</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">settings</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">ArgumentNullException</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">nameof</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">settings</a>)), <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#af082b31182c4ecdcbe3b9c0a81bf9ead">instance</a>.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html#ae31e478e1d338b37a14565df6fd58570">Id</a>!.Value, cancellationToken);</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#aa82776074fc56bac1ae825df7331cc34"> 36</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">ValueTask</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#aa82776074fc56bac1ae825df7331cc34">Delete</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html">EntityId</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">settingsId</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">CancellationToken</a> cancellationToken) =&gt; <a class="code hl_class" href="class_tgstation_1_1_server_1_1_client_1_1_api_client.html">ApiClient</a>.<a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_api_client.html#a3db5ef824b0f9492d416bc1fdd8b1984">Delete</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_function" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a0266a146dbc57a7c6168533d7a7b10eb">SetID</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a6cf0d5e4d1f8ed76d2cf84a56392ed2d">Chat</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">settingsId</a>?.Id ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">ArgumentNullException</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">nameof</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">settingsId</a>))), <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#af082b31182c4ecdcbe3b9c0a81bf9ead">instance</a>.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html#ae31e478e1d338b37a14565df6fd58570">Id</a>!.Value, cancellationToken);</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d"> 39</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">ValueTask&lt;List&lt;ChatBotResponse&gt;</a>&gt; <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">List</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_client_1_1_pagination_settings.html">PaginationSettings</a>? <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">paginationSettings</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">CancellationToken</a> cancellationToken)</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> =&gt; <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">ReadPaged&lt;ChatBotResponse&gt;</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">paginationSettings</a>, <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_function" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a21a829d350fad918024f30fc9330a8e2">ListRoute</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a6cf0d5e4d1f8ed76d2cf84a56392ed2d">Chat</a>), <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#af082b31182c4ecdcbe3b9c0a81bf9ead">instance</a>.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html#ae31e478e1d338b37a14565df6fd58570">Id</a>!.Value, cancellationToken);</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a0a8a998b74a05f98ae559f148f02ec08"> 43</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">ValueTask&lt;ChatBotResponse&gt;</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a3f81b9f414f3df4db9969d646224835d">Update</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_chat_bot_update_request.html">ChatBotUpdateRequest</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">settings</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">CancellationToken</a> cancellationToken) =&gt; <a class="code hl_class" href="class_tgstation_1_1_server_1_1_client_1_1_api_client.html">ApiClient</a>.Update&lt;<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_chat_bot_update_request.html">ChatBotUpdateRequest</a>, <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_chat_bot_response.html">ChatBotResponse</a>&gt;(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a6cf0d5e4d1f8ed76d2cf84a56392ed2d">Chat</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">settings</a> ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">ArgumentNullException</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">nameof</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">settings</a>)), <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#af082b31182c4ecdcbe3b9c0a81bf9ead">instance</a>.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html#ae31e478e1d338b37a14565df6fd58570">Id</a>!.Value, cancellationToken);</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a17576d781175b623e626daa47dd35b3e"> 46</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">ValueTask&lt;ChatBotResponse&gt;</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a17576d781175b623e626daa47dd35b3e">GetId</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html">EntityId</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">settingsId</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">CancellationToken</a> cancellationToken) =&gt; <a class="code hl_class" href="class_tgstation_1_1_server_1_1_client_1_1_api_client.html">ApiClient</a>.Read&lt;<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_chat_bot_response.html">ChatBotResponse</a>&gt;(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_function" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a0266a146dbc57a7c6168533d7a7b10eb">SetID</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Routes</a>.<a class="code hl_variable" href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a6cf0d5e4d1f8ed76d2cf84a56392ed2d">Chat</a>, <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">settingsId</a>?.Id ?? <span class="keywordflow">throw</span> <span class="keyword">new</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">ArgumentNullException</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">nameof</a>(<a class="code hl_function" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">settingsId</a>))), <a class="code hl_variable" href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#af082b31182c4ecdcbe3b9c0a81bf9ead">instance</a>.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html#ae31e478e1d338b37a14565df6fd58570">Id</a>!.Value, cancellationToken);</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> }</div>
</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span>}</div>
</div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html">Tgstation.Server.Api.Models.EntityId</a></div><div class="ttdoc">Common base of entities with IDs.</div><div class="ttdef"><b>Definition</b> <a href="_entity_id_8cs_source.html#l00006">EntityId.cs:7</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id_html_ae31e478e1d338b37a14565df6fd58570"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_entity_id.html#ae31e478e1d338b37a14565df6fd58570">Tgstation.Server.Api.Models.EntityId.Id</a></div><div class="ttdeci">virtual ? long Id</div><div class="ttdoc">The ID of the entity.</div><div class="ttdef"><b>Definition</b> <a href="_entity_id_8cs_source.html#l00014">EntityId.cs:14</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_instance_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_instance.html">Tgstation.Server.Api.Models.Instance</a></div><div class="ttdoc">Metadata about a server instance.</div><div class="ttdef"><b>Definition</b> <a href="_tgstation_8_server_8_api_2_models_2_instance_8cs_source.html#l00008">Instance.cs:9</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_chat_bot_create_request_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_chat_bot_create_request.html">Tgstation.Server.Api.Models.Request.ChatBotCreateRequest</a></div><div class="ttdoc">Represents a request to update a chat bot.</div><div class="ttdef"><b>Definition</b> <a href="_chat_bot_create_request_8cs_source.html#l00008">ChatBotCreateRequest.cs:9</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_chat_bot_update_request_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_1_1_chat_bot_update_request.html">Tgstation.Server.Api.Models.Request.ChatBotUpdateRequest</a></div><div class="ttdoc">Represents a request to update a chat bot.</div><div class="ttdef"><b>Definition</b> <a href="_chat_bot_update_request_8cs_source.html#l00008">ChatBotUpdateRequest.cs:9</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_chat_bot_response_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_chat_bot_response.html">Tgstation.Server.Api.Models.Response.ChatBotResponse</a></div><div class="ttdoc">Represents a chat bot response.</div><div class="ttdef"><b>Definition</b> <a href="_chat_bot_response_8cs_source.html#l00008">ChatBotResponse.cs:9</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html">Tgstation.Server.Api.Routes</a></div><div class="ttdoc">Routes to a server actions.</div><div class="ttdef"><b>Definition</b> <a href="_routes_8cs_source.html#l00008">Routes.cs:9</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html_a0266a146dbc57a7c6168533d7a7b10eb"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a0266a146dbc57a7c6168533d7a7b10eb">Tgstation.Server.Api.Routes.SetID</a></div><div class="ttdeci">static string SetID(string route, long id)</div><div class="ttdoc">Apply an id postfix to a route .</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html_a21a829d350fad918024f30fc9330a8e2"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a21a829d350fad918024f30fc9330a8e2">Tgstation.Server.Api.Routes.ListRoute</a></div><div class="ttdeci">static string ListRoute(string route)</div><div class="ttdoc">Get the /List postfix for a route .</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_routes_html_a6cf0d5e4d1f8ed76d2cf84a56392ed2d"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_routes.html#a6cf0d5e4d1f8ed76d2cf84a56392ed2d">Tgstation.Server.Api.Routes.Chat</a></div><div class="ttdeci">const string Chat</div><div class="ttdoc">The chat bot controller.</div><div class="ttdef"><b>Definition</b> <a href="_routes_8cs_source.html#l00093">Routes.cs:93</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_client_1_1_api_client_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_client_1_1_api_client.html">Tgstation.Server.Client.ApiClient</a></div><div class="ttdef"><b>Definition</b> <a href="_api_client_8cs_source.html#l00034">ApiClient.cs:35</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_client_1_1_api_client_html_a3db5ef824b0f9492d416bc1fdd8b1984"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_client_1_1_api_client.html#a3db5ef824b0f9492d416bc1fdd8b1984">Tgstation.Server.Client.ApiClient.Delete</a></div><div class="ttdeci">ValueTask Delete(string route, CancellationToken cancellationToken)</div><div class="ttdoc">Run an HTTP DELETE request.A ValueTask representing the running operation.</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html">Tgstation.Server.Client.Components.ChatBotsClient</a></div><div class="ttdef"><b>Definition</b> <a href="_chat_bots_client_8cs_source.html#l00014">ChatBotsClient.cs:15</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client_html_a17576d781175b623e626daa47dd35b3e"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a17576d781175b623e626daa47dd35b3e">Tgstation.Server.Client.Components.ChatBotsClient.GetId</a></div><div class="ttdeci">ValueTask&lt; ChatBotResponse &gt; GetId(EntityId settingsId, CancellationToken cancellationToken)</div><div class="ttdoc">Get a specific chat bot's settings.A ValueTask&lt;TResult&gt; resulting in the ChatBotResponse.</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client_html_a322c40d10b0b8b65802c71a899a555d9"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a322c40d10b0b8b65802c71a899a555d9">Tgstation.Server.Client.Components.ChatBotsClient.ChatBotsClient</a></div><div class="ttdeci">ChatBotsClient(IApiClient apiClient, Instance instance)</div><div class="ttdoc">Initializes a new instance of the ChatBotsClient class.</div><div class="ttdef"><b>Definition</b> <a href="_chat_bots_client_8cs_source.html#l00026">ChatBotsClient.cs:26</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client_html_a3f81b9f414f3df4db9969d646224835d"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a3f81b9f414f3df4db9969d646224835d">Tgstation.Server.Client.Components.ChatBotsClient.Update</a></div><div class="ttdeci">ValueTask&lt; ChatBotResponse &gt; Update(ChatBotUpdateRequest settings, CancellationToken cancellationToken)</div><div class="ttdoc">Updates a chat bot's setttings.A ValueTask&lt;TResult&gt; resulting in the updated chat bot's ChatBotRespon...</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client_html_a4a8fed90ab23a9b038edbfea5584a21d"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#a4a8fed90ab23a9b038edbfea5584a21d">Tgstation.Server.Client.Components.ChatBotsClient.List</a></div><div class="ttdeci">ValueTask&lt; List&lt; ChatBotResponse &gt; &gt; List(PaginationSettings? paginationSettings, CancellationToken cancellationToken)</div><div class="ttdoc">List the chat bots.A ValueTask&lt;TResult&gt; resulting in a List&lt;T&gt; of the ChatBotResponses.</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client_html_aa82776074fc56bac1ae825df7331cc34"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#aa82776074fc56bac1ae825df7331cc34">Tgstation.Server.Client.Components.ChatBotsClient.Delete</a></div><div class="ttdeci">ValueTask Delete(EntityId settingsId, CancellationToken cancellationToken)</div><div class="ttdoc">Delete a chat bot.A ValueTask representing the running operation.</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client_html_ac3d135d2d2b0dec64cdb811af146626b"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#ac3d135d2d2b0dec64cdb811af146626b">Tgstation.Server.Client.Components.ChatBotsClient.Create</a></div><div class="ttdeci">ValueTask&lt; ChatBotResponse &gt; Create(ChatBotCreateRequest settings, CancellationToken cancellationToken)</div><div class="ttdoc">Create a chat bot.A ValueTask&lt;TResult&gt; resulting in the ChatBotResponse of the newly created chat bot...</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client_html_af082b31182c4ecdcbe3b9c0a81bf9ead"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_client_1_1_components_1_1_chat_bots_client.html#af082b31182c4ecdcbe3b9c0a81bf9ead">Tgstation.Server.Client.Components.ChatBotsClient.instance</a></div><div class="ttdeci">readonly Instance instance</div><div class="ttdoc">The Instance for the ChatBotsClient.</div><div class="ttdef"><b>Definition</b> <a href="_chat_bots_client_8cs_source.html#l00019">ChatBotsClient.cs:19</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_client_1_1_paginated_client_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_client_1_1_paginated_client.html">Tgstation.Server.Client.PaginatedClient</a></div><div class="ttdoc">Client that deals with getting paginated results.</div><div class="ttdef"><b>Definition</b> <a href="_paginated_client_8cs_source.html#l00016">PaginatedClient.cs:17</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_client_1_1_pagination_settings_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_client_1_1_pagination_settings.html">Tgstation.Server.Client.PaginationSettings</a></div><div class="ttdoc">Settings for a paginated request.</div><div class="ttdef"><b>Definition</b> <a href="_pagination_settings_8cs_source.html#l00006">PaginationSettings.cs:7</a></div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_client_1_1_components_1_1_i_chat_bots_client_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_client_1_1_components_1_1_i_chat_bots_client.html">Tgstation.Server.Client.Components.IChatBotsClient</a></div><div class="ttdoc">For managing the chat bots.</div><div class="ttdef"><b>Definition</b> <a href="_i_chat_bots_client_8cs_source.html#l00014">IChatBotsClient.cs:15</a></div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_client_1_1_i_api_client_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_client_1_1_i_api_client.html">Tgstation.Server.Client.IApiClient</a></div><div class="ttdoc">Web interface for the API.</div><div class="ttdef"><b>Definition</b> <a href="_i_api_client_8cs_source.html#l00016">IApiClient.cs:17</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_request_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_request.html">Tgstation.Server.Api.Models.Request</a></div><div class="ttdef"><b>Definition</b> <a href="_chat_bot_create_request_8cs_source.html#l00003">ChatBotCreateRequest.cs:4</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models_1_1_response.html">Tgstation.Server.Api.Models.Response</a></div><div class="ttdef"><b>Definition</b> <a href="_administration_response_8cs_source.html#l00005">AdministrationResponse.cs:6</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_1_1_models_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api_1_1_models.html">Tgstation.Server.Api.Models</a></div><div class="ttdef"><b>Definition</b> <a href="_tgstation_8_server_8_api_2_models_2_chat_channel_8cs_source.html#l00005">ChatChannel.cs:6</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_api_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_api.html">Tgstation.Server.Api</a></div><div class="ttdef"><b>Definition</b> <a href="_api_headers_8cs_source.html#l00019">ApiHeaders.cs:20</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_client_1_1_components_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_client_1_1_components.html">Tgstation.Server.Client.Components</a></div><div class="ttdef"><b>Definition</b> <a href="_chat_bots_client_8cs_source.html#l00011">ChatBotsClient.cs:12</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>