Example #1
0
        internal static Proxy.ExportStatus ConvertServerExportStatus(Service.ExportStatus exportStatus)
        {
            Proxy.ExportStatus status = Proxy.ExportStatus.Unknown;
            switch (exportStatus)
            {
            case Service.ExportStatus.Completed:
                status = Proxy.ExportStatus.Completed;
                break;

            case Service.ExportStatus.Processing:
                status = Proxy.ExportStatus.Processing;
                break;

            case Service.ExportStatus.Scheduled:
                status = Proxy.ExportStatus.Scheduled;
                break;

            case Service.ExportStatus.Error:
                status = Proxy.ExportStatus.Error;
                break;

            default:
                status = Proxy.ExportStatus.Unknown;
                break;
            }
            return(status);
        }
Example #2
0
        internal static Service.ExportStatus ConvertClientExportStatus(Proxy.ExportStatus exportStatus)
        {
            Service.ExportStatus status = Service.ExportStatus.Completed;
            switch (exportStatus)
            {
            case Proxy.ExportStatus.Completed:
                status = Service.ExportStatus.Completed;
                break;

            case Proxy.ExportStatus.Processing:
                status = Service.ExportStatus.Processing;
                break;

            case Proxy.ExportStatus.Scheduled:
                status = Service.ExportStatus.Scheduled;
                break;

            case Proxy.ExportStatus.Error:
                status = Service.ExportStatus.Error;
                break;
            }
            return(status);
        }