5cbda834bd
GitOrigin-RevId: 1369d3af1195221f6ddb9462d5f8b74fb5fef20f
35 lines
996 B
C++
35 lines
996 B
C++
//
|
|
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018
|
|
//
|
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
//
|
|
#pragma once
|
|
|
|
#include "td/telegram/DialogId.h"
|
|
#include "td/telegram/files/FileLocation.h"
|
|
|
|
#include "td/utils/common.h"
|
|
|
|
namespace td {
|
|
|
|
struct FileGcParameters {
|
|
FileGcParameters() : FileGcParameters(-1, -1, -1, -1, {}, {}, {}, 0) {
|
|
}
|
|
FileGcParameters(int64 size, int32 ttl, int32 count, int32 immunity_delay, vector<FileType> file_types,
|
|
vector<DialogId> owner_dialog_ids, vector<DialogId> exclude_owner_dialog_ids, int32 dialog_limit);
|
|
|
|
int64 max_files_size;
|
|
uint32 max_time_from_last_access;
|
|
uint32 max_file_count;
|
|
uint32 immunity_delay;
|
|
|
|
vector<FileType> file_types;
|
|
vector<DialogId> owner_dialog_ids;
|
|
vector<DialogId> exclude_owner_dialog_ids;
|
|
|
|
int32 dialog_limit;
|
|
};
|
|
|
|
} // namespace td
|