forked from hiero-ledger/hiero-sdk-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileService.h
More file actions
69 lines (59 loc) · 1.75 KB
/
FileService.h
File metadata and controls
69 lines (59 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// SPDX-License-Identifier: Apache-2.0
#ifndef HIERO_TCK_CPP_FILE_SERVICE_H_
#define HIERO_TCK_CPP_FILE_SERVICE_H_
#include <nlohmann/json_fwd.hpp>
namespace Hiero::TCK::FileService
{
/**
* Forward declarations.
*/
struct AppendFileParams;
struct CreateFileParams;
struct DeleteFileParams;
struct GetFileContentsParams;
struct GetFileInfoParams;
struct UpdateFileParams;
/**
* The parameters to use to append a file.
*
* @param params The parameters use to append a file.
* @return A JSON response containing the status of the appended file.
*/
nlohmann::json appendFile(const AppendFileParams& params);
/**
* Create a file.
*
* @param params The parameters to use to create a file.
* @return A JSON response containing the created file ID and the status of the file creation.
*/
nlohmann::json createFile(const CreateFileParams& params);
/**
* Delete a file.
*
* @param params The parameters to use to delete a file.
* @return A JSON response containing the status of the file deletion.
*/
nlohmann::json deleteFile(const DeleteFileParams& params);
/**
* Get file contents.
*
* @param params The parameters to use to get the content of file.
* @return A JSON response containing the file contents.
*/
nlohmann::json getFileContents(const GetFileContentsParams& params);
/**
* Get file info.
*
* @param params The parameters to use to get file info.
* @return A JSON response containing the file info.
*/
nlohmann::json getFileInfo(const GetFileInfoParams& params);
/**
* Update a file.
*
* @param params The parameters to use to update a file.
* @return A JSON response containing the status of the file update.
*/
nlohmann::json updateFile(const UpdateFileParams& params);
} // namespace Hiero::TCK::FileService
#endif // HIERO_TCK_CPP_FILE_SERVICE_H_