diff --git a/server/AyaNova/biz/IImportAbleObject.cs b/server/AyaNova/biz/IImportAbleObject.cs new file mode 100644 index 00000000..114c3615 --- /dev/null +++ b/server/AyaNova/biz/IImportAbleObject.cs @@ -0,0 +1,13 @@ +using System.Threading.Tasks; +using Newtonsoft.Json.Linq; +namespace AyaNova.Biz +{ + /// + /// Interface for biz objects that support importing from JSON + /// + internal interface IImportAbleObject + { + Task ImportData(JArray ja); + } + +} \ No newline at end of file diff --git a/server/AyaNova/biz/WidgetBiz.cs b/server/AyaNova/biz/WidgetBiz.cs index 646406fb..28264310 100644 --- a/server/AyaNova/biz/WidgetBiz.cs +++ b/server/AyaNova/biz/WidgetBiz.cs @@ -11,7 +11,7 @@ using System.Collections.Generic; namespace AyaNova.Biz { - internal class WidgetBiz : BizObject, IJobObject, ISearchAbleObject, IReportAbleObject, IExportAbleObject + internal class WidgetBiz : BizObject, IJobObject, ISearchAbleObject, IReportAbleObject, IExportAbleObject, IImportAbleObject { @@ -313,6 +313,10 @@ namespace AyaNova.Biz return ReportData; } + + + + #region IMPORT EXPORT //Get data for export public async Task GetExportData(long[] idList) { @@ -321,6 +325,12 @@ namespace AyaNova.Biz return await GetReportData(idList); } + public Task ImportData(JArray ja) + { + throw new NotImplementedException(); + } + + // public async Task GetObjectArrayExportData(long[] idList) // { @@ -352,6 +362,10 @@ namespace AyaNova.Biz // return wList.ToArray(); // } + + #endregion import export + + //////////////////////////////////////////////////////////////////////////////////////////////// //JOB / OPERATIONS // @@ -430,6 +444,7 @@ namespace AyaNova.Biz + ///////////////////////////////////////////////////////////////////// }//eoc