Skip to main content

engage/generated/unity_engine/resource_management/
webrequestqueueoperation.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-resource_management-webrequestqueueoperation-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/resource_management/webrequestqueueoperation/WebRequestQueueOperation.md"))]
11    #[::unity::class(namespace = "UnityEngine.ResourceManagement", name = "WebRequestQueueOperation")]
12    #[parent(crate::system::object::Object)]
13    pub struct WebRequestQueueOperation {
14        #[offset(16)]
15        #[rename(name = "Result")]
16        pub result: crate::unity_engine::networking::unitywebrequestasyncoperation::UnityWebRequestAsyncOperation,
17        #[offset(24)]
18        #[rename(name = "OnComplete")]
19        pub on_complete:
20            crate::system::action_1::Action_1<crate::unity_engine::networking::unitywebrequestasyncoperation::UnityWebRequestAsyncOperation>,
21        #[offset(32)]
22        #[rename(name = "m_WebRequest")]
23        pub m_web_request: crate::unity_engine::networking::unitywebrequest::UnityWebRequest,
24    }
25}
26
27#[cfg(feature = "unity_engine-resource_management-webrequestqueueoperation-types")]
28pub use __types::*;
29
30#[cfg(feature = "unity_engine-resource_management-webrequestqueueoperation")]
31#[doc(hidden)]
32#[allow(non_snake_case, non_camel_case_types, clippy::too_many_arguments)]
33mod __WebRequestQueueOperation_unity_raw {
34    use super::*;
35    #[doc(hidden)]
36    #[allow(non_snake_case)]
37    pub mod __lookup_get_is_done {
38        use super::*;
39        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
40            let param_types: &[&'static ::unity::il2cpp::Il2CppType] = &[];
41            ::unity::lookup::method_info_on_class_with_signature(
42                <WebRequestQueueOperation as ::unity::ClassIdentity>::class(),
43                "get_IsDone",
44                0,
45                param_types,
46                false,
47            )
48        });
49        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
50            match &*METHOD {
51                ::core::result::Result::Ok(mi) => *mi,
52                ::core::result::Result::Err(e) => {
53                    panic!(
54                        "method lookup failed: {}
55::{}
56: {}
57",
58                        <WebRequestQueueOperation as ::unity::ClassIdentity>::NAME,
59                        "get_IsDone",
60                        e
61                    )
62                },
63            }
64        }
65    }
66    #[doc(hidden)]
67    #[allow(non_snake_case)]
68    pub mod __lookup_ctor {
69        use super::*;
70        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
71            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
72                &[<crate::unity_engine::networking::unitywebrequest::UnityWebRequest as ::unity::IlType>::il_type()];
73            ::unity::lookup::method_info_on_class_with_signature(
74                <WebRequestQueueOperation as ::unity::ClassIdentity>::class(),
75                ".ctor",
76                1,
77                param_types,
78                false,
79            )
80        });
81        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
82            match &*METHOD {
83                ::core::result::Result::Ok(mi) => *mi,
84                ::core::result::Result::Err(e) => {
85                    panic!(
86                        "method lookup failed: {}
87::{}
88: {}
89",
90                        <WebRequestQueueOperation as ::unity::ClassIdentity>::NAME,
91                        ".ctor",
92                        e
93                    )
94                },
95            }
96        }
97    }
98    #[doc(hidden)]
99    #[allow(non_snake_case)]
100    pub mod __lookup_complete {
101        use super::*;
102        static METHOD: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
103            let param_types: &[&'static ::unity::il2cpp::Il2CppType] =
104                &[<crate::unity_engine::networking::unitywebrequestasyncoperation::UnityWebRequestAsyncOperation as ::unity::IlType>::il_type()];
105            ::unity::lookup::method_info_on_class_with_signature(
106                <WebRequestQueueOperation as ::unity::ClassIdentity>::class(),
107                "Complete",
108                1,
109                param_types,
110                false,
111            )
112        });
113        pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114            match &*METHOD {
115                ::core::result::Result::Ok(mi) => *mi,
116                ::core::result::Result::Err(e) => {
117                    panic!(
118                        "method lookup failed: {}
119::{}
120: {}
121",
122                        <WebRequestQueueOperation as ::unity::ClassIdentity>::NAME,
123                        "Complete",
124                        e
125                    )
126                },
127            }
128        }
129    }
130}
131
132#[cfg(feature = "unity_engine-resource_management-webrequestqueueoperation")]
133pub trait IWebRequestQueueOperationMethods: IWebRequestQueueOperation {
134    #[doc = "`get_IsDone()` overload"]
135    fn get_is_done(self) -> bool {
136        unsafe {
137            let __receiver =
138                <WebRequestQueueOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            ::unity::il2cpp_call!(__WebRequestQueueOperation_unity_raw::__lookup_get_is_done::get_method_info().method_ptr,bool;
140(WebRequestQueueOperation)__receiver)
141        }
142    }
143    #[doc = "`.ctor(crate::unity_engine::networking::unitywebrequest::UnityWebRequest)` overload"]
144    fn ctor(self, request: impl ::core::convert::Into<crate::unity_engine::networking::unitywebrequest::UnityWebRequest>) -> () {
145        unsafe {
146            let __receiver =
147                <WebRequestQueueOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148            ::unity::il2cpp_call!(__WebRequestQueueOperation_unity_raw::__lookup_ctor::get_method_info().method_ptr,();
149(WebRequestQueueOperation)__receiver,(crate::unity_engine::networking::unitywebrequest::UnityWebRequest)::core::convert::Into::into(request))
150        }
151    }
152    #[doc = "`Complete(crate::unity_engine::networking::unitywebrequestasyncoperation::UnityWebRequestAsyncOperation)` overload"]
153    fn complete(
154        self,
155        async_op: impl ::core::convert::Into<crate::unity_engine::networking::unitywebrequestasyncoperation::UnityWebRequestAsyncOperation>,
156    ) -> () {
157        unsafe {
158            let __receiver =
159                <WebRequestQueueOperation as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160            ::unity::il2cpp_call!(__WebRequestQueueOperation_unity_raw::__lookup_complete::get_method_info().method_ptr,();
161(WebRequestQueueOperation)__receiver,(crate::unity_engine::networking::unitywebrequestasyncoperation::UnityWebRequestAsyncOperation)::core::convert::Into::into(async_op))
162        }
163    }
164}
165
166#[cfg(feature = "unity_engine-resource_management-webrequestqueueoperation")]
167impl<__T: IWebRequestQueueOperation> IWebRequestQueueOperationMethods for __T {}
168
169#[cfg(feature = "unity_engine-resource_management-webrequestqueueoperation")]
170impl WebRequestQueueOperation {
171    pub fn get_is_done_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
173    }
174
175    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
176        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
177    }
178
179    pub fn complete_method_info() -> &'static ::unity::il2cpp::MethodInfo {
180        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
181    }
182}
183
184#[cfg(feature = "unity_engine-resource_management-webrequestqueueoperation")]
185impl WebRequestQueueOperation {
186    #[doc = "`.ctor(crate::unity_engine::networking::unitywebrequest::UnityWebRequest)` — overload selector"]
187    pub fn new(request: crate::unity_engine::networking::unitywebrequest::UnityWebRequest) -> Self {
188        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
189            panic!(
190                "{}
191::{}
192 failed to instantiate",
193                ::core::stringify!(WebRequestQueueOperation),
194                ::core::stringify!(new),
195            )
196        });
197        <Self as IWebRequestQueueOperationMethods>::ctor(this, request);
198        this
199    }
200}
201
202#[cfg(feature = "unity_engine-resource_management-webrequestqueueoperation")]
203#[doc(hidden)]
204pub mod prelude {
205    pub use super::{IWebRequestQueueOperation, IWebRequestQueueOperationMethods, WebRequestQueueOperation};
206    pub use crate::system::object::IObject;
207    #[cfg(feature = "system-object")]
208    pub use crate::system::object::IObjectMethods;
209}