Debian Codegraph @

src/dpp/dtemplate.cpp

raw symbols SCIP
1 /************************************************************************************
2 *
3 * D++, A Lightweight C++ library for Discord
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 * Copyright 2021 Craig Edwards and D++ contributors
7 * (https://github.com/brainboxdotcc/DPP/graphs/contributors)
8 *
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 *
21 ************************************************************************************/
22 #include <dpp/dtemplate.h>cxx . . $ `<file>/include/dpp/dtemplate.h`/
23 #include <dpp/discordevents.h>cxx . . $ `<file>/include/dpp/discordevents.h`/
24 #include <dpp/json.h>cxx . . $ `<file>/include/dpp/json.h`/
25
26 namespace dppcxx . . $ dpp/ {
27
28 using jsoncxx . . $ dpp/json# = nlohmanncxx . . $ nlohmann/::jsoncxx . . $ nlohmann/json_abi_v3_11_3/json#;
29
30 dtemplatecxx . . $ dpp/dtemplate#::dtemplatecxx . . $ dpp/dtemplate#dtemplate(49f6e7a06ebc5aa8).() : codecxx . . $ dpp/dtemplate#code.(""), namecxx . . $ dpp/dtemplate#name.(""), descriptioncxx . . $ dpp/dtemplate#description.(""), usage_countcxx . . $ dpp/dtemplate#usage_count.(0), creator_idcxx . . $ dpp/dtemplate#creator_id.(0), source_guild_idcxx . . $ dpp/dtemplate#source_guild_id.(0)
31 {
32 }
33
34 dtemplatecxx . . $ dpp/dtemplate#& dtemplatecxx . . $ dpp/dtemplate#::fill_from_json_implcxx . . $ dpp/dtemplate#fill_from_json_impl(6568ae0ed4e062da).(nlohmanncxx . . $ nlohmann/::jsoncxx . . $ nlohmann/json_abi_v3_11_3/json#* j) {
35 codecxx . . $ dpp/dtemplate#code. =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). string_not_nullcxx . . $ dpp/string_not_null(24f02e8aa86bcc9a).(j, "code");
36 namecxx . . $ dpp/dtemplate#name. =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). string_not_nullcxx . . $ dpp/string_not_null(24f02e8aa86bcc9a).(j, "name");
37 descriptioncxx . . $ dpp/dtemplate#description. =cxx . . $ std/__cxx11/basic_string#`operator=`(36befb0d0c9f966). string_not_nullcxx . . $ dpp/string_not_null(24f02e8aa86bcc9a).(j, "description");
38 usage_countcxx . . $ dpp/dtemplate#usage_count. = int32_not_nullcxx . . $ dpp/int32_not_null(37447ec7182453fb).(j, "usage_count");
39 creator_idcxx . . $ dpp/dtemplate#creator_id. =cxx . . $ dpp/snowflake#`operator=`(877bf232da790af4). snowflake_not_nullcxx . . $ dpp/snowflake_not_null(ada5243d35b97f74).(j, "creator_id");
40 created_atcxx . . $ dpp/dtemplate#created_at. = ts_not_nullcxx . . $ dpp/ts_not_null(f1ee4e6aed88ee78).(j, "created_at");
41 updated_atcxx . . $ dpp/dtemplate#updated_at. = ts_not_nullcxx . . $ dpp/ts_not_null(f1ee4e6aed88ee78).(j, "updated_at");
42 source_guild_idcxx . . $ dpp/dtemplate#source_guild_id. =cxx . . $ dpp/snowflake#`operator=`(877bf232da790af4). snowflake_not_nullcxx . . $ dpp/snowflake_not_null(ada5243d35b97f74).(j, "source_guild_id");
43 is_dirtycxx . . $ dpp/dtemplate#is_dirty. = bool_not_nullcxx . . $ dpp/bool_not_null(ea186b311808642e).(j, "is_dirty");
44 return *this;
45 }
46
47 jsoncxx . . $ dpp/json# dtemplatecxx . . $ dpp/dtemplate#::to_json_implcxx . . $ dpp/dtemplate#to_json_impl(c45180a0dc2708f9).(bool with_id) const {
48 return {cxx . . $ nlohmann/json_abi_v3_11_3/basic_json#basic_json(d6d444c1d4a225e8).
49 {"code", codecxx . . $ dpp/dtemplate#code.},
50 {"name", namecxx . . $ dpp/dtemplate#name.},
51 {"description", descriptioncxx . . $ dpp/dtemplate#description.},
52 {"usage_count", usage_countcxx . . $ dpp/dtemplate#usage_count.},
53 {"creator_id", creator_idcxx . . $ dpp/dtemplate#creator_id.},
54 {"updated_at", updated_atcxx . . $ dpp/dtemplate#updated_at.},
55 {"source_guild_id", source_guild_idcxx . . $ dpp/dtemplate#source_guild_id.,
56 "is_dirty", is_dirtycxx . . $ dpp/dtemplate#is_dirty.}
57 };
58 }
59
60 }