JLChen
2020-09-08 45d7c5536bd9b4516feb1401753e61717d7dd888
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.42000
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
 
namespace service.hdlcontrol.com_push {
    using System.Xml.Serialization;
    using System.Diagnostics;
    using System.Web.Services;
    using System.Web.Services.Protocols;
    using System.ComponentModel;
    using System;
    
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="WebServicePushSoap", Namespace="http://tempuri.org/")]
    public partial class WebServicePush : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback JPushActionOperationCompleted;
        
        private System.Threading.SendOrPostCallback SendPushMessageOperationCompleted;
        
        private System.Threading.SendOrPostCallback DeviceManageOperationCompleted;
        
        private System.Threading.SendOrPostCallback ILiftAddRegIDOperationCompleted;
        
        private System.Threading.SendOrPostCallback AddMsgOperationCompleted;
        
        private System.Threading.SendOrPostCallback AddMsgAndUserIdOperationCompleted;
        
        private System.Threading.SendOrPostCallback DeleteToken_PushOperationCompleted;
        
        private System.Threading.SendOrPostCallback CleanMessageReordOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetMsgListsOperationCompleted;
        
        private System.Threading.SendOrPostCallback ClearMessageByUserIdOperationCompleted;
        
        private System.Threading.SendOrPostCallback GetMessageListOperationCompleted;
        
        private System.Threading.SendOrPostCallback ClearMessageOperationCompleted;
        
        public VerifySoapHeader VerifySoapHeaderValue;
        
        private System.Threading.SendOrPostCallback AddRegIdOperationCompleted;
        
        private System.Threading.SendOrPostCallback MsgListOperationCompleted;
        
        /// CodeRemarks
        public WebServicePush() {
            this.Url = "http://service.hdlcontrol.com:8000/WebService/WebServicePush.asmx";
        }
        
        public WebServicePush(string url) {
            this.Url = url;
        }
        
        /// CodeRemarks
        public event JPushActionCompletedEventHandler JPushActionCompleted;
        
        /// CodeRemarks
        public event SendPushMessageCompletedEventHandler SendPushMessageCompleted;
        
        /// CodeRemarks
        public event DeviceManageCompletedEventHandler DeviceManageCompleted;
        
        /// CodeRemarks
        public event ILiftAddRegIDCompletedEventHandler ILiftAddRegIDCompleted;
        
        /// CodeRemarks
        public event AddMsgCompletedEventHandler AddMsgCompleted;
        
        /// CodeRemarks
        public event AddMsgAndUserIdCompletedEventHandler AddMsgAndUserIdCompleted;
        
        /// CodeRemarks
        public event DeleteToken_PushCompletedEventHandler DeleteToken_PushCompleted;
        
        /// CodeRemarks
        public event CleanMessageReordCompletedEventHandler CleanMessageReordCompleted;
        
        /// CodeRemarks
        public event GetMsgListsCompletedEventHandler GetMsgListsCompleted;
        
        /// CodeRemarks
        public event ClearMessageByUserIdCompletedEventHandler ClearMessageByUserIdCompleted;
        
        /// CodeRemarks
        public event GetMessageListCompletedEventHandler GetMessageListCompleted;
        
        /// CodeRemarks
        public event ClearMessageCompletedEventHandler ClearMessageCompleted;
        
        /// CodeRemarks
        public event AddRegIdCompletedEventHandler AddRegIdCompleted;
        
        /// CodeRemarks
        public event MsgListCompletedEventHandler MsgListCompleted;
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/JPushAction", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public long JPushAction(string frame, string message, string alarm) {
            object[] results = this.Invoke("JPushAction", new object[] {
                        frame,
                        message,
                        alarm});
            return ((long)(results[0]));
        }
        
        /// CodeRemarks
        public void JPushActionAsync(string frame, string message, string alarm) {
            this.JPushActionAsync(frame, message, alarm, null);
        }
        
        /// CodeRemarks
        public void JPushActionAsync(string frame, string message, string alarm, object userState) {
            if ((this.JPushActionOperationCompleted == null)) {
                this.JPushActionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnJPushActionOperationCompleted);
            }
            this.InvokeAsync("JPushAction", new object[] {
                        frame,
                        message,
                        alarm}, this.JPushActionOperationCompleted, userState);
        }
        
        private void OnJPushActionOperationCompleted(object arg) {
            if ((this.JPushActionCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.JPushActionCompleted(this, new JPushActionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SendPushMessage", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public long SendPushMessage(string frame, string message, string content, string alarm) {
            object[] results = this.Invoke("SendPushMessage", new object[] {
                        frame,
                        message,
                        content,
                        alarm});
            return ((long)(results[0]));
        }
        
        /// CodeRemarks
        public void SendPushMessageAsync(string frame, string message, string content, string alarm) {
            this.SendPushMessageAsync(frame, message, content, alarm, null);
        }
        
        /// CodeRemarks
        public void SendPushMessageAsync(string frame, string message, string content, string alarm, object userState) {
            if ((this.SendPushMessageOperationCompleted == null)) {
                this.SendPushMessageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSendPushMessageOperationCompleted);
            }
            this.InvokeAsync("SendPushMessage", new object[] {
                        frame,
                        message,
                        content,
                        alarm}, this.SendPushMessageOperationCompleted, userState);
        }
        
        private void OnSendPushMessageOperationCompleted(object arg) {
            if ((this.SendPushMessageCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.SendPushMessageCompleted(this, new SendPushMessageCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeviceManage", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public DeviceInfo[] DeviceManage() {
            object[] results = this.Invoke("DeviceManage", new object[0]);
            return ((DeviceInfo[])(results[0]));
        }
        
        /// CodeRemarks
        public void DeviceManageAsync() {
            this.DeviceManageAsync(null);
        }
        
        /// CodeRemarks
        public void DeviceManageAsync(object userState) {
            if ((this.DeviceManageOperationCompleted == null)) {
                this.DeviceManageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeviceManageOperationCompleted);
            }
            this.InvokeAsync("DeviceManage", new object[0], this.DeviceManageOperationCompleted, userState);
        }
        
        private void OnDeviceManageOperationCompleted(object arg) {
            if ((this.DeviceManageCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.DeviceManageCompleted(this, new DeviceManageCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ILiftAddRegID", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string ILiftAddRegID(string RegId, string Alias, string Email, string UserMode) {
            object[] results = this.Invoke("ILiftAddRegID", new object[] {
                        RegId,
                        Alias,
                        Email,
                        UserMode});
            return ((string)(results[0]));
        }
        
        /// CodeRemarks
        public void ILiftAddRegIDAsync(string RegId, string Alias, string Email, string UserMode) {
            this.ILiftAddRegIDAsync(RegId, Alias, Email, UserMode, null);
        }
        
        /// CodeRemarks
        public void ILiftAddRegIDAsync(string RegId, string Alias, string Email, string UserMode, object userState) {
            if ((this.ILiftAddRegIDOperationCompleted == null)) {
                this.ILiftAddRegIDOperationCompleted = new System.Threading.SendOrPostCallback(this.OnILiftAddRegIDOperationCompleted);
            }
            this.InvokeAsync("ILiftAddRegID", new object[] {
                        RegId,
                        Alias,
                        Email,
                        UserMode}, this.ILiftAddRegIDOperationCompleted, userState);
        }
        
        private void OnILiftAddRegIDOperationCompleted(object arg) {
            if ((this.ILiftAddRegIDCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.ILiftAddRegIDCompleted(this, new ILiftAddRegIDCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AddMsg", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int AddMsg(string regid, string msgtype, string msgcontent) {
            object[] results = this.Invoke("AddMsg", new object[] {
                        regid,
                        msgtype,
                        msgcontent});
            return ((int)(results[0]));
        }
        
        /// CodeRemarks
        public void AddMsgAsync(string regid, string msgtype, string msgcontent) {
            this.AddMsgAsync(regid, msgtype, msgcontent, null);
        }
        
        /// CodeRemarks
        public void AddMsgAsync(string regid, string msgtype, string msgcontent, object userState) {
            if ((this.AddMsgOperationCompleted == null)) {
                this.AddMsgOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddMsgOperationCompleted);
            }
            this.InvokeAsync("AddMsg", new object[] {
                        regid,
                        msgtype,
                        msgcontent}, this.AddMsgOperationCompleted, userState);
        }
        
        private void OnAddMsgOperationCompleted(object arg) {
            if ((this.AddMsgCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddMsgCompleted(this, new AddMsgCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AddMsgAndUserId", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int AddMsgAndUserId(string regid, string msgtype, string msgcontent, int userId) {
            object[] results = this.Invoke("AddMsgAndUserId", new object[] {
                        regid,
                        msgtype,
                        msgcontent,
                        userId});
            return ((int)(results[0]));
        }
        
        /// CodeRemarks
        public void AddMsgAndUserIdAsync(string regid, string msgtype, string msgcontent, int userId) {
            this.AddMsgAndUserIdAsync(regid, msgtype, msgcontent, userId, null);
        }
        
        /// CodeRemarks
        public void AddMsgAndUserIdAsync(string regid, string msgtype, string msgcontent, int userId, object userState) {
            if ((this.AddMsgAndUserIdOperationCompleted == null)) {
                this.AddMsgAndUserIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddMsgAndUserIdOperationCompleted);
            }
            this.InvokeAsync("AddMsgAndUserId", new object[] {
                        regid,
                        msgtype,
                        msgcontent,
                        userId}, this.AddMsgAndUserIdOperationCompleted, userState);
        }
        
        private void OnAddMsgAndUserIdOperationCompleted(object arg) {
            if ((this.AddMsgAndUserIdCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddMsgAndUserIdCompleted(this, new AddMsgAndUserIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteToken_Push", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int DeleteToken_Push(string regid) {
            object[] results = this.Invoke("DeleteToken_Push", new object[] {
                        regid});
            return ((int)(results[0]));
        }
        
        /// CodeRemarks
        public void DeleteToken_PushAsync(string regid) {
            this.DeleteToken_PushAsync(regid, null);
        }
        
        /// CodeRemarks
        public void DeleteToken_PushAsync(string regid, object userState) {
            if ((this.DeleteToken_PushOperationCompleted == null)) {
                this.DeleteToken_PushOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteToken_PushOperationCompleted);
            }
            this.InvokeAsync("DeleteToken_Push", new object[] {
                        regid}, this.DeleteToken_PushOperationCompleted, userState);
        }
        
        private void OnDeleteToken_PushOperationCompleted(object arg) {
            if ((this.DeleteToken_PushCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.DeleteToken_PushCompleted(this, new DeleteToken_PushCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CleanMessageReord", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void CleanMessageReord(string regId) {
            this.Invoke("CleanMessageReord", new object[] {
                        regId});
        }
        
        /// CodeRemarks
        public void CleanMessageReordAsync(string regId) {
            this.CleanMessageReordAsync(regId, null);
        }
        
        /// CodeRemarks
        public void CleanMessageReordAsync(string regId, object userState) {
            if ((this.CleanMessageReordOperationCompleted == null)) {
                this.CleanMessageReordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCleanMessageReordOperationCompleted);
            }
            this.InvokeAsync("CleanMessageReord", new object[] {
                        regId}, this.CleanMessageReordOperationCompleted, userState);
        }
        
        private void OnCleanMessageReordOperationCompleted(object arg) {
            if ((this.CleanMessageReordCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.CleanMessageReordCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetMsgLists", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public MsgList[] GetMsgLists(int userId) {
            object[] results = this.Invoke("GetMsgLists", new object[] {
                        userId});
            return ((MsgList[])(results[0]));
        }
        
        /// CodeRemarks
        public void GetMsgListsAsync(int userId) {
            this.GetMsgListsAsync(userId, null);
        }
        
        /// CodeRemarks
        public void GetMsgListsAsync(int userId, object userState) {
            if ((this.GetMsgListsOperationCompleted == null)) {
                this.GetMsgListsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMsgListsOperationCompleted);
            }
            this.InvokeAsync("GetMsgLists", new object[] {
                        userId}, this.GetMsgListsOperationCompleted, userState);
        }
        
        private void OnGetMsgListsOperationCompleted(object arg) {
            if ((this.GetMsgListsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetMsgListsCompleted(this, new GetMsgListsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ClearMessageByUserId", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void ClearMessageByUserId(int userId) {
            this.Invoke("ClearMessageByUserId", new object[] {
                        userId});
        }
        
        /// CodeRemarks
        public void ClearMessageByUserIdAsync(int userId) {
            this.ClearMessageByUserIdAsync(userId, null);
        }
        
        /// CodeRemarks
        public void ClearMessageByUserIdAsync(int userId, object userState) {
            if ((this.ClearMessageByUserIdOperationCompleted == null)) {
                this.ClearMessageByUserIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnClearMessageByUserIdOperationCompleted);
            }
            this.InvokeAsync("ClearMessageByUserId", new object[] {
                        userId}, this.ClearMessageByUserIdOperationCompleted, userState);
        }
        
        private void OnClearMessageByUserIdOperationCompleted(object arg) {
            if ((this.ClearMessageByUserIdCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.ClearMessageByUserIdCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetMessageList", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public MsgList[] GetMessageList(int userId, string regId) {
            object[] results = this.Invoke("GetMessageList", new object[] {
                        userId,
                        regId});
            return ((MsgList[])(results[0]));
        }
        
        /// CodeRemarks
        public void GetMessageListAsync(int userId, string regId) {
            this.GetMessageListAsync(userId, regId, null);
        }
        
        /// CodeRemarks
        public void GetMessageListAsync(int userId, string regId, object userState) {
            if ((this.GetMessageListOperationCompleted == null)) {
                this.GetMessageListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMessageListOperationCompleted);
            }
            this.InvokeAsync("GetMessageList", new object[] {
                        userId,
                        regId}, this.GetMessageListOperationCompleted, userState);
        }
        
        private void OnGetMessageListOperationCompleted(object arg) {
            if ((this.GetMessageListCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.GetMessageListCompleted(this, new GetMessageListCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ClearMessage", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void ClearMessage(int userId, string regId) {
            this.Invoke("ClearMessage", new object[] {
                        userId,
                        regId});
        }
        
        /// CodeRemarks
        public void ClearMessageAsync(int userId, string regId) {
            this.ClearMessageAsync(userId, regId, null);
        }
        
        /// CodeRemarks
        public void ClearMessageAsync(int userId, string regId, object userState) {
            if ((this.ClearMessageOperationCompleted == null)) {
                this.ClearMessageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnClearMessageOperationCompleted);
            }
            this.InvokeAsync("ClearMessage", new object[] {
                        userId,
                        regId}, this.ClearMessageOperationCompleted, userState);
        }
        
        private void OnClearMessageOperationCompleted(object arg) {
            if ((this.ClearMessageCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.ClearMessageCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapHeaderAttribute("VerifySoapHeaderValue")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AddRegId", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public int AddRegId(string RegId, string Alias) {
            object[] results = this.Invoke("AddRegId", new object[] {
                        RegId,
                        Alias});
            return ((int)(results[0]));
        }
        
        /// CodeRemarks
        public void AddRegIdAsync(string RegId, string Alias) {
            this.AddRegIdAsync(RegId, Alias, null);
        }
        
        /// CodeRemarks
        public void AddRegIdAsync(string RegId, string Alias, object userState) {
            if ((this.AddRegIdOperationCompleted == null)) {
                this.AddRegIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddRegIdOperationCompleted);
            }
            this.InvokeAsync("AddRegId", new object[] {
                        RegId,
                        Alias}, this.AddRegIdOperationCompleted, userState);
        }
        
        private void OnAddRegIdOperationCompleted(object arg) {
            if ((this.AddRegIdCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.AddRegIdCompleted(this, new AddRegIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/MsgList", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public MsgList[] MsgList(string regid) {
            object[] results = this.Invoke("MsgList", new object[] {
                        regid});
            return ((MsgList[])(results[0]));
        }
        
        /// CodeRemarks
        public void MsgListAsync(string regid) {
            this.MsgListAsync(regid, null);
        }
        
        /// CodeRemarks
        public void MsgListAsync(string regid, object userState) {
            if ((this.MsgListOperationCompleted == null)) {
                this.MsgListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnMsgListOperationCompleted);
            }
            this.InvokeAsync("MsgList", new object[] {
                        regid}, this.MsgListOperationCompleted, userState);
        }
        
        private void OnMsgListOperationCompleted(object arg) {
            if ((this.MsgListCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.MsgListCompleted(this, new MsgListCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// CodeRemarks
        public new void CancelAsync(object userState) {
            base.CancelAsync(userState);
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://tempuri.org/", IsNullable=false)]
    public partial class VerifySoapHeader : System.Web.Services.Protocols.SoapHeader {
        
        /// <remarks/>
        public string Email;
        
        /// <remarks/>
        public int UserMode;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlAnyAttributeAttribute()]
        public System.Xml.XmlAttribute[] AnyAttr;
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class MsgList {
        
        /// <remarks/>
        public long MsgID;
        
        /// <remarks/>
        public string Msg;
        
        /// <remarks/>
        public string MsgType;
        
        /// <remarks/>
        public System.DateTime MsgTime;
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
    public partial class DeviceInfo {
        
        /// <remarks/>
        public string RegistrationID;
        
        /// <remarks/>
        public string[] Tag;
        
        /// <remarks/>
        public string Alias;
    }
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void JPushActionCompletedEventHandler(object sender, JPushActionCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class JPushActionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal JPushActionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// CodeRemarks
        public long Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((long)(this.results[0]));
            }
        }
    }
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void SendPushMessageCompletedEventHandler(object sender, SendPushMessageCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class SendPushMessageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal SendPushMessageCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// CodeRemarks
        public long Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((long)(this.results[0]));
            }
        }
    }
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void DeviceManageCompletedEventHandler(object sender, DeviceManageCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class DeviceManageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal DeviceManageCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// CodeRemarks
        public DeviceInfo[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((DeviceInfo[])(this.results[0]));
            }
        }
    }
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void ILiftAddRegIDCompletedEventHandler(object sender, ILiftAddRegIDCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class ILiftAddRegIDCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal ILiftAddRegIDCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// CodeRemarks
        public string Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((string)(this.results[0]));
            }
        }
    }
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void AddMsgCompletedEventHandler(object sender, AddMsgCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddMsgCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddMsgCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// CodeRemarks
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void AddMsgAndUserIdCompletedEventHandler(object sender, AddMsgAndUserIdCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddMsgAndUserIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddMsgAndUserIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// CodeRemarks
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void DeleteToken_PushCompletedEventHandler(object sender, DeleteToken_PushCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class DeleteToken_PushCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal DeleteToken_PushCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// CodeRemarks
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void CleanMessageReordCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void GetMsgListsCompletedEventHandler(object sender, GetMsgListsCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetMsgListsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetMsgListsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// CodeRemarks
        public MsgList[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((MsgList[])(this.results[0]));
            }
        }
    }
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void ClearMessageByUserIdCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void GetMessageListCompletedEventHandler(object sender, GetMessageListCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class GetMessageListCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal GetMessageListCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// CodeRemarks
        public MsgList[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((MsgList[])(this.results[0]));
            }
        }
    }
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void ClearMessageCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void AddRegIdCompletedEventHandler(object sender, AddRegIdCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class AddRegIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal AddRegIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// CodeRemarks
        public int Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((int)(this.results[0]));
            }
        }
    }
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    public delegate void MsgListCompletedEventHandler(object sender, MsgListCompletedEventArgs e);
    
    /// CodeRemarks
    [System.CodeDom.Compiler.GeneratedCodeAttribute("XamarinStudio", "7.7.3.43")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class MsgListCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal MsgListCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// CodeRemarks
        public MsgList[] Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((MsgList[])(this.results[0]));
            }
        }
    }
}