// This file is auto-generated, don't edit it. Thanks. using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Threading.Tasks; using Tea; using Tea.Utils; using Darabonba.Test.Models; namespace Darabonba.Test { public class Client { // type's comment protected List _a; /// Description: /// /// Init Func /// // comment between init and annotation public Client() { // string declate comment string str = "sss"; // new model instance comment Test1 modelInstance = new Test1 { Test = "test", //test declare back comment Test2 = "test2", //test2 declare back comment }; List array = new List { // array string comment "string", // array number comment 300 // array back comment }; } /// Description: /// /// testAPI /// //testAPI comment one //testAPI comment two public void TestAPI() { Dictionary runtime_ = new Dictionary() { // empty runtime comment // another runtime comment }; TeaRequest _lastRequest = null; Exception _lastException = null; long _now = System.DateTime.Now.Millisecond; int _retryTimes = 0; while (TeaCore.AllowRetry((IDictionary) runtime_["retry"], _retryTimes, _now)) { if (_retryTimes > 0) { int backoffTime = TeaCore.GetBackoffTime((IDictionary)runtime_["backoff"], _retryTimes); if (backoffTime > 0) { TeaCore.Sleep(backoffTime); } } _retryTimes = _retryTimes + 1; try { TeaRequest request_ = new TeaRequest(); // new model instance comment Test1 modelInstance = new Test1 { // test declare front comment Test = "test", // test2 declare front comment Test2 = "test2", }; // number declare comment int? num = 123; // static function call comment StaticFunc(); _lastRequest = request_; TeaResponse response_ = TeaCore.DoAction(request_, runtime_); // static async function call TestFunc(); // return comment return ; } catch (Exception e) { if (TeaCore.IsRetryable(e)) { _lastException = e; continue; } throw e; } } throw new TeaUnretryableException(_lastRequest, _lastException); } /// Description: /// /// testAPI /// //testAPI comment one //testAPI comment two public async Task TestAPIAsync() { Dictionary runtime_ = new Dictionary() { // empty runtime comment // another runtime comment }; TeaRequest _lastRequest = null; Exception _lastException = null; long _now = System.DateTime.Now.Millisecond; int _retryTimes = 0; while (TeaCore.AllowRetry((IDictionary) runtime_["retry"], _retryTimes, _now)) { if (_retryTimes > 0) { int backoffTime = TeaCore.GetBackoffTime((IDictionary)runtime_["backoff"], _retryTimes); if (backoffTime > 0) { TeaCore.Sleep(backoffTime); } } _retryTimes = _retryTimes + 1; try { TeaRequest request_ = new TeaRequest(); // new model instance comment Test1 modelInstance = new Test1 { // test declare front comment Test = "test", // test2 declare front comment Test2 = "test2", }; // number declare comment int? num = 123; // static function call comment StaticFunc(); _lastRequest = request_; TeaResponse response_ = await TeaCore.DoActionAsync(request_, runtime_); // static async function call await TestFuncAsync(); // return comment return ; } catch (Exception e) { if (TeaCore.IsRetryable(e)) { _lastException = e; continue; } throw e; } } throw new TeaUnretryableException(_lastRequest, _lastException); } // testAPI2 comment public void TestAPI2() { Dictionary runtime_ = new Dictionary { // runtime retry comment {"retry", true}, // runtime back comment one // runtime back comment two }; TeaRequest _lastRequest = null; Exception _lastException = null; long _now = System.DateTime.Now.Millisecond; int _retryTimes = 0; while (TeaCore.AllowRetry((IDictionary) runtime_["retry"], _retryTimes, _now)) { if (_retryTimes > 0) { int backoffTime = TeaCore.GetBackoffTime((IDictionary)runtime_["backoff"], _retryTimes); if (backoffTime > 0) { TeaCore.Sleep(backoffTime); } } _retryTimes = _retryTimes + 1; try { TeaRequest request_ = new TeaRequest(); // new model instance comment Test3 modelInstance = new Test3(); // boolean declare comment bool? bool_ = true; if (bool_.Value) { //empty if } else { //empty else } // api function call comment TestAPI(); // back comment _lastRequest = request_; TeaResponse response_ = TeaCore.DoAction(request_, runtime_); // empty return comment } catch (Exception e) { if (TeaCore.IsRetryable(e)) { _lastException = e; continue; } throw e; } } throw new TeaUnretryableException(_lastRequest, _lastException); } // testAPI2 comment public async Task TestAPI2Async() { Dictionary runtime_ = new Dictionary { // runtime retry comment {"retry", true}, // runtime back comment one // runtime back comment two }; TeaRequest _lastRequest = null; Exception _lastException = null; long _now = System.DateTime.Now.Millisecond; int _retryTimes = 0; while (TeaCore.AllowRetry((IDictionary) runtime_["retry"], _retryTimes, _now)) { if (_retryTimes > 0) { int backoffTime = TeaCore.GetBackoffTime((IDictionary)runtime_["backoff"], _retryTimes); if (backoffTime > 0) { TeaCore.Sleep(backoffTime); } } _retryTimes = _retryTimes + 1; try { TeaRequest request_ = new TeaRequest(); // new model instance comment Test3 modelInstance = new Test3(); // boolean declare comment bool? bool_ = true; if (bool_.Value) { //empty if } else { //empty else } // api function call comment await TestAPIAsync(); // back comment _lastRequest = request_; TeaResponse response_ = await TeaCore.DoActionAsync(request_, runtime_); // empty return comment } catch (Exception e) { if (TeaCore.IsRetryable(e)) { _lastException = e; continue; } throw e; } } throw new TeaUnretryableException(_lastRequest, _lastException); } public static void StaticFunc() { List a = new List { }; } /// Description: /// /// testFunc /// public static void TestFunc() { // empty comment1 // empty comment2 } /// Description: /// /// testFunc /// public static async Task TestFuncAsync() { // empty comment1 // empty comment2 } /// Summary: /// /// annotation test summary /// /// /// Description: /// /// annotation test description /// /// description1 test for md2Xml /// description2 test for md2Xml /// /// /// /// /// string param1 /// /// /// string param2 /// /// /// /// void /// /// /// Exception: /// InternalError Server error. 500 服务器端出现未知异常。 /// /// Exception: /// StackNotFound The Stack (%(stack_name)s) could not be found. 404 资源栈不存在。 public static void TestFuncWithAnnotation1(string test, string _test) { // empty comment1 // empty comment2 } /// Summary: /// /// annotation test summary /// /// /// Description: /// /// annotation test description /// /// description1 test for md2Xml /// description2 test for md2Xml /// /// /// /// /// string param1 /// /// /// string param2 /// /// /// /// void /// /// /// Exception: /// InternalError Server error. 500 服务器端出现未知异常。 /// /// Exception: /// StackNotFound The Stack (%(stack_name)s) could not be found. 404 资源栈不存在。 public static async Task TestFuncWithAnnotation1Async(string test, string _test) { // empty comment1 // empty comment2 } /// Deprecated /// /// this is deprecated, use new xx instead. /// /// Summary: /// /// annotation test summary /// /// /// /// string param1 /// /// /// string param2 /// /// /// /// void /// /// /// Exception: /// InternalError Server error. 500 服务器端出现未知异常。 /// /// Exception: /// StackNotFound The Stack (%(stack_name)s) could not be found. 404 资源栈不存在。 [Obsolete("this is deprecated, use new xx instead.")] public static void TestFuncWithAnnotation2(string test, string _test) { // empty comment1 // empty comment2 } /// Deprecated /// /// this is deprecated, use new xx instead. /// /// Summary: /// /// annotation test summary /// /// /// /// string param1 /// /// /// string param2 /// /// /// /// void /// /// /// Exception: /// InternalError Server error. 500 服务器端出现未知异常。 /// /// Exception: /// StackNotFound The Stack (%(stack_name)s) could not be found. 404 资源栈不存在。 [Obsolete("this is deprecated, use new xx instead.")] public static async Task TestFuncWithAnnotation2Async(string test, string _test) { // empty comment1 // empty comment2 } /// Deprecated /// /// test is deprecated, use xxx instead. /// deprecated description1 /// deprecated description2 /// /// Summary: /// /// annotation test summary /// summary description1 /// summary description2 /// /// /// /// string param1 /// /// /// string param2 /// /// /// /// void /// /// /// Exception: /// InternalError Server error. 500 服务器端出现未知异常。 [Obsolete("test is deprecated, use xxx instead.\ndeprecated description1\ndeprecated description2")] public static void MultiLineAnnotation(string test, string _test) { } /// Deprecated /// /// test is deprecated, use xxx instead. /// deprecated description1 /// deprecated description2 /// /// Summary: /// /// annotation test summary /// summary description1 /// summary description2 /// /// /// /// string param1 /// /// /// string param2 /// /// /// /// void /// /// /// Exception: /// InternalError Server error. 500 服务器端出现未知异常。 [Obsolete("test is deprecated, use xxx instead.\ndeprecated description1\ndeprecated description2")] public static async Task MultiLineAnnotationAsync(string test, string _test) { } /// Deprecated /// /// deprecated test for line break. /// /// /// string param1 /// param test for line break. /// /// /// string param2 /// /// /// /// void /// return test for line break. /// /// /// Exception: /// InternalError Server error. 500 服务器端出现未知异常。 /// throws test for line break. [Obsolete("deprecated test for line break.")] public static void LineBreakAnnotation(string test, string _test) { } /// Deprecated /// /// deprecated test for line break. /// /// /// string param1 /// param test for line break. /// /// /// string param2 /// /// /// /// void /// return test for line break. /// /// /// Exception: /// InternalError Server error. 500 服务器端出现未知异常。 /// throws test for line break. [Obsolete("deprecated test for line break.")] public static async Task LineBreakAnnotationAsync(string test, string _test) { } } }