69 lines
2.6 KiB
Rust
69 lines
2.6 KiB
Rust
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
pub struct ListGamesRequest {
|
|
#[prost(message, optional, tag = "1")]
|
|
pub pagination: ::core::option::Option<crate::protobuf::pagination::Pagination>,
|
|
#[prost(message, repeated, tag = "2")]
|
|
pub sorts: ::prost::alloc::vec::Vec<crate::protobuf::pagination::Sort>,
|
|
#[prost(message, optional, tag = "3")]
|
|
pub search: ::core::option::Option<list_games_request::Search>,
|
|
}
|
|
/// Nested message and enum types in `ListGamesRequest`.
|
|
pub mod list_games_request {
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
pub struct Search {
|
|
#[prost(uint64, optional, tag = "1")]
|
|
pub parent_id: ::core::option::Option<u64>,
|
|
#[prost(string, optional, tag = "2")]
|
|
pub key_like: ::core::option::Option<::prost::alloc::string::String>,
|
|
#[prost(string, optional, tag = "3")]
|
|
pub platform_like: ::core::option::Option<::prost::alloc::string::String>,
|
|
#[prost(string, optional, tag = "4")]
|
|
pub category_like: ::core::option::Option<::prost::alloc::string::String>,
|
|
#[prost(string, optional, tag = "5")]
|
|
pub game_type_like: ::core::option::Option<::prost::alloc::string::String>,
|
|
}
|
|
}
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
pub struct ListGamesResponse {
|
|
#[prost(message, optional, tag = "1")]
|
|
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
|
#[prost(message, optional, tag = "2")]
|
|
pub result: ::core::option::Option<list_games_response::Result>,
|
|
}
|
|
/// Nested message and enum types in `ListGamesResponse`.
|
|
pub mod list_games_response {
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
pub struct Result {
|
|
#[prost(uint64, tag = "1")]
|
|
pub total_count: u64,
|
|
#[prost(message, repeated, tag = "2")]
|
|
pub games: ::prost::alloc::vec::Vec<crate::models::api::game::Game>,
|
|
}
|
|
}
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
pub struct GetGameUrlRequest {
|
|
#[prost(string, tag = "1")]
|
|
pub vendor_key: ::prost::alloc::string::String,
|
|
#[prost(string, tag = "2")]
|
|
pub game_key: ::prost::alloc::string::String,
|
|
}
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
pub struct GetGameUrlResponse {
|
|
#[prost(message, optional, tag = "1")]
|
|
pub error: ::core::option::Option<crate::protobuf::rpc::Error>,
|
|
#[prost(message, optional, tag = "2")]
|
|
pub result: ::core::option::Option<get_game_url_response::Result>,
|
|
}
|
|
/// Nested message and enum types in `GetGameUrlResponse`.
|
|
pub mod get_game_url_response {
|
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
|
pub struct Result {
|
|
#[prost(uint64, tag = "1")]
|
|
pub user_id: u64,
|
|
#[prost(double, tag = "2")]
|
|
pub balance: f64,
|
|
#[prost(string, tag = "3")]
|
|
pub url: ::prost::alloc::string::String,
|
|
}
|
|
}
|