Reference.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // 此代码由工具生成。
  4. // 运行时版本:4.0.30319.42000
  5. //
  6. // 对此文件的更改可能会导致不正确的行为,并且如果
  7. // 重新生成代码,这些更改将会丢失。
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. namespace WebService.Test.Ws {
  11. using System.Runtime.Serialization;
  12. using System;
  13. [System.Diagnostics.DebuggerStepThroughAttribute()]
  14. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
  15. [System.Runtime.Serialization.DataContractAttribute(Name="AjaxResultWs", Namespace="http://tempuri.org/")]
  16. [System.SerializableAttribute()]
  17. public partial class AjaxResultWs : object, System.Runtime.Serialization.IExtensibleDataObject, System.ComponentModel.INotifyPropertyChanged {
  18. [System.NonSerializedAttribute()]
  19. private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
  20. private bool SuccessField;
  21. [System.Runtime.Serialization.OptionalFieldAttribute()]
  22. private string MessageField;
  23. [System.Runtime.Serialization.OptionalFieldAttribute()]
  24. private string IdField;
  25. [System.Runtime.Serialization.OptionalFieldAttribute()]
  26. private string NameField;
  27. private bool IsCompleteField;
  28. private int TotalCountField;
  29. [global::System.ComponentModel.BrowsableAttribute(false)]
  30. public System.Runtime.Serialization.ExtensionDataObject ExtensionData {
  31. get {
  32. return this.extensionDataField;
  33. }
  34. set {
  35. this.extensionDataField = value;
  36. }
  37. }
  38. [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
  39. public bool Success {
  40. get {
  41. return this.SuccessField;
  42. }
  43. set {
  44. if ((this.SuccessField.Equals(value) != true)) {
  45. this.SuccessField = value;
  46. this.RaisePropertyChanged("Success");
  47. }
  48. }
  49. }
  50. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)]
  51. public string Message {
  52. get {
  53. return this.MessageField;
  54. }
  55. set {
  56. if ((object.ReferenceEquals(this.MessageField, value) != true)) {
  57. this.MessageField = value;
  58. this.RaisePropertyChanged("Message");
  59. }
  60. }
  61. }
  62. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)]
  63. public string Id {
  64. get {
  65. return this.IdField;
  66. }
  67. set {
  68. if ((object.ReferenceEquals(this.IdField, value) != true)) {
  69. this.IdField = value;
  70. this.RaisePropertyChanged("Id");
  71. }
  72. }
  73. }
  74. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)]
  75. public string Name {
  76. get {
  77. return this.NameField;
  78. }
  79. set {
  80. if ((object.ReferenceEquals(this.NameField, value) != true)) {
  81. this.NameField = value;
  82. this.RaisePropertyChanged("Name");
  83. }
  84. }
  85. }
  86. [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true, Order=4)]
  87. public bool IsComplete {
  88. get {
  89. return this.IsCompleteField;
  90. }
  91. set {
  92. if ((this.IsCompleteField.Equals(value) != true)) {
  93. this.IsCompleteField = value;
  94. this.RaisePropertyChanged("IsComplete");
  95. }
  96. }
  97. }
  98. [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true, Order=5)]
  99. public int TotalCount {
  100. get {
  101. return this.TotalCountField;
  102. }
  103. set {
  104. if ((this.TotalCountField.Equals(value) != true)) {
  105. this.TotalCountField = value;
  106. this.RaisePropertyChanged("TotalCount");
  107. }
  108. }
  109. }
  110. public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
  111. protected void RaisePropertyChanged(string propertyName) {
  112. System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
  113. if ((propertyChanged != null)) {
  114. propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
  115. }
  116. }
  117. }
  118. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  119. [System.ServiceModel.ServiceContractAttribute(ConfigurationName="Ws.ISmartExerciseWebService")]
  120. public interface ISmartExerciseWebService {
  121. // CODEGEN: 命名空间 http://tempuri.org/ 的元素名称 QueryActionResult 以后生成的消息协定未标记为 nillable
  122. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISmartExerciseWebService/QueryAction", ReplyAction="*")]
  123. WebService.Test.Ws.QueryActionResponse QueryAction(WebService.Test.Ws.QueryActionRequest request);
  124. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISmartExerciseWebService/QueryAction", ReplyAction="*")]
  125. System.Threading.Tasks.Task<WebService.Test.Ws.QueryActionResponse> QueryActionAsync(WebService.Test.Ws.QueryActionRequest request);
  126. // CODEGEN: 命名空间 http://tempuri.org/ 的元素名称 id 以后生成的消息协定未标记为 nillable
  127. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISmartExerciseWebService/CompleteAction", ReplyAction="*")]
  128. WebService.Test.Ws.CompleteActionResponse CompleteAction(WebService.Test.Ws.CompleteActionRequest request);
  129. [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISmartExerciseWebService/CompleteAction", ReplyAction="*")]
  130. System.Threading.Tasks.Task<WebService.Test.Ws.CompleteActionResponse> CompleteActionAsync(WebService.Test.Ws.CompleteActionRequest request);
  131. }
  132. [System.Diagnostics.DebuggerStepThroughAttribute()]
  133. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  134. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  135. [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
  136. public partial class QueryActionRequest {
  137. [System.ServiceModel.MessageBodyMemberAttribute(Name="QueryAction", Namespace="http://tempuri.org/", Order=0)]
  138. public WebService.Test.Ws.QueryActionRequestBody Body;
  139. public QueryActionRequest() {
  140. }
  141. public QueryActionRequest(WebService.Test.Ws.QueryActionRequestBody Body) {
  142. this.Body = Body;
  143. }
  144. }
  145. [System.Diagnostics.DebuggerStepThroughAttribute()]
  146. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  147. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  148. [System.Runtime.Serialization.DataContractAttribute()]
  149. public partial class QueryActionRequestBody {
  150. public QueryActionRequestBody() {
  151. }
  152. }
  153. [System.Diagnostics.DebuggerStepThroughAttribute()]
  154. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  155. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  156. [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
  157. public partial class QueryActionResponse {
  158. [System.ServiceModel.MessageBodyMemberAttribute(Name="QueryActionResponse", Namespace="http://tempuri.org/", Order=0)]
  159. public WebService.Test.Ws.QueryActionResponseBody Body;
  160. public QueryActionResponse() {
  161. }
  162. public QueryActionResponse(WebService.Test.Ws.QueryActionResponseBody Body) {
  163. this.Body = Body;
  164. }
  165. }
  166. [System.Diagnostics.DebuggerStepThroughAttribute()]
  167. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  168. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  169. [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
  170. public partial class QueryActionResponseBody {
  171. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
  172. public WebService.Test.Ws.AjaxResultWs QueryActionResult;
  173. public QueryActionResponseBody() {
  174. }
  175. public QueryActionResponseBody(WebService.Test.Ws.AjaxResultWs QueryActionResult) {
  176. this.QueryActionResult = QueryActionResult;
  177. }
  178. }
  179. [System.Diagnostics.DebuggerStepThroughAttribute()]
  180. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  181. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  182. [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
  183. public partial class CompleteActionRequest {
  184. [System.ServiceModel.MessageBodyMemberAttribute(Name="CompleteAction", Namespace="http://tempuri.org/", Order=0)]
  185. public WebService.Test.Ws.CompleteActionRequestBody Body;
  186. public CompleteActionRequest() {
  187. }
  188. public CompleteActionRequest(WebService.Test.Ws.CompleteActionRequestBody Body) {
  189. this.Body = Body;
  190. }
  191. }
  192. [System.Diagnostics.DebuggerStepThroughAttribute()]
  193. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  194. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  195. [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
  196. public partial class CompleteActionRequestBody {
  197. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
  198. public string id;
  199. public CompleteActionRequestBody() {
  200. }
  201. public CompleteActionRequestBody(string id) {
  202. this.id = id;
  203. }
  204. }
  205. [System.Diagnostics.DebuggerStepThroughAttribute()]
  206. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  207. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  208. [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
  209. public partial class CompleteActionResponse {
  210. [System.ServiceModel.MessageBodyMemberAttribute(Name="CompleteActionResponse", Namespace="http://tempuri.org/", Order=0)]
  211. public WebService.Test.Ws.CompleteActionResponseBody Body;
  212. public CompleteActionResponse() {
  213. }
  214. public CompleteActionResponse(WebService.Test.Ws.CompleteActionResponseBody Body) {
  215. this.Body = Body;
  216. }
  217. }
  218. [System.Diagnostics.DebuggerStepThroughAttribute()]
  219. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  220. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  221. [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
  222. public partial class CompleteActionResponseBody {
  223. [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
  224. public WebService.Test.Ws.AjaxResultWs CompleteActionResult;
  225. public CompleteActionResponseBody() {
  226. }
  227. public CompleteActionResponseBody(WebService.Test.Ws.AjaxResultWs CompleteActionResult) {
  228. this.CompleteActionResult = CompleteActionResult;
  229. }
  230. }
  231. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  232. public interface ISmartExerciseWebServiceChannel : WebService.Test.Ws.ISmartExerciseWebService, System.ServiceModel.IClientChannel {
  233. }
  234. [System.Diagnostics.DebuggerStepThroughAttribute()]
  235. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  236. public partial class SmartExerciseWebServiceClient : System.ServiceModel.ClientBase<WebService.Test.Ws.ISmartExerciseWebService>, WebService.Test.Ws.ISmartExerciseWebService {
  237. public SmartExerciseWebServiceClient() {
  238. }
  239. public SmartExerciseWebServiceClient(string endpointConfigurationName) :
  240. base(endpointConfigurationName) {
  241. }
  242. public SmartExerciseWebServiceClient(string endpointConfigurationName, string remoteAddress) :
  243. base(endpointConfigurationName, remoteAddress) {
  244. }
  245. public SmartExerciseWebServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
  246. base(endpointConfigurationName, remoteAddress) {
  247. }
  248. public SmartExerciseWebServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
  249. base(binding, remoteAddress) {
  250. }
  251. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  252. WebService.Test.Ws.QueryActionResponse WebService.Test.Ws.ISmartExerciseWebService.QueryAction(WebService.Test.Ws.QueryActionRequest request) {
  253. return base.Channel.QueryAction(request);
  254. }
  255. public WebService.Test.Ws.AjaxResultWs QueryAction() {
  256. WebService.Test.Ws.QueryActionRequest inValue = new WebService.Test.Ws.QueryActionRequest();
  257. inValue.Body = new WebService.Test.Ws.QueryActionRequestBody();
  258. WebService.Test.Ws.QueryActionResponse retVal = ((WebService.Test.Ws.ISmartExerciseWebService)(this)).QueryAction(inValue);
  259. return retVal.Body.QueryActionResult;
  260. }
  261. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  262. System.Threading.Tasks.Task<WebService.Test.Ws.QueryActionResponse> WebService.Test.Ws.ISmartExerciseWebService.QueryActionAsync(WebService.Test.Ws.QueryActionRequest request) {
  263. return base.Channel.QueryActionAsync(request);
  264. }
  265. public System.Threading.Tasks.Task<WebService.Test.Ws.QueryActionResponse> QueryActionAsync() {
  266. WebService.Test.Ws.QueryActionRequest inValue = new WebService.Test.Ws.QueryActionRequest();
  267. inValue.Body = new WebService.Test.Ws.QueryActionRequestBody();
  268. return ((WebService.Test.Ws.ISmartExerciseWebService)(this)).QueryActionAsync(inValue);
  269. }
  270. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  271. WebService.Test.Ws.CompleteActionResponse WebService.Test.Ws.ISmartExerciseWebService.CompleteAction(WebService.Test.Ws.CompleteActionRequest request) {
  272. return base.Channel.CompleteAction(request);
  273. }
  274. public WebService.Test.Ws.AjaxResultWs CompleteAction(string id) {
  275. WebService.Test.Ws.CompleteActionRequest inValue = new WebService.Test.Ws.CompleteActionRequest();
  276. inValue.Body = new WebService.Test.Ws.CompleteActionRequestBody();
  277. inValue.Body.id = id;
  278. WebService.Test.Ws.CompleteActionResponse retVal = ((WebService.Test.Ws.ISmartExerciseWebService)(this)).CompleteAction(inValue);
  279. return retVal.Body.CompleteActionResult;
  280. }
  281. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  282. System.Threading.Tasks.Task<WebService.Test.Ws.CompleteActionResponse> WebService.Test.Ws.ISmartExerciseWebService.CompleteActionAsync(WebService.Test.Ws.CompleteActionRequest request) {
  283. return base.Channel.CompleteActionAsync(request);
  284. }
  285. public System.Threading.Tasks.Task<WebService.Test.Ws.CompleteActionResponse> CompleteActionAsync(string id) {
  286. WebService.Test.Ws.CompleteActionRequest inValue = new WebService.Test.Ws.CompleteActionRequest();
  287. inValue.Body = new WebService.Test.Ws.CompleteActionRequestBody();
  288. inValue.Body.id = id;
  289. return ((WebService.Test.Ws.ISmartExerciseWebService)(this)).CompleteActionAsync(inValue);
  290. }
  291. }
  292. }