Change some class names to make more sense. I don't know what the hell I

was thinking before, and I should stop programming at 3 in the fucking
morning.
This commit is contained in:
Jacob 2024-02-22 02:22:55 +01:00
parent b06e9509e4
commit 3986205a24
3 changed files with 10 additions and 10 deletions

View file

@ -46,7 +46,7 @@ int main() {
file << "\n";
}
for (auto it : sync.roomEvents.Invites) {
for (auto it : sync.roomEvent.inviteEvents) {
file << "Room ID: " << it.roomID << "\n";
file << "User ID: " << it.userID << "\n";
file << "Event ID: " << it.eventID << "\n";

View file

@ -310,7 +310,7 @@ namespace leet {
/**
* @brief Class that represents a user event.
*/
class UserEvent {
class UserEvents {
private:
public:
std::string userID{};
@ -323,7 +323,7 @@ namespace leet {
/**
* @brief Class that represents a name event.
*/
class NameEvent {
class NameEvents {
private:
public:
std::string roomID{};
@ -334,7 +334,7 @@ namespace leet {
/**
* @brief Class that represents a room event.
*/
class RoomEvent {
class RoomEvents {
private:
public:
/**
@ -378,7 +378,7 @@ namespace leet {
public:
};
std::vector<InviteEvent> Invites{};
std::vector<InviteEvent> inviteEvents{};
};
/**
* @brief Class that represents a Megolm session sent in the room */
@ -398,9 +398,9 @@ namespace leet {
class Sync {
private:
public:
UserEvent userEvents{};
NameEvent nameEvents{};
RoomEvent roomEvents{};
UserEvents userEvents{};
NameEvents nameEvents{};
RoomEvents roomEvents{};
std::vector<MegolmSession> megolmSessions{};
std::string nextBatch{};
std::string theRequest{};

View file

@ -2552,7 +2552,7 @@ void leetFunction::getInvitesFromSync(const leet::User::CredentialsResponse& res
continue;
}
leet::Sync::RoomEvent::InviteEvent theInviteEvent{};
leet::Sync::RoomEvents::InviteEvent theInviteEvent{};
theInviteEvent.Encrypted = false; // sane default
@ -2618,7 +2618,7 @@ void leetFunction::getInvitesFromSync(const leet::User::CredentialsResponse& res
}
}
sync.roomEvents.Invites.push_back(theInviteEvent);
sync.roomEvents.inviteEvents.push_back(theInviteEvent);
}
}