DarkflameServer/dDatabase/Tables/CDMissionEmailTable.h

29 lines
631 B
C
Raw Permalink Normal View History

#pragma once
// Custom Classes
#include "CDTable.h"
struct CDMissionEmail {
2022-07-28 13:39:57 +00:00
unsigned int ID;
unsigned int messageType;
unsigned int notificationGroup;
unsigned int missionID;
unsigned int attachmentLOT;
bool localize;
unsigned int locStatus;
std::string gate_version;
};
class CDMissionEmailTable : public CDTable<CDMissionEmailTable> {
private:
2022-07-28 13:39:57 +00:00
std::vector<CDMissionEmail> entries;
public:
void LoadValuesFromDatabase();
// Queries the table with a custom "where" clause
2022-07-28 13:39:57 +00:00
std::vector<CDMissionEmail> Query(std::function<bool(CDMissionEmail)> predicate);
const std::vector<CDMissionEmail>& GetEntries() const;
};