NERoom SDK V1.32.0
载入中...
搜索中...
未找到
nos_service_interface.h
浏览该文件的文档.
1// Copyright (c) 2022 NetEase, Inc. All rights reserved.
2// Use of this source code is governed by a MIT license that can be
3// found in the LICENSE file.
4
11#ifndef NOS_SERVICE_INTERFACE_H
12#define NOS_SERVICE_INTERFACE_H
13
15#include "base_type_defines.h"
16#include "error_code_defines.h"
17
18namespace neroom {
19
21public:
23
24public:
28 INENosService() = default;
29
33 virtual ~INENosService() = default;
34
40 virtual void setNosDownloadFilePath(const std::string& path) = 0;
41
48 virtual void uploadResource(const std::string& path, const NENosServiceCallback& cb) = 0;
49};
50
51} // namespace neroom
52
53#endif // NOS_SERVICE_INTERFACE_H
基础服务接口头文件
基本类型定义头文件
INENosService()=default
构造函数
virtual ~INENosService()=default
析构函数
virtual void uploadResource(const std::string &path, const NENosServiceCallback &cb)=0
上传文件
NECallback< const std::string & > NENosServiceCallback
virtual void setNosDownloadFilePath(const std::string &path)=0
设置默认下载路径
错误码定义头文件
std::function< void(int, const std::string &, const TResultParam &...)> NECallback
通用回调