/* * Copyright (c) 2010-2016 Isode Limited. * All rights reserved. * See the COPYING file for more information. */ #pragma once #include #include #include #include #include #include namespace Swift { class SWIFTEN_API InBandRegistrationPayload : public Payload { public: typedef std::shared_ptr ref; InBandRegistrationPayload() : registered(false), remove(false) {} Form::ref getForm() const { return form; } void setForm(Form::ref f) { form = f; } bool isRegistered() const { return registered; } void setRegistered(bool b) { registered = b; } bool isRemove() const { return remove; } void setRemove(bool b) { remove = b; } const boost::optional& getInstructions() const { return instructions; } const boost::optional& getUsername() const { return username; } const boost::optional& getNick() const { return nick; } const boost::optional& getPassword() const { return password; } const boost::optional& getName() const { return name; } const boost::optional& getFirst() const { return first; } const boost::optional& getLast() const { return last; } const boost::optional& getEMail() const { return email; } const boost::optional& getAddress() const { return address; } const boost::optional& getCity() const { return city; } const boost::optional& getState() const { return state; } const boost::optional& getZip() const { return zip; } const boost::optional& getPhone() const { return phone; } const boost::optional& getURL() const { return url; } const boost::optional& getDate() const { return date; } const boost::optional& getMisc() const { return misc; } const boost::optional& getText() const { return text; } const boost::optional& getKey() const { return key; } void setInstructions(const std::string& v) { this->instructions = v; } void setUsername(const std::string& v) { this->username = v; } void setNick(const std::string& v) { this->nick = v; } void setPassword(const std::string& v) { this->password = v; } void setName(const std::string& v) { this->name = v; } void setFirst(const std::string& v) { this->first = v; } void setLast(const std::string& v) { this->last = v; } void setEMail(const std::string& v) { this->email = v; } void setAddress(const std::string& v) { this->address = v; } void setCity(const std::string& v) { this->city = v; } void setState(const std::string& v) { this->state = v; } void setZip(const std::string& v) { this->zip = v; } void setPhone(const std::string& v) { this->phone = v; } void setURL(const std::string& v) { this->url = v; } void setDate(const std::string& v) { this->date = v; } void setMisc(const std::string& v) { this->misc = v; } void setText(const std::string& v) { this->text = v; } void setKey(const std::string& v) { this->key = v; } private: Form::ref form; bool registered; bool remove; boost::optional instructions; boost::optional username; boost::optional nick; boost::optional password; boost::optional name; boost::optional first; boost::optional last; boost::optional email; boost::optional address; boost::optional city; boost::optional state; boost::optional zip; boost::optional phone; boost::optional url; boost::optional date; boost::optional misc; boost::optional text; boost::optional key; }; }