|
|
@ -2,8 +2,8 @@ use crate::client_api::error::ApiResult;
|
|
|
|
use crate::client_api::IPCApi;
|
|
|
|
use crate::client_api::IPCApi;
|
|
|
|
use crate::types::files::{
|
|
|
|
use crate::types::files::{
|
|
|
|
FileMetadataResponse, FindFilesByTagsRequest, GetFileThumbnailOfSizeRequest,
|
|
|
|
FileMetadataResponse, FindFilesByTagsRequest, GetFileThumbnailOfSizeRequest,
|
|
|
|
GetFileThumbnailsRequest, ReadFileRequest, SortKey, TagQuery, ThumbnailFullResponse,
|
|
|
|
GetFileThumbnailsRequest, ReadFileRequest, SortKey, TagQuery, ThumbnailMetadataResponse,
|
|
|
|
ThumbnailMetadataResponse, UpdateFileNameRequest,
|
|
|
|
UpdateFileNameRequest,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
use crate::types::identifier::FileIdentifier;
|
|
|
|
use crate::types::identifier::FileIdentifier;
|
|
|
|
use async_trait::async_trait;
|
|
|
|
use async_trait::async_trait;
|
|
|
@ -107,7 +107,7 @@ where
|
|
|
|
min_size: (u32, u32),
|
|
|
|
min_size: (u32, u32),
|
|
|
|
max_size: (u32, u32),
|
|
|
|
max_size: (u32, u32),
|
|
|
|
) -> ApiResult<(ThumbnailMetadataResponse, Vec<u8>)> {
|
|
|
|
) -> ApiResult<(ThumbnailMetadataResponse, Vec<u8>)> {
|
|
|
|
let payload: ThumbnailFullResponse = self
|
|
|
|
let payload: TandemPayload<ThumbnailMetadataResponse, BytePayload> = self
|
|
|
|
.emit_and_get(
|
|
|
|
.emit_and_get(
|
|
|
|
"get_thumbnail_of_size",
|
|
|
|
"get_thumbnail_of_size",
|
|
|
|
GetFileThumbnailOfSizeRequest {
|
|
|
|
GetFileThumbnailOfSizeRequest {
|
|
|
|