-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathTestDateService.dbl
114 lines (90 loc) · 3.39 KB
/
TestDateService.dbl
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
;;*****************************************************************************
;;
;; Title: TestDateService.dbl
;;
;; Description: Service to expose methods that are part of the former
;; xfServerPlus / xfNetLink "TestDate" interface.
;;
;;*****************************************************************************
;; WARNING: GENERATED CODE!
;; This file was generated by CodeGen. Avoid editing the file if possible.
;; Any changes you make will be lost of the file is re-generated.
;;*****************************************************************************
import Harmony.Core
import Harmony.Core.Context
import Harmony.Core.Interface
import Harmony.Core.EF.Extensions
import Harmony.OData
import Harmony.OData.Adapter
import System.Threading.Tasks
import System
import System.Collections.Generic
import System.Text
import Microsoft.AspNetCore.Mvc
import Microsoft.AspNetCore.OData
import Microsoft.AspNetCore.Authorization
import Newtonsoft.Json.Linq
import System.Linq
import Services.Models
namespace Services.Controllers
public partial class TestDateService extends DynamicCallProvider
static IsInitialized, boolean
static method TestDateService
proc
DataObjectMetadataBase.LookupType(^typeof(Datetimestr))
DataObjectMetadataBase.LookupType(^typeof(Userdate))
;;If there is a TestDateServiceCustom method, call it
TestDateServiceCustom()
IsInitialized = true
endmethod
;;; <summary>
;;; Partial method to allow custom constructor code.
;;; </summary>
;;; <param name="services"></param>
partial static method TestDateServiceCustom, void
endmethod
;;; <summary>
;;; Constructor
;;; </summary>
public method TestDateService
connection, @IDynamicCallConnection
endparams
parent(connection)
proc
if(!IsInitialized)
throw new Exception("cctor missing")
endmethod
;;; <summary>
;;; No description found in method catalog
;;; </summary>
public async method GetDate8, @Task<TestDate.GetDate8_Response>
required in args, @TestDate.GetDate8_Request
proc
;;Prepare the response object
data response = new TestDate.GetDate8_Response()
;;Make the JSON-RPC call the traditional Synergy routine
data resultTuple = await CallMethod("GetDate8"
& ,args.idx
& ,ArgumentHelper.MaybeNull(response.dstruct)
& )
ArgumentHelper.Argument(2, resultTuple, response.dstruct)
;;Return the response
mreturn response
endmethod
;;; <summary>
;;; No description found in method catalog
;;; </summary>
public async method UserDates, @Task<TestDate.UserDates_Response>
proc
;;Prepare the response object
data response = new TestDate.UserDates_Response()
;;Make the JSON-RPC call the traditional Synergy routine
data resultTuple = await CallMethod("UserDates"
& ,ArgumentHelper.MaybeNull(response.USERDATES)
& )
ArgumentHelper.Argument(1, resultTuple, response.USERDATES)
;;Return the response
mreturn response
endmethod
endclass
endnamespace