droplet 1.1.0
A multipurpose Discord bot with the hacker in mind
Loading...
Searching...
No Matches
ProductDTO Class Reference

#include <ProductDTO.hpp>

Collaboration diagram for ProductDTO:

Public Types

enum  Type { DOWNLOAD = 0 , SUBSCRIPTION = 100 }
 

Public Member Functions

 ProductDTO ()=default
 
 ProductDTO (size_t product_id, std::string picture_url, std::string button_text, size_t price_in_cents, std::string name, std::string button_url, std::string buy_url, Type type)
 
 ProductDTO (const RowDTOAdapter &row)
 

Public Attributes

size_t id
 
size_t product_id
 
std::string picture_url
 
std::string button_text
 
size_t price_in_cents
 
std::string name
 
std::string button_url
 
std::string buy_url
 
Type type
 

Member Enumeration Documentation

◆ Type

Enumerator
DOWNLOAD 
SUBSCRIPTION 

Constructor & Destructor Documentation

◆ ProductDTO() [1/3]

ProductDTO::ProductDTO ( )
default

◆ ProductDTO() [2/3]

ProductDTO::ProductDTO ( size_t product_id,
std::string picture_url,
std::string button_text,
size_t price_in_cents,
std::string name,
std::string button_url,
std::string buy_url,
Type type )

◆ ProductDTO() [3/3]

ProductDTO::ProductDTO ( const RowDTOAdapter & row)

Member Data Documentation

◆ button_text

std::string ProductDTO::button_text

◆ button_url

std::string ProductDTO::button_url

◆ buy_url

std::string ProductDTO::buy_url

◆ id

size_t ProductDTO::id

◆ name

std::string ProductDTO::name

◆ picture_url

std::string ProductDTO::picture_url

◆ price_in_cents

size_t ProductDTO::price_in_cents

◆ product_id

size_t ProductDTO::product_id

◆ type

Type ProductDTO::type

The documentation for this class was generated from the following files: