Skip to content

Commit

Permalink
Deploying to gh-pages from @ a7e195b 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurtanuki committed Jul 7, 2024
1 parent 963701d commit a221015
Show file tree
Hide file tree
Showing 16 changed files with 755 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@
<a href="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus-class.html#instance-properties">Properties</a>
</li>
<li><a href="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/cookie.html">cookie</a></li>
<li><a href="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/country.html">country</a></li>
<li class="inherited"><a href="https://api.dart.dev/stable/3.4.4/dart-core/Object/hashCode.html">hashCode</a></li>
<li><a href="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/isAdmin.html">isAdmin</a></li>
<li><a href="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/isModerator.html">isModerator</a></li>
<li><a href="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/preferredLanguage.html">preferredLanguage</a></li>
<li class="inherited"><a href="https://api.dart.dev/stable/3.4.4/dart-core/Object/runtimeType.html">runtimeType</a></li>
<li><a href="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/status.html">status</a></li>
<li><a href="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/statusVerbose.html">statusVerbose</a></li>
<li><a href="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/successful.html">successful</a></li>
<li><a href="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/userEmail.html">userEmail</a></li>
<li><a class="deprecated" href="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/userEmail.html">userEmail</a></li>
<li><a href="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/userId.html">userId</a></li>
<li><a href="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/userName.html">userName</a></li>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,13 @@ <h1><span class="kind-class">LoginStatus</span> class
"status_verbose":"user signed-in",
"user_id":"gqwbgsvvod",
"user":{
"email":"<a href="mailto:[email protected]">[email protected]</a>",
"name":"Mr. John Doe"
}
"name":"Mr. John Doe",
"preferred_language":"fr",
"cc":"be",
"country":"en:belgium",
"admin":0,
"moderator":1
}
}</li>
</ul>
</section>
Expand All @@ -91,7 +95,7 @@ <h2>Constructors</h2>

<dl class="constructor-summary-list">
<dt id="LoginStatus" class="callable">
<span class="name"><a href="../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/LoginStatus.html">LoginStatus</a></span><span class="signature">(<span class="parameter" id="-param-status">{<span>required</span> <span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/int-class.html">int</a></span> <span class="parameter-name">status</span>, </span><span class="parameter" id="-param-statusVerbose"><span>required</span> <span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a></span> <span class="parameter-name">statusVerbose</span>, </span><span class="parameter" id="-param-userEmail"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">userEmail</span>, </span><span class="parameter" id="-param-userName"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">userName</span>, </span><span class="parameter" id="-param-userId"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">userId</span>, </span><span class="parameter" id="-param-cookie"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">cookie</span>}</span>)</span>
<span class="name"><a href="../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/LoginStatus.html">LoginStatus</a></span><span class="signature">(<span class="parameter" id="-param-status">{<span>required</span> <span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/int-class.html">int</a></span> <span class="parameter-name">status</span>, </span><span class="parameter" id="-param-statusVerbose"><span>required</span> <span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a></span> <span class="parameter-name">statusVerbose</span>, </span><span class="parameter" id="-param-userEmail"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">userEmail</span>, </span><span class="parameter" id="-param-userName"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">userName</span>, </span><span class="parameter" id="-param-userId"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">userId</span>, </span><span class="parameter" id="-param-preferredLanguage"><span class="type-annotation"><a href="../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_utils_language_helper/OpenFoodFactsLanguage.html">OpenFoodFactsLanguage</a>?</span> <span class="parameter-name">preferredLanguage</span>, </span><span class="parameter" id="-param-country"><span class="type-annotation"><a href="../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_utils_country_helper/OpenFoodFactsCountry.html">OpenFoodFactsCountry</a>?</span> <span class="parameter-name">country</span>, </span><span class="parameter" id="-param-isModerator"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">isModerator</span>, </span><span class="parameter" id="-param-isAdmin"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">isAdmin</span>, </span><span class="parameter" id="-param-cookie"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">cookie</span>}</span>)</span>
</dt>
<dd>

Expand Down Expand Up @@ -122,6 +126,18 @@ <h2>Properties</h2>
authenticated user.
<div class="features"><span class="feature">final</span></div>

</dd>

<dt id="country" class="property">
<span class="name"><a href="../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/country.html">country</a></span>
<span class="signature">&#8594; <a href="../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_utils_country_helper/OpenFoodFactsCountry.html">OpenFoodFactsCountry</a>?</span>


</dt>
<dd>

<div class="features"><span class="feature">final</span></div>

</dd>

<dt id="hashCode" class="property inherited">
Expand All @@ -134,6 +150,42 @@ <h2>Properties</h2>
The hash code for this object.
<div class="features"><span class="feature">no setter</span><span class="feature">inherited</span></div>

</dd>

<dt id="isAdmin" class="property">
<span class="name"><a href="../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/isAdmin.html">isAdmin</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/stable/3.4.4/dart-core/bool-class.html">bool</a>?</span>


</dt>
<dd>

<div class="features"><span class="feature">final</span></div>

</dd>

<dt id="isModerator" class="property">
<span class="name"><a href="../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/isModerator.html">isModerator</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/stable/3.4.4/dart-core/bool-class.html">bool</a>?</span>


</dt>
<dd>

<div class="features"><span class="feature">final</span></div>

</dd>

<dt id="preferredLanguage" class="property">
<span class="name"><a href="../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/preferredLanguage.html">preferredLanguage</a></span>
<span class="signature">&#8594; <a href="../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_utils_language_helper/OpenFoodFactsLanguage.html">OpenFoodFactsLanguage</a>?</span>


</dt>
<dd>

<div class="features"><span class="feature">final</span></div>

</dd>

<dt id="runtimeType" class="property inherited">
Expand Down Expand Up @@ -185,7 +237,7 @@ <h2>Properties</h2>
</dd>

<dt id="userEmail" class="property">
<span class="name"><a href="../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/userEmail.html">userEmail</a></span>
<span class="name"><a class="deprecated" href="../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus/userEmail.html">userEmail</a></span>
<span class="signature">&#8594; <a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a>?</span>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,21 @@ <h1><span class="kind-constructor">LoginStatus.fromJson</span> constructor
<section class="summary source-code" id="source">
<h2><span>Implementation</span></h2>
<pre class="language-dart"><code class="language-dart">factory LoginStatus.fromJson(Map&lt;String, dynamic&gt; json,
[Map&lt;String, String&gt;? headers]) =&gt;
LoginStatus(
status: JsonObject.parseInt(json[&#39;status&#39;])!,
statusVerbose: json[&#39;status_verbose&#39;] as String,
userId: json[&#39;user_id&#39;] as String?,
userEmail: json[&#39;user&#39;]?[&#39;email&#39;] as String?,
userName: json[&#39;user&#39;]?[&#39;name&#39;] as String?,
cookie: headers?[&#39;set-cookie&#39;],
);</code></pre>
[Map&lt;String, String&gt;? headers]) {
final details = json[&#39;user&#39;];
return LoginStatus(
status: JsonObject.parseInt(json[&#39;status&#39;])!,
statusVerbose: json[&#39;status_verbose&#39;] as String,
userId: json[&#39;user_id&#39;] as String?,
userName: details?[&#39;name&#39;] as String?,
preferredLanguage:
OpenFoodFactsLanguage.fromOffTag(details?[&#39;preferred_language&#39;]),
country: OpenFoodFactsCountry.fromOffTag(details?[&#39;cc&#39;]),
isModerator: JsonHelper.boolFromJSON(details?[&#39;moderator&#39;]),
isAdmin: JsonHelper.boolFromJSON(details?[&#39;admin&#39;]),
cookie: headers?[&#39;set-cookie&#39;],
);
}</code></pre>
</section>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ <h1><span class="kind-constructor">LoginStatus</span> constructor
<li><span class="parameter" id="-param-userEmail"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">userEmail</span>, </span></li>
<li><span class="parameter" id="-param-userName"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">userName</span>, </span></li>
<li><span class="parameter" id="-param-userId"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">userId</span>, </span></li>
<li><span class="parameter" id="-param-preferredLanguage"><span class="type-annotation"><a href="../../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_utils_language_helper/OpenFoodFactsLanguage.html">OpenFoodFactsLanguage</a>?</span> <span class="parameter-name">preferredLanguage</span>, </span></li>
<li><span class="parameter" id="-param-country"><span class="type-annotation"><a href="../../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_utils_country_helper/OpenFoodFactsCountry.html">OpenFoodFactsCountry</a>?</span> <span class="parameter-name">country</span>, </span></li>
<li><span class="parameter" id="-param-isModerator"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">isModerator</span>, </span></li>
<li><span class="parameter" id="-param-isAdmin"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/bool-class.html">bool</a>?</span> <span class="parameter-name">isAdmin</span>, </span></li>
<li><span class="parameter" id="-param-cookie"><span class="type-annotation"><a href="https://api.dart.dev/stable/3.4.4/dart-core/String-class.html">String</a>?</span> <span class="parameter-name">cookie</span>}</span></li>
</ol>)
</section>
Expand All @@ -80,9 +84,13 @@ <h2><span>Implementation</span></h2>
<pre class="language-dart"><code class="language-dart">LoginStatus({
required this.status,
required this.statusVerbose,
this.userEmail,
String? userEmail,
this.userName,
this.userId,
this.preferredLanguage,
this.country,
this.isModerator,
this.isAdmin,
this.cookie,
});</code></pre>
</section>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
<meta name="description" content="API docs for the country property from the LoginStatus class, for the Dart programming language.">
<title>country property - LoginStatus class - login_status library - Dart API</title>



<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" rel="stylesheet">

<link rel="stylesheet" href="../../static-assets/github.css?v1">
<link rel="stylesheet" href="../../static-assets/styles.css?v1">
<link rel="icon" href="../../static-assets/favicon.png?v1">


</head>


<body data-base-href="../../" data-using-base-href="false" class="light-theme">

<div id="overlay-under-drawer"></div>

<header id="title">
<span id="sidenav-left-toggle" class="material-symbols-outlined" role="button" tabindex="0">menu</span>
<ol class="breadcrumbs gt-separated dark hidden-xs">
<li><a href="../../index.html">openfoodfacts</a></li>
<li><a href="../../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status-library.html">src&#47;model&#47;login_status.dart</a></li>
<li><a href="../../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus-class.html">LoginStatus</a></li>
<li class="self-crumb">country property</li>
</ol>
<div class="self-name">country</div>
<form class="search navbar-right" role="search">
<input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
<div class="toggle" id="theme-button" title="Toggle brightness">
<label for="theme">
<input type="checkbox" id="theme" value="light-theme">
<span id="dark-theme-button" class="material-symbols-outlined">
dark_mode
</span>
<span id="light-theme-button" class="material-symbols-outlined">
light_mode
</span>
</label>
</div>
</header>
<main>

<div
id="dartdoc-main-content"
class="main-content"
data-above-sidebar="file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status&#47;LoginStatus-class-sidebar.html"
data-below-sidebar="">
<div>
<h1><span class="kind-property">country</span> property
</h1></div>

<section class="multi-line-signature">

<a href="../../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_utils_country_helper/OpenFoodFactsCountry.html">OpenFoodFactsCountry</a>?
<span class="name ">country</span>
<div class="features"><span class="feature">final</span></div>

</section>



<section class="summary source-code" id="source">
<h2><span>Implementation</span></h2>
<pre class="language-dart"><code class="language-dart">final OpenFoodFactsCountry? country;</code></pre>
</section>


</div> <!-- /.main-content -->

<div id="dartdoc-sidebar-left" class="sidebar sidebar-offcanvas-left">
<!-- The search input and breadcrumbs below are only responsively visible at low resolutions. -->
<header id="header-search-sidebar" class="hidden-l">
<form class="search-sidebar" role="search">
<input type="text" id="search-sidebar" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
</form>
</header>

<ol class="breadcrumbs gt-separated dark hidden-l" id="sidebar-nav">
<li><a href="../../index.html">openfoodfacts</a></li>
<li><a href="../../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status-library.html">login_status</a></li>
<li><a href="../../file-___home_runner_work_openfoodfacts-dart_openfoodfacts-dart_lib_src_model_login_status/LoginStatus-class.html">LoginStatus</a></li>
<li class="self-crumb">country property</li>
</ol>


<h5>LoginStatus class</h5>
<div id="dartdoc-sidebar-left-content"></div>
</div><!--/.sidebar-offcanvas-->

<div id="dartdoc-sidebar-right" class="sidebar sidebar-offcanvas-right">
</div><!--/.sidebar-offcanvas-->

</main>

<footer>
<span class="no-break">
openfoodfacts
3.12.0
</span>


</footer>



<script src="../../static-assets/highlight.pack.js?v1"></script>
<script src="../../static-assets/docs.dart.js"></script>



</body>

</html>

Loading

0 comments on commit a221015

Please sign in to comment.