/**
This file is a part of rexy's matrix client
Copyright (C) 2019-2020 rexy712
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
#ifndef FAT_STRINGS_HPP
#define FAT_STRINGS_HPP
//Moved all the really thicc templates into this separate support file
//so that rebuilding matrix.cpp would not take 10 seconds each time
//these functions should rarely change, so it will still build slowly
//but will rarely need rebuilt
#include
#include "matrix/upload_info.hpp"
namespace matrix::json{
rexy::static_string _empty(void);
rexy::string _image_body(const uploaded_image& image);
rexy::string _video_body(const uploaded_video& video);
rexy::string _file_body(const uploaded_file& video);
rexy::string _audio_body(const uploaded_audio& audio);
rexy::string _message_body(const rexy::string_base& text);
rexy::string _notice_body(const rexy::string_base& msg);
rexy::string _login_password(const rexy::string_base& userid, const rexy::string_base& password);
rexy::string _change_psk_password(const rexy::string_base& userid, const rexy::string_base& newpass, const rexy::string_base& oldpass, const rexy::string_base& session);
rexy::string _displayname_set(const rexy::string_base& newname);
rexy::string _avatar_set(const rexy::string_base& mediaurl);
rexy::string _presence_set(const rexy::string_base& status);
rexy::string _create_room(const rexy::string_base& name, const rexy::string_base& alias);
rexy::string _userid(const rexy::string_base& id);
rexy::string _userid_reason(const rexy::string_base& id, const rexy::string_base& reason);
rexy::string _typing(bool active, int timeout);
rexy::string _redact(const rexy::string_base& reason);
rexy::string _room_upgrade(int version);
}
#endif