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::Repository Struct Reference

#include <Repository.hpp>

Public Member Functions

 Repository ()=default
 
 Repository (const nl::json &json)
 

Static Public Member Functions

static auto table ()
 

Public Attributes

RepositoryId id {}
 
std::string full_name
 
std::int64_t stargazers_count {}
 
std::int64_t watchers_count {}
 
std::int64_t open_issues_count {}
 
std::int64_t pulls_count {}
 
std::int64_t forks_count {}
 
std::string description
 
std::size_t size {}
 
std::string language
 
std::time_t createdAt {}
 
std::time_t updatedAt {}
 
std::unique_ptr< UserIdwatcher_id
 ! User id who is watching changes on this repo More...
 

Detailed Description

Definition at line 13 of file Repository.hpp.

Constructor & Destructor Documentation

◆ Repository() [1/2]

models::Repository::Repository ( )
default

◆ Repository() [2/2]

models::Repository::Repository ( const nl::json &  json)
inlineexplicit

Definition at line 62 of file Repository.hpp.

Member Function Documentation

◆ table()

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

Definition at line 28 of file Repository.hpp.

Member Data Documentation

◆ createdAt

std::time_t models::Repository::createdAt {}

Definition at line 24 of file Repository.hpp.

◆ description

std::string models::Repository::description

Definition at line 21 of file Repository.hpp.

◆ forks_count

std::int64_t models::Repository::forks_count {}

Definition at line 20 of file Repository.hpp.

◆ full_name

std::string models::Repository::full_name

Definition at line 15 of file Repository.hpp.

◆ id

RepositoryId models::Repository::id {}

Definition at line 14 of file Repository.hpp.

◆ language

std::string models::Repository::language

Definition at line 23 of file Repository.hpp.

◆ open_issues_count

std::int64_t models::Repository::open_issues_count {}

Definition at line 18 of file Repository.hpp.

◆ pulls_count

std::int64_t models::Repository::pulls_count {}

Definition at line 19 of file Repository.hpp.

◆ size

std::size_t models::Repository::size {}

Definition at line 22 of file Repository.hpp.

◆ stargazers_count

std::int64_t models::Repository::stargazers_count {}

Definition at line 16 of file Repository.hpp.

◆ updatedAt

std::time_t models::Repository::updatedAt {}

Definition at line 25 of file Repository.hpp.

◆ watcher_id

std::unique_ptr<UserId> models::Repository::watcher_id

! User id who is watching changes on this repo

Definition at line 26 of file Repository.hpp.

◆ watchers_count

std::int64_t models::Repository::watchers_count {}

Definition at line 17 of file Repository.hpp.


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