summaryrefslogtreecommitdiff
path: root/include/tgbot/types/Birthdate.h
blob: af481ccac0be104d6dcc04556faeaf3dcbddc0db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef TGBOT_BIRTHDATE_H
#define TGBOT_BIRTHDATE_H

#include <cstdint>
#include <memory>

namespace TgBot {

/**
 * @ingroup types
 */
class Birthdate {

public:
    typedef std::shared_ptr<Birthdate> Ptr;

    /**
     * @brief Day of the user's birth; 1-31
     */
    std::uint8_t day;

    /**
     * @brief Month of the user's birth; 1-12
     */
    std::uint8_t month;

    /**
     * @brief Optional. Year of the user's birth
     */
    std::uint16_t year;
};
}

#endif //TGBOT_BIRTHDATE_H