mikufans_proto/
bilibili.live.xroom_extend.api.v1.rs1#[derive(Clone, PartialEq, ::prost::Message)]
4pub struct SendReportInfoReq {
5 #[prost(int64, tag = "1")]
7 pub room_id: i64,
8 #[prost(string, tag = "2")]
10 pub report_tag: ::prost::alloc::string::String,
11 #[prost(string, tag = "3")]
13 pub report_reason: ::prost::alloc::string::String,
14 #[prost(string, tag = "4")]
16 pub pic_url: ::prost::alloc::string::String,
17 #[prost(string, tag = "5")]
19 pub play_stream: ::prost::alloc::string::String,
20}
21impl ::prost::Name for SendReportInfoReq {
22 const NAME: &'static str = "SendReportInfoReq";
23 const PACKAGE: &'static str = "bilibili.live.xroom_extend.api.v1";
24 fn full_name() -> ::prost::alloc::string::String {
25 "bilibili.live.xroom_extend.api.v1.SendReportInfoReq".into()
26 }
27 fn type_url() -> ::prost::alloc::string::String {
28 "/bilibili.live.xroom_extend.api.v1.SendReportInfoReq".into()
29 }
30}
31#[derive(Clone, PartialEq, ::prost::Message)]
33pub struct SendReportInfoResp {
34 #[prost(enumeration = "ReportStatus", tag = "1")]
36 pub report_status: i32,
37 #[prost(string, tag = "2")]
39 pub toast: ::prost::alloc::string::String,
40}
41impl ::prost::Name for SendReportInfoResp {
42 const NAME: &'static str = "SendReportInfoResp";
43 const PACKAGE: &'static str = "bilibili.live.xroom_extend.api.v1";
44 fn full_name() -> ::prost::alloc::string::String {
45 "bilibili.live.xroom_extend.api.v1.SendReportInfoResp".into()
46 }
47 fn type_url() -> ::prost::alloc::string::String {
48 "/bilibili.live.xroom_extend.api.v1.SendReportInfoResp".into()
49 }
50}
51#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
53#[repr(i32)]
54pub enum ReportStatus {
55 ReportException = 0,
57 ReportSuccess = 1,
59}
60impl ReportStatus {
61 pub fn as_str_name(&self) -> &'static str {
66 match self {
67 Self::ReportException => "REPORT_EXCEPTION",
68 Self::ReportSuccess => "REPORT_SUCCESS",
69 }
70 }
71 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
73 match value {
74 "REPORT_EXCEPTION" => Some(Self::ReportException),
75 "REPORT_SUCCESS" => Some(Self::ReportSuccess),
76 _ => None,
77 }
78 }
79}