Sendbird Chat SDK for Unreal
SBDFileMessageParams.h
1// Copyright (c) 2021 Sendbird, Inc. All rights reserved.
2
3#ifndef SENDBIRD_SBDFILEMESSAGEPARAMS_H_
4#define SENDBIRD_SBDFILEMESSAGEPARAMS_H_
5
6#include "SBDBaseChannel.h"
7#include "SBDFileMessage.h"
8
9#include <vector>
10#include <string>
11
18public:
25
32
41 SBDFileMessageParams& SetFileUrl(std::wstring file_url);
42
51 SBDFileMessageParams& SetFilePath(std::wstring file_path);
52
60 SBDFileMessageParams& SetFileName(std::wstring file_name);
61
69 SBDFileMessageParams& SetMimeType(std::wstring mime_type);
70
78 SBDFileMessageParams& SetFileSize(int64_t file_size);
79
87 SBDFileMessageParams& SetThumbnailSizes(std::vector<SBDThumbnailSize>& thumbnail_sizes);
88
96 SBDFileMessageParams& SetData(std::wstring data);
97
105 SBDFileMessageParams& SetCustomType(std::wstring custom_type);
106
107private:
108 // (file_url) or (file_path)
109 std::wstring file_url;
110 std::wstring file_path;
111
112 std::wstring file_name;
113 std::wstring mime_type;
114 int64_t file_size;
115
116 std::vector<SBDThumbnailSize> thumbnail_sizes;
117
118 std::wstring data;
119 std::wstring custom_type;
120
121 friend SBDBaseChannel;
122};
123
124#endif /* SENDBIRD_SBDFILEMESSAGEPARAMS_H_ */
Definition: SBDBaseChannel.h:271
Definition: SBDFileMessageParams.h:17
SBDFileMessageParams & SetMimeType(std::wstring mime_type)
SBDFileMessageParams & SetData(std::wstring data)
SBDFileMessageParams & SetCustomType(std::wstring custom_type)
SBDFileMessageParams & SetFileSize(int64_t file_size)
SBDFileMessageParams & SetFileName(std::wstring file_name)
SBDFileMessageParams & SetFileUrl(std::wstring file_url)
SBDFileMessageParams & SetFilePath(std::wstring file_path)
SBDFileMessageParams & SetThumbnailSizes(std::vector< SBDThumbnailSize > &thumbnail_sizes)