Files
tgstation-server/_models_2_updated_user_8cs_source.html

146 lines
17 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.Host/Models/UpdatedUser.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_34761767c1c3cd212f9d2f80ea0828a8.html">Tgstation.Server.Host</a></li><li class="navelem"><a class="el" href="dir_c2c4d4ee47e55233c6ea5db8b96422c6.html">Models</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">UpdatedUser.cs</div></div>
</div><!--header-->
<div class="contents">
<a href="_models_2_updated_user_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> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</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="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="keyword">using </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_models_1_1_transformers.html">Tgstation.Server.Host.Models.Transformers</a>;</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">namespace </span><a class="code hl_namespace" href="namespace_tgstation_1_1_server_1_1_host_1_1_models.html">Tgstation.Server.Host.Models</a></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</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="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html"> 11</a></span> <span class="keyword">public</span> <span class="keyword">sealed</span> <span class="keyword">class </span><a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html">UpdatedUser</a> :</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_models_1_1_i_legacy_api_transformable.html">ILegacyApiTransformable</a>&lt;UserResponse&gt;,</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> <a class="code hl_interface" href="interface_tgstation_1_1_server_1_1_host_1_1_models_1_1_i_api_transformable.html">IApiTransformable</a>&lt;UpdatedUser, GraphQL.Types.UpdatedUser, UpdatedUserGraphQLTransformer&gt;</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> {</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a6302c699b2c222cc669e9f4de4c770d1"> 18</a></span> <span class="keyword">public</span> <span class="keywordtype">long</span> <a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a6302c699b2c222cc669e9f4de4c770d1">Id</a> { <span class="keyword">get</span>; }</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a002f0bb82383999be8e2648eb7e4c76f"> 23</a></span> <span class="keyword">public</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_user.html">User</a>? <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_user.html">User</a> { <span class="keyword">get</span>; }</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span> </div>
<div class="foldopen" id="foldopen00029" data-start="{" data-end="}">
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a4a2bc74a165b140df9102c83fc054d21"> 29</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a4a2bc74a165b140df9102c83fc054d21">UpdatedUser</a>(<a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_user.html">User</a> user)</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> : this((user ?? throw new ArgumentNullException(nameof(user))).Require(u =&gt; u.<a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a6302c699b2c222cc669e9f4de4c770d1">Id</a>))</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> {</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_user.html">User</a> = user;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> }</div>
</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="foldopen" id="foldopen00039" data-start="{" data-end="}">
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a63220ef4d05f51d9f93d47d669d25c92"> 39</a></span> <span class="keyword">public</span> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a63220ef4d05f51d9f93d47d669d25c92">UpdatedUser</a>(<span class="keywordtype">long</span> <span class="keywordtype">id</span>)</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> {</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a6302c699b2c222cc669e9f4de4c770d1">Id</a> = id;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> }</div>
</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div>
<div class="foldopen" id="foldopen00045" data-start="{" data-end="}">
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#ad9f500042c59d90e576dcfa38e91bdd4"> 45</a></span> <span class="keyword">public</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_user_response.html">UserResponse</a> <a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#ad9f500042c59d90e576dcfa38e91bdd4">ToApi</a>()</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> =&gt; <a class="code hl_class" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_user.html">User</a>?.<a class="code hl_function" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_user.html#ae966a7ee34ef9b33c28f1d8ac6c631ef">ToApi</a>() ?? <span class="keyword">new</span> <a class="code hl_class" href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_user_response.html">UserResponse</a></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> {</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a6302c699b2c222cc669e9f4de4c770d1">Id</a> = <a class="code hl_property" href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a6302c699b2c222cc669e9f4de4c770d1">Id</a>,</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> };</div>
</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> }</div>
</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span>}</div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_user_response_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_api_1_1_models_1_1_response_1_1_user_response.html">Tgstation.Server.Api.Models.Response.UserResponse</a></div><div class="ttdef"><b>Definition</b> <a href="_user_response_8cs_source.html#l00008">UserResponse.cs:9</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html">Tgstation.Server.Host.Models.UpdatedUser</a></div><div class="ttdoc">Represents a User that has been updated.</div><div class="ttdef"><b>Definition</b> <a href="_models_2_updated_user_8cs_source.html#l00011">UpdatedUser.cs:14</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user_html_a4a2bc74a165b140df9102c83fc054d21"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a4a2bc74a165b140df9102c83fc054d21">Tgstation.Server.Host.Models.UpdatedUser.UpdatedUser</a></div><div class="ttdeci">UpdatedUser(User user)</div><div class="ttdoc">Initializes a new instance of the UpdatedUser class.</div><div class="ttdef"><b>Definition</b> <a href="_models_2_updated_user_8cs_source.html#l00029">UpdatedUser.cs:29</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user_html_a6302c699b2c222cc669e9f4de4c770d1"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a6302c699b2c222cc669e9f4de4c770d1">Tgstation.Server.Host.Models.UpdatedUser.Id</a></div><div class="ttdeci">long Id</div><div class="ttdoc">The User's Api.Models.EntityId.Id.</div><div class="ttdef"><b>Definition</b> <a href="_models_2_updated_user_8cs_source.html#l00018">UpdatedUser.cs:18</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user_html_a63220ef4d05f51d9f93d47d669d25c92"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#a63220ef4d05f51d9f93d47d669d25c92">Tgstation.Server.Host.Models.UpdatedUser.UpdatedUser</a></div><div class="ttdeci">UpdatedUser(long id)</div><div class="ttdoc">Initializes a new instance of the UpdatedUser class.</div><div class="ttdef"><b>Definition</b> <a href="_models_2_updated_user_8cs_source.html#l00039">UpdatedUser.cs:39</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user_html_ad9f500042c59d90e576dcfa38e91bdd4"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_updated_user.html#ad9f500042c59d90e576dcfa38e91bdd4">Tgstation.Server.Host.Models.UpdatedUser.ToApi</a></div><div class="ttdeci">UserResponse ToApi()</div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_user_html"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_user.html">Tgstation.Server.Host.Models.User</a></div><div class="ttdef"><b>Definition</b> <a href="_models_2_user_8cs_source.html#l00013">User.cs:17</a></div></div>
<div class="ttc" id="aclass_tgstation_1_1_server_1_1_host_1_1_models_1_1_user_html_ae966a7ee34ef9b33c28f1d8ac6c631ef"><div class="ttname"><a href="class_tgstation_1_1_server_1_1_host_1_1_models_1_1_user.html#ae966a7ee34ef9b33c28f1d8ac6c631ef">Tgstation.Server.Host.Models.User.ToApi</a></div><div class="ttdeci">UserResponse ToApi()</div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_models_1_1_i_api_transformable_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_models_1_1_i_api_transformable.html">Tgstation.Server.Host.Models.IApiTransformable</a></div><div class="ttdoc">Represents a host-side model that may be transformed into a TApiModel .</div><div class="ttdef"><b>Definition</b> <a href="_i_api_transformable_02_t_model_00_t_api_model_00_t_transformer_03_8cs_source.html#l00013">IApiTransformable{TModel,TApiModel,TTransformer}.cs:17</a></div></div>
<div class="ttc" id="ainterface_tgstation_1_1_server_1_1_host_1_1_models_1_1_i_legacy_api_transformable_html"><div class="ttname"><a href="interface_tgstation_1_1_server_1_1_host_1_1_models_1_1_i_legacy_api_transformable.html">Tgstation.Server.Host.Models.ILegacyApiTransformable</a></div><div class="ttdoc">Represents a host-side model that may be transformed into a TApiModel .</div><div class="ttdef"><b>Definition</b> <a href="_i_legacy_api_transformable_02_t_api_model_03_8cs_source.html#l00007">ILegacyApiTransformable{TApiModel}.cs:8</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_host_1_1_models_1_1_transformers_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_models_1_1_transformers.html">Tgstation.Server.Host.Models.Transformers</a></div><div class="ttdef"><b>Definition</b> <a href="_permission_set_graph_q_l_transformer_8cs_source.html#l00004">PermissionSetGraphQLTransformer.cs:5</a></div></div>
<div class="ttc" id="anamespace_tgstation_1_1_server_1_1_host_1_1_models_html"><div class="ttname"><a href="namespace_tgstation_1_1_server_1_1_host_1_1_models.html">Tgstation.Server.Host.Models</a></div><div class="ttdef"><b>Definition</b> <a href="_models_2_chat_bot_8cs_source.html#l00008">ChatBot.cs:9</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>