1#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct GetMoreLiveRoomsReq {
5 #[prost(int64, tag = "1")]
7 pub room_id: i64,
8 #[prost(message, optional, tag = "2")]
10 pub idol_pagination: ::core::option::Option<
11 super::super::super::super::super::super::pagination::Pagination,
12 >,
13 #[prost(message, optional, tag = "3")]
15 pub rooms_pagination: ::core::option::Option<
16 super::super::super::super::super::super::pagination::Pagination,
17 >,
18 #[prost(int64, tag = "4")]
20 pub uid: i64,
21}
22#[derive(Clone, PartialEq, ::prost::Message)]
24pub struct GetMoreLiveRoomsResp {
25 #[prost(message, optional, tag = "1")]
27 pub idol_pagination_reply: ::core::option::Option<
28 super::super::super::super::super::super::pagination::PaginationReply,
29 >,
30 #[prost(message, optional, tag = "2")]
32 pub rooms_pagination_reply: ::core::option::Option<
33 super::super::super::super::super::super::pagination::PaginationReply,
34 >,
35 #[prost(bool, tag = "3")]
37 pub idol_has_more: bool,
38 #[prost(message, repeated, tag = "4")]
40 pub my_idol_info: ::prost::alloc::vec::Vec<MyIdolInfo>,
41 #[prost(message, repeated, tag = "5")]
43 pub more_live_info: ::prost::alloc::vec::Vec<MoreLiveRoomInfo>,
44 #[prost(message, repeated, tag = "6")]
46 pub view_history: ::prost::alloc::vec::Vec<ViewHistory>,
47}
48#[derive(Clone, PartialEq, ::prost::Message)]
50pub struct GetViewHistoryReq {
51 #[prost(int64, tag = "1")]
53 pub uid: i64,
54 #[prost(message, optional, tag = "2")]
56 pub pagination: ::core::option::Option<
57 super::super::super::super::super::super::pagination::Pagination,
58 >,
59}
60#[derive(Clone, PartialEq, ::prost::Message)]
62pub struct GetViewHistoryResp {
63 #[prost(message, repeated, tag = "1")]
65 pub history: ::prost::alloc::vec::Vec<ViewHistory>,
66 #[prost(message, optional, tag = "2")]
68 pub pagination_reply: ::core::option::Option<
69 super::super::super::super::super::super::pagination::PaginationReply,
70 >,
71}
72#[derive(Clone, PartialEq, ::prost::Message)]
74pub struct MoreLiveRoomInfo {
75 #[prost(int64, tag = "1")]
77 pub room_id: i64,
78 #[prost(string, tag = "2")]
80 pub uname: ::prost::alloc::string::String,
81 #[prost(string, tag = "3")]
83 pub room_cover: ::prost::alloc::string::String,
84 #[prost(string, tag = "4")]
86 pub room_title: ::prost::alloc::string::String,
87 #[prost(enumeration = "RoomType", tag = "5")]
89 pub room_type: i32,
90 #[prost(string, tag = "6")]
92 pub text_small: ::prost::alloc::string::String,
93 #[prost(string, tag = "7")]
95 pub icon: ::prost::alloc::string::String,
96 #[prost(string, tag = "8")]
98 pub area_name: ::prost::alloc::string::String,
99 #[prost(string, tag = "9")]
101 pub link: ::prost::alloc::string::String,
102 #[prost(string, tag = "10")]
104 pub face: ::prost::alloc::string::String,
105}
106#[derive(Clone, PartialEq, ::prost::Message)]
108pub struct MyIdolInfo {
109 #[prost(int64, tag = "1")]
111 pub room_id: i64,
112 #[prost(int64, tag = "2")]
114 pub uid: i64,
115 #[prost(string, tag = "3")]
117 pub uname: ::prost::alloc::string::String,
118 #[prost(string, tag = "4")]
120 pub face: ::prost::alloc::string::String,
121 #[prost(string, tag = "5")]
123 pub title: ::prost::alloc::string::String,
124 #[prost(string, tag = "6")]
126 pub link: ::prost::alloc::string::String,
127}
128#[derive(Clone, PartialEq, ::prost::Message)]
130pub struct RemoveViewHistoryReq {
131 #[prost(int64, repeated, tag = "1")]
133 pub kids: ::prost::alloc::vec::Vec<i64>,
134 #[prost(int64, tag = "2")]
136 pub uid: i64,
137 #[prost(string, tag = "3")]
139 pub buvid: ::prost::alloc::string::String,
140}
141#[derive(Clone, Copy, PartialEq, ::prost::Message)]
143pub struct RemoveViewHistoryResp {}
144#[derive(Clone, PartialEq, ::prost::Message)]
146pub struct ViewHistory {
147 #[prost(int64, tag = "1")]
149 pub kid: i64,
150 #[prost(int64, tag = "2")]
152 pub anchor_uid: i64,
153 #[prost(string, tag = "3")]
155 pub uname: ::prost::alloc::string::String,
156 #[prost(string, tag = "4")]
158 pub face: ::prost::alloc::string::String,
159 #[prost(int64, tag = "5")]
161 pub room_id: i64,
162 #[prost(string, tag = "6")]
164 pub title: ::prost::alloc::string::String,
165 #[prost(string, tag = "7")]
167 pub cover: ::prost::alloc::string::String,
168 #[prost(int64, tag = "8")]
170 pub living_status: i64,
171 #[prost(int64, tag = "9")]
173 pub parent_area_id: i64,
174 #[prost(string, tag = "10")]
176 pub parent_area_name: ::prost::alloc::string::String,
177 #[prost(int64, tag = "11")]
179 pub area_id: i64,
180 #[prost(string, tag = "12")]
182 pub area_name: ::prost::alloc::string::String,
183 #[prost(bool, tag = "13")]
185 pub follow_status: bool,
186 #[prost(int64, tag = "14")]
188 pub view_time: i64,
189 #[prost(string, tag = "15")]
191 pub device: ::prost::alloc::string::String,
192 #[prost(string, tag = "16")]
194 pub link: ::prost::alloc::string::String,
195}
196#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
198#[repr(i32)]
199pub enum RoomType {
200 Watched = 0,
202 Popularity = 1,
204}
205impl RoomType {
206 pub fn as_str_name(&self) -> &'static str {
211 match self {
212 Self::Watched => "Watched",
213 Self::Popularity => "Popularity",
214 }
215 }
216 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
218 match value {
219 "Watched" => Some(Self::Watched),
220 "Popularity" => Some(Self::Popularity),
221 _ => None,
222 }
223 }
224}