Program Listing for File Achievement.h

Return to documentation for file (axr.sdk/models/Achievement.h)

// Copyright (C) AcceleratXR, Inc. All rights reserved.
#pragma once

#include "axr.sdk/EntityBase.h"

#include <cpprest/details/basic_types.h>
#include <vector>

namespace axr {
namespace sdk {
namespace models {

class Achievement : public EntityBase
{
public:
    Achievement() : EntityBase() {}
    Achievement(const Achievement& value) : EntityBase(value) {}
    Achievement(Achievement&& value) : EntityBase(value) {}
    virtual ~Achievement() {}

    // Object overrides

    virtual Achievement& SetProperties(const std::map<utility::string_t, Variant>& value) override
    {
        Object::SetProperties(value);
        return *this;
    }

    virtual Achievement& SetProperties(std::map<utility::string_t, Variant>&& value) override
    {
        Object::SetProperties(value);
        return *this;
    }

    virtual Achievement& SetProperty(const utility::char_t* name, const Variant& value) override
    {
        Object::SetProperty(name, value);
        return*this;
    }

    virtual Achievement& SetProperty(const utility::string_t& name, const Variant& value) override
    {
        Object::SetProperty(name, value);
        return*this;
    }

    virtual Achievement& SetRemoteUrl(const utility::string_t& url) override
    {
        Object::SetRemoteUrl(url);
        return *this;
    }

    // EntityBase overrides

    virtual Achievement& SetUid(const utility::string_t& value) override
    {
        EntityBase::SetUid(value);
        return *this;
    }

    virtual Achievement& SetDateCreated(const datetime& value) override
    {
        EntityBase::SetDateCreated(value);
        return *this;
    }

    virtual Achievement& SetDateModified(const datetime& value) override
    {
        EntityBase::SetDateModified(value);
        return *this;
    }

    virtual Achievement& SetVersion(const uint64_t value) override
    {
        EntityBase::SetVersion(value);
        return *this;
    }

    static const utility::char_t* ClassName()
    {
        return _XPLATSTR("axr::sdk::models::Achievement");
    }

    void Validate() override;

    // Achievement members

    utility::string_t GetAchievementUid() const;
#ifdef AXR_COMPILE_SERVER
    Achievement& SetAchievementUid(const utility::string_t& value);
#endif // AXR_COMPILE_SERVER
    utility::string_t GetUserUid() const;

#ifdef AXR_COMPILE_SERVER
    Achievement& SetUserUid(const utility::string_t& value);
#endif // AXR_COMPILE_SERVER
};

} // namespace models
} // namespace axr
} // namespace sdk