From c01448ae8873f5b650402d2800ed24b8f49e803f Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Mon, 29 Aug 2022 08:21:28 +0000 Subject: [PATCH] get_game_url is added --- src/c2se/api/game.rs | 27 ++++++++++++++++++++++++ src/c2se/frontend/api/game.rs | 1 + src/ss/api/game.rs | 39 +++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) diff --git a/src/c2se/api/game.rs b/src/c2se/api/game.rs index 5c28bfa..138fff9 100644 --- a/src/c2se/api/game.rs +++ b/src/c2se/api/game.rs @@ -38,3 +38,30 @@ pub mod list_games_response { pub games: ::prost::alloc::vec::Vec, } } + +#[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// 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(uint64, tag = "2")] + pub balance: u64, + #[prost(string, tag = "3")] + pub url: ::prost::alloc::string::String, + } +} diff --git a/src/c2se/frontend/api/game.rs b/src/c2se/frontend/api/game.rs index df14503..eaf2066 100644 --- a/src/c2se/frontend/api/game.rs +++ b/src/c2se/frontend/api/game.rs @@ -1,3 +1,4 @@ const SUBJECT: &str = "bet.beteran.c2se.frontend.api.game"; pub const SUBJECT_LIST_GAMES: &str = const_format::concatcp!(SUBJECT, ".ListGames"); +pub const SUBJECT_GET_GAME_URL: &str = const_format::concatcp!(SUBJECT, ".GetGameUrl"); diff --git a/src/ss/api/game.rs b/src/ss/api/game.rs index 82f9e32..1190f7c 100644 --- a/src/ss/api/game.rs +++ b/src/ss/api/game.rs @@ -1,6 +1,7 @@ const SUBJECT: &str = "bet.beteran.ss.api.game"; pub const SUBJECT_LIST_GAMES: &str = const_format::concatcp!(SUBJECT, ".ListGames"); +pub const SUBJECT_GET_GAME_URL: &str = const_format::concatcp!(SUBJECT, ".GetGameUrl"); /// subject = bet.beteran.ss.api.game.ListGames #[derive(Clone, PartialEq, ::prost::Message)] @@ -53,3 +54,41 @@ pub mod list_games_response { pub games: ::prost::alloc::vec::Vec, } } + +/// subject = bet.beteran.ss.api.game.GetGameUrl +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct GetGameUrlRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `GetGameUrlRequest`. +pub mod get_game_url_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[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, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// 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(uint64, tag = "2")] + pub balance: u64, + #[prost(string, tag = "3")] + pub url: ::prost::alloc::string::String, + } +}