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:
parent
b06e9509e4
commit
3986205a24
|
@ -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";
|
||||
|
|
|
@ -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{};
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue