Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GGCE
GRIN-Global API dotnet
Commits
6bc533ff
Commit
6bc533ff
authored
Feb 25, 2020
by
Matija Obreza
Browse files
Print CodeValues
parent
07f3d6d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
ConsoleApplication1/Program.cs
View file @
6bc533ff
...
...
@@ -41,13 +41,25 @@ namespace Example
var
apiInstance
=
new
AccessionApi
(
Configuration
.
Default
);
var
apiTaxonomy
=
new
TaxonomyApi
(
Configuration
.
Default
);
var
apiTaxonomy
=
new
TaxonomyApi
(
Configuration
.
Default
);
var
apiApp
=
new
ApplicationApi
(
Configuration
.
Default
);
var
instCode
=
"BEL084"
;
// string | instCode
// var batch = new List<AccessionHeaderJson>(); // List<AccessionHeaderJson> | batch
try
{
var
codeValues
=
apiApp
.
CodeValuesList
(
"en-US"
);
foreach
(
var
codeValue
in
codeValues
)
{
foreach
(
var
k
in
codeValue
.
Value
.
Keys
)
{
Debug
.
WriteLine
(
codeValue
.
Key
+
"."
+
k
+
" = "
+
codeValue
.
Value
[
k
]);
Console
.
Out
.
WriteLine
(
codeValue
.
Key
+
"."
+
k
+
" = "
+
codeValue
.
Value
[
k
]);
}
}
return
;
var
speciesFilter
=
new
InlineObject2
();
var
taxonomyFamily
=
apiTaxonomy
.
GetFamily
(
43255
);
//.FilterSpecies(null, speciesFilter);
Console
.
Out
.
WriteLine
(
taxonomyFamily
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment