2024-01-20 21:17:21 +00:00
|
|
|
//SPDX-FileCopyrightText: 2023 Yury Gubich <blue@macaw.me>
|
|
|
|
//SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
#include "addasset.h"
|
|
|
|
|
2024-04-05 16:17:24 +00:00
|
|
|
Request::AddAsset::AddAsset (
|
|
|
|
const QString& title,
|
|
|
|
const QString& icon,
|
|
|
|
const QColor& color,
|
|
|
|
Models::Currency::ID currency,
|
|
|
|
const QUrl& baseUrl
|
|
|
|
):
|
2024-01-21 19:22:56 +00:00
|
|
|
Post(createUrl(baseUrl, "/addAsset"), {
|
2024-04-05 16:17:24 +00:00
|
|
|
{"title", title}, {"icon", icon}, {"currency", std::to_string(currency).c_str()}, {"color", std::to_string(color.rgba()).c_str()}
|
|
|
|
})
|
2024-01-20 21:17:21 +00:00
|
|
|
{
|
|
|
|
emptyResult = true;
|
|
|
|
}
|