Program Listing for File UserSecretService.h

Return to documentation for file (axr.sdk/services/UserSecretService.h)

// Copyright (C) AcceleratXR, Inc. All rights reserved.
//
// Author: Jean-Philippe Steinmetz <info@acceleratxr.com>
//
// NOTE: This file was auto generated by the AcceleratXR code generator.
// https://gitlab.com/AcceleratXR/Core/code_generator.git
#pragma once

#include "axr.sdk/net/IApiClient.h"
#include "axr.sdk/ServiceBase.h"
#include "axr.sdk/models/UserSecret.h"
#include "axr.sdk/utils/StringUtils.h"
#include "axr.sdk/models/UserSecret.h"
#include "axr.sdk/models/AuthToken.h"

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

namespace axr {
namespace sdk {

namespace services {

using namespace axr::sdk::models;

class UserSecretService : public ServiceBase<UserSecret> {
public:
    UserSecretService(std::shared_ptr<Configuration> config, std::shared_ptr<net::IApiClient> apiClient)
        : ServiceBase(config, apiClient)
    {}

    ~UserSecretService() {}

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

    pplx::task<std::vector<std::shared_ptr<UserSecret>>> FindAll(const utility::string_t& userId, const std::map<utility::string_t,utility::string_t>* searchParams = nullptr, const uint16_t startIndex = 0, const uint16_t maxResults = 1000, const utility::string_t& sortBy = _XPLATSTR(""));

    pplx::task<std::shared_ptr<UserSecret>> Create(const utility::string_t& userId, std::shared_ptr<UserSecret> obj);

    pplx::task<std::shared_ptr<UserSecret>> FindById(const utility::string_t& userId, const utility::string_t& id);

    pplx::task<std::shared_ptr<UserSecret>> Update(const utility::string_t& userId, const utility::string_t& id, std::shared_ptr<UserSecret> obj);

    pplx::task<void> Delete(const utility::string_t& userId, const utility::string_t& id);

};

} // namespace services
} // namespace axr
} // namespace sdk