GitWatcherBot  1.0.0
A Telegram Bot that notifies you when a new change is made in your repositories (issues, pull requests, stars, forks, and watches)
All Classes Namespaces Files Functions Variables Typedefs Macros
models::User Struct Reference

#include <User.hpp>

Public Member Functions

 User ()=default
 
 User (tgbotxx::Ptr< tgbotxx::User > tgUser, ChatId chatId)
 

Static Public Member Functions

static auto table ()
 

Public Attributes

UserId id {}
 
ChatId chatId {}
 
UserStatus status {UserStatus::ACTIVE}
 
std::string firstName
 
std::string lastName
 
std::string username
 
std::string languageCode
 
bool isBot {}
 
bool isPremium {}
 
bool addedToAttachmentMenu {}
 
std::time_t createdAt {}
 
std::time_t updatedAt {}
 

Detailed Description

Definition at line 15 of file User.hpp.

Constructor & Destructor Documentation

◆ User() [1/2]

models::User::User ( )
default

◆ User() [2/2]

models::User::User ( tgbotxx::Ptr< tgbotxx::User >  tgUser,
ChatId  chatId 
)
inline

Definition at line 49 of file User.hpp.

Member Function Documentation

◆ table()

static auto models::User::table ( )
inlinestatic

Definition at line 29 of file User.hpp.

Member Data Documentation

◆ addedToAttachmentMenu

bool models::User::addedToAttachmentMenu {}

Definition at line 25 of file User.hpp.

◆ chatId

ChatId models::User::chatId {}

Definition at line 17 of file User.hpp.

◆ createdAt

std::time_t models::User::createdAt {}

Definition at line 26 of file User.hpp.

◆ firstName

std::string models::User::firstName

Definition at line 19 of file User.hpp.

◆ id

UserId models::User::id {}

Definition at line 16 of file User.hpp.

◆ isBot

bool models::User::isBot {}

Definition at line 23 of file User.hpp.

◆ isPremium

bool models::User::isPremium {}

Definition at line 24 of file User.hpp.

◆ languageCode

std::string models::User::languageCode

Definition at line 22 of file User.hpp.

◆ lastName

std::string models::User::lastName

Definition at line 20 of file User.hpp.

◆ status

UserStatus models::User::status {UserStatus::ACTIVE}

Definition at line 18 of file User.hpp.

◆ updatedAt

std::time_t models::User::updatedAt {}

Definition at line 27 of file User.hpp.

◆ username

std::string models::User::username

Definition at line 21 of file User.hpp.


The documentation for this struct was generated from the following file: