Advertisement
zoltanb

Untitled

May 8th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. enum AuthenticationStatus {
  2.   OK,
  3.   WARNING,
  4.   ERROR
  5. };
  6.  
  7. class AuthenticationResponse {
  8.  public:
  9.   AuthenticationResponse();
  10.   AuthenticationResponse(std::vector<Message<std::string>>* messages, AuthenticationStatus status);
  11.   virtual ~AuthenticationResponse();
  12.   std::vector<Message<std::string>>* GetMessages();
  13.   void SetMessages(std::vector<Message<std::string>>* messages);
  14.   AuthenticationStatus GetStatus();
  15.   void SetStatus(AuthenticationStatus status);
  16.  
  17.  private:
  18.   std::vector<Message<std::string>>* messages_;
  19.   AuthenticationStatus status_;
  20. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement