use derive_getters::Getters;
use serde::{Deserialize, Serialize};
#[derive(Getters, Debug, Clone, Serialize, Deserialize)]
pub struct MemberData {
member_id: u64,
username: String,
join_date: u64,
last_activity_date: Option<u64>,
banned: bool,
suspended: bool,
restricted: bool,
disabled: bool,
premium: bool,
supreme: bool,
ultimate: bool,
post_count: u64,
discord_id: Option<u64>,
resource_count: u64,
purchase_count: u64,
feedback_positive: u64,
feedback_neutral: u64,
feedback_negative: u64,
}
#[derive(Getters, Debug, Clone, Serialize, Deserialize)]
pub struct ProfilePostData {
profile_post_id: u64,
author_id: u64,
post_date: u64,
message: String,
comment_count: u64,
}
#[derive(Getters, Debug, Clone, Serialize, Deserialize)]
pub struct BanData {
member_id: u64,
banned_by_id: u64,
ban_date: u64,
reason: String,
}
#[derive(Serialize)]
pub(crate) struct ProfilePostEditBody<'a> {
pub message: &'a str,
}
#[derive(Debug, Default, Serialize)]
pub struct ModifySelfBody<'a> {
pub custom_title: Option<&'a str>,
pub about_me: Option<&'a str>,
pub signature: Option<&'a str>,
}