Program Listing for File Wallet.h
↰ Return to documentation for file (axr.sdk/models/Wallet.h
)
// Copyright (C) AcceleratXR, Inc. All rights reserved.
#pragma once
#include "axr.sdk/EntityBase.h"
#include "./Currency.h"
#include <cpprest/details/basic_types.h>
#include <vector>
namespace axr {
namespace sdk {
namespace models {
class Wallet : public EntityBase
{
public:
Wallet() : EntityBase() {}
Wallet(const Wallet& value) : EntityBase(value) {}
Wallet(Wallet&& value) : EntityBase(value) {}
virtual ~Wallet() {}
// Object overrides
virtual Wallet& SetProperties(const std::map<utility::string_t, Variant>& value) override
{
Object::SetProperties(value);
return *this;
}
virtual Wallet& SetProperties(std::map<utility::string_t, Variant>&& value) override
{
Object::SetProperties(value);
return *this;
}
virtual Wallet& SetProperty(const utility::char_t* name, const Variant& value) override
{
Object::SetProperty(name, value);
return*this;
}
virtual Wallet& SetProperty(const utility::string_t& name, const Variant& value) override
{
Object::SetProperty(name, value);
return*this;
}
virtual Wallet& SetRemoteUrl(const utility::string_t& url) override
{
Object::SetRemoteUrl(url);
return *this;
}
// EntityBase overrides
virtual Wallet& SetUid(const utility::string_t& value) override
{
EntityBase::SetUid(value);
return *this;
}
virtual Wallet& SetDateCreated(const datetime& value) override
{
EntityBase::SetDateCreated(value);
return *this;
}
virtual Wallet& SetDateModified(const datetime& value) override
{
EntityBase::SetDateModified(value);
return *this;
}
virtual Wallet& SetVersion(const uint64_t value) override
{
EntityBase::SetVersion(value);
return *this;
}
static const utility::char_t* ClassName()
{
return _XPLATSTR("axr::sdk::models::Wallet");
}
void Validate() override;
// Wallet members
utility::string_t GetBilling() const;
Wallet& SetBilling(const utility::string_t& value);
float GetBalance() const;
#ifdef AXR_COMPILE_SERVER
Wallet& SetBalance(float value);
#endif // AXR_COMPILE_SERVER
std::vector<utility::string_t> GetContacts() const;
Wallet& SetContacts(std::vector<utility::string_t> value);
const Currency* GetCurrency() const;
Wallet& SetCurrency(const Currency* value);
std::shared_ptr<Object> GetData() const;
Wallet& SetData(std::shared_ptr<Object> value);
};
} // namespace models
} // namespace axr
} // namespace sdk