summaryrefslogtreecommitdiff
path: root/bot/src/commands/response.hpp
blob: 2f05fd86e56d3c9ab8518a0a668e598c8c42a15d (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
#pragma once

#include <optional>
#include <string>
#include <vector>

namespace bot::command {
  class Response {
    public:
      Response();
      Response(std::string single);
      Response(std::vector<std::string> multiple);

      const std::string get_single() const;
      const std::vector<std::string> get_multiple() const;

      const bool is_single() const;
      const bool is_multiple() const;
      const bool is_empty() const;

    private:
      std::optional<std::string> single;
      std::optional<std::vector<std::string>> multiple;
  };
}