-
Notifications
You must be signed in to change notification settings - Fork 137
Expand file tree
/
Copy pathlist_result_android.h
More file actions
46 lines (36 loc) · 1.42 KB
/
list_result_android.h
File metadata and controls
46 lines (36 loc) · 1.42 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
// File: storage/src/android/list_result_android.h
#ifndef FIREBASE_STORAGE_CLIENT_CPP_SRC_ANDROID_LIST_RESULT_ANDROID_H_
#define FIREBASE_STORAGE_CLIENT_CPP_SRC_ANDROID_LIST_RESULT_ANDROID_H_
#include <string>
#include <vector>
#include "firebase/storage/storage_reference.h"
#include "storage/src/android/storage_reference_android.h"
#include "storage/src/android/storage_internal_android.h"
namespace firebase {
namespace storage {
namespace internal {
class ListResultInternal {
public:
explicit ListResultInternal(
StorageReferenceInternal* platform_sri,
const ListResultInternal* other_to_copy_from = nullptr);
const std::vector<StorageReference>& items() const { return items_; }
const std::vector<StorageReference>& prefixes() const { return prefixes_; }
const std::string& page_token() const { return page_token_; }
StorageReferenceInternal* storage_reference_internal() const {
return platform_sri_;
}
StorageInternal* associated_storage_internal() const {
return platform_sri_ ? platform_sri_->storage_internal() : nullptr;
}
private:
ListResultInternal& operator=(const ListResultInternal&);
StorageReferenceInternal* platform_sri_;
std::vector<StorageReference> items_;
std::vector<StorageReference> prefixes_;
std::string page_token_;
};
} // namespace internal
} // namespace storage
} // namespace firebase
#endif // FIREBASE_STORAGE_CLIENT_CPP_SRC_ANDROID_LIST_RESULT_ANDROID_H_