Esempio n. 1
0
        public static async Task <List <T> > GetModuleList <T>(ReadEntryListRequest req)
        {
            var resp = await GetModuleList(req).ConfigureAwait(false);

            var strList = Convert.ToString(resp.EntityList);

            return(ToObjects <T>(strList));
        }
Esempio n. 2
0
        public static async Task <ReadEntryListResponse> GetModuleList(ReadEntryListRequest req)
        {
            string method = req.MethodName;
            var    dObj   = new
            {
                session     = req.SessionId,
                module_name = req.ModuleName,
                fields      = req.SelectFields.ToArray()
            };
            var jstr = await CallApi(method, dObj).ConfigureAwait(false);

            return(JsonConvert.DeserializeObject <ReadEntryListResponse>(jstr));
        }
Esempio n. 3
0
        public static async Task <ReadEntryListResponse> GetList(ReadEntryListRequest req)
        {
            string method = req.MethodName;
            var    dObj   = new
            {
                session                   = req.SessionId,
                module_name               = req.ModuleName,
                query                     = req.Query,
                order_by                  = req.OrderBy,
                offset                    = req.Offset,
                select_fields             = req.SelectFields.ToArray(),
                link_name_to_fields_array = req.LinkNameToFieldsArray.ToArray(),
                max_results               = req.MaxResults,
                deleted                   = req.Deleted,
                favorites                 = req.Favorites
            };
            var jstr = await CallApi(method, dObj).ConfigureAwait(false);

            return(JsonConvert.DeserializeObject <ReadEntryListResponse>(jstr));
        }
Esempio n. 4
0
        public static async Task <ReadEntryListResponse> GetList <T>(ReadEntryListRequest req)
        {
            var response = await GetList(req).ConfigureAwait(false);

            return(response);
        }