ScannerVision Web Server

<back to all web services

ShowScanSettings

Requires Authentication
The following routes are available for this service:
All Verbs/{Brand}/showscansettings/{TemplateGuid}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ShowScanSettings extends RequestBase
    {
        public String TemplateGuid = null;
        
        public String getTemplateGuid() { return TemplateGuid; }
        public ShowScanSettings setTemplateGuid(String value) { this.TemplateGuid = value; return this; }
    }

    public static class RequestBase extends DtoBase
    {
        
    }

    public static class DtoBase
    {
        public Brand Brand = null;
        
        public Brand getBrand() { return Brand; }
        public DtoBase setBrand(Brand value) { this.Brand = value; return this; }
    }

    public static enum Brand
    {
        Desktop,
        Hp,
        Kyocera,
        NeaScan,
        Samsung,
        FujiXerox,
        Ta,
        Utax,
        Epson,
        ScanFront400,
        Sharp,
        Ricoh,
        FujiFilm;
    }

    public static class GetScanSettingsResponse extends GetTemplateResponse
    {
        public IScanSettings ScanSettings = null;
        public String ColourLabel = null;
        public String OrientationLabel = null;
        public String ResolutionLabel = null;
        public String SidesLabel = null;
        public String SizeLabel = null;
        public String SourceLabel = null;
        public String TypeLabel = null;
        public String ScanContinuouslyLabel = null;
        public String MixedSizesLabel = null;
        
        public IScanSettings getScanSettings() { return ScanSettings; }
        public GetScanSettingsResponse setScanSettings(IScanSettings value) { this.ScanSettings = value; return this; }
        public String getColourLabel() { return ColourLabel; }
        public GetScanSettingsResponse setColourLabel(String value) { this.ColourLabel = value; return this; }
        public String getOrientationLabel() { return OrientationLabel; }
        public GetScanSettingsResponse setOrientationLabel(String value) { this.OrientationLabel = value; return this; }
        public String getResolutionLabel() { return ResolutionLabel; }
        public GetScanSettingsResponse setResolutionLabel(String value) { this.ResolutionLabel = value; return this; }
        public String getSidesLabel() { return SidesLabel; }
        public GetScanSettingsResponse setSidesLabel(String value) { this.SidesLabel = value; return this; }
        public String getSizeLabel() { return SizeLabel; }
        public GetScanSettingsResponse setSizeLabel(String value) { this.SizeLabel = value; return this; }
        public String getSourceLabel() { return SourceLabel; }
        public GetScanSettingsResponse setSourceLabel(String value) { this.SourceLabel = value; return this; }
        public String getTypeLabel() { return TypeLabel; }
        public GetScanSettingsResponse setTypeLabel(String value) { this.TypeLabel = value; return this; }
        public String getScanContinuouslyLabel() { return ScanContinuouslyLabel; }
        public GetScanSettingsResponse setScanContinuouslyLabel(String value) { this.ScanContinuouslyLabel = value; return this; }
        public String getMixedSizesLabel() { return MixedSizesLabel; }
        public GetScanSettingsResponse setMixedSizesLabel(String value) { this.MixedSizesLabel = value; return this; }
    }

    public static class GetTemplateResponse extends ScanResponseBase
    {
        public String ServerAddress = null;
        public Integer ServerPort = null;
        
        public String getServerAddress() { return ServerAddress; }
        public GetTemplateResponse setServerAddress(String value) { this.ServerAddress = value; return this; }
        public Integer getServerPort() { return ServerPort; }
        public GetTemplateResponse setServerPort(Integer value) { this.ServerPort = value; return this; }
    }

    public static class ScanResponseBase extends ResponseBase
    {
        public IClientTemplate Template = null;
        public ArrayList<IClientQuestion> GlobalQuestions = null;
        public Boolean CanEnableScanButton = null;
        
        public IClientTemplate getTemplate() { return Template; }
        public ScanResponseBase setTemplate(IClientTemplate value) { this.Template = value; return this; }
        public ArrayList<IClientQuestion> getGlobalQuestions() { return GlobalQuestions; }
        public ScanResponseBase setGlobalQuestions(ArrayList<IClientQuestion> value) { this.GlobalQuestions = value; return this; }
        public Boolean isCanEnableScanButton() { return CanEnableScanButton; }
        public ScanResponseBase setCanEnableScanButton(Boolean value) { this.CanEnableScanButton = value; return this; }
    }

    public static class ResponseBase extends DtoBase
    {
        public String SelectedUiLanguage = null;
        public String svSession = null;
        public String Title = null;
        public String PageTip = null;
        public Boolean NewBrowser = null;
        public Boolean ScanFront400TA = null;
        public Boolean ScanFront400UTAX = null;
        
        public String getSelectedUiLanguage() { return SelectedUiLanguage; }
        public ResponseBase setSelectedUiLanguage(String value) { this.SelectedUiLanguage = value; return this; }
        public String getSvSession() { return svSession; }
        public ResponseBase setSvSession(String value) { this.svSession = value; return this; }
        public String getTitle() { return Title; }
        public ResponseBase setTitle(String value) { this.Title = value; return this; }
        public String getPageTip() { return PageTip; }
        public ResponseBase setPageTip(String value) { this.PageTip = value; return this; }
        public Boolean isNewBrowser() { return NewBrowser; }
        public ResponseBase setNewBrowser(Boolean value) { this.NewBrowser = value; return this; }
        public Boolean isScanFront400TA() { return ScanFront400TA; }
        public ResponseBase setScanFront400TA(Boolean value) { this.ScanFront400TA = value; return this; }
        public Boolean isScanFront400UTAX() { return ScanFront400UTAX; }
        public ResponseBase setScanFront400UTAX(Boolean value) { this.ScanFront400UTAX = value; return this; }
    }

    public static interface IClientTemplate
    {
        public String Description = null;
        public byte[] Icon = null;
        public ITemplateModificationInfo ModificationInfo = null;
        public String Name = null;
        public ArrayList<IClientQuestion> Questions = null;
        public ITemplate Template = null;
        public String TemplateGuid = null;
    }

    public static interface ITemplateModificationInfo
    {
        public String Guid = null;
        public Date TemplateModificationDateTime = null;
        public Date IconModificationDateTime = null;
    }

    public static interface IClientQuestion implements ITemplateQuestion
    {
        public String QuestionGuid = null;
        public String ValueDisplayed = null;
        public String ValueReturned = null;
        public Boolean Answered = null;
        public Boolean RegexMatches = null;
        public String RegexHint = null;
    }

    public static interface ITemplate implements IStatus
    {
        public String TemplateVersion = null;
        public String ScannerVisionVersion = null;
        public String Guid = null;
        public String BeginScript = null;
        public String EndScript = null;
        public TemplateType TemplateType = null;
        public IGeneral General = null;
        public ICapture Capture = null;
        public IXmlMetadataImport XmlMetadataImport = null;
        public INotifications Notifications = null;
        public IValidator Validator = null;
    }

    public static enum TemplateType
    {
        Workflow,
        FreeForm;
    }

    public static interface IGeneral implements IInterface
    {
        public String Name = null;
        public String Description = null;
        public String Icon = null;
        public ITemplateSchedule Schedule = null;
        public IRejection Rejection = null;
        public IBadDocumentRejection BadDocumentRejection = null;
        public PdfLoadResolution PdfLoadResolution = null;
    }

    public static interface ITemplateSchedule implements IInterface
    {
        public TimeSpan Time = null;
        public TimeSpan EndTime = null;
        public Boolean NoEndTime = null;
        public TemplateScheduleType Type = null;
    }

    public static enum TemplateScheduleType
    {
        Interval,
        Fixed;
    }

    public static interface IRejection
    {
        public Integer RejectAfter = null;
        public String RejectionPath = null;
        public ICredentials ShareCredentials = null;
    }

    public static interface ICredentials implements IInterface
    {
        public String Username = null;
        public String Password = null;
    }

    public static interface IBadDocumentRejection implements IStatus
    {
        public String RejectionPath = null;
        public ICredentials ShareCredentials = null;
    }

    public static enum PdfLoadResolution
    {
        Default,
        Dpi100,
        Dpi150,
        Dpi200,
        Dpi300,
        Dpi400,
        Dpi500,
        Dpi600;
    }

    public static interface ICapture implements IInterface
    {
        public ReadOnlyCollection<ICaptureSource> CaptureSources = null;
    }

    public static interface ICaptureSource implements IStatus
    {
    }

    public static interface IXmlMetadataImport implements IStatus
    {
        public String SampleDocumentName = null;
        public ReadOnlyCollection<IXmlMetadataImportTagMapping> TagMappings = null;
        public ReadOnlyCollection<IXmlMetadataImportNamespaceMapping> NamespaceMappings = null;
    }

    public static interface IXmlMetadataImportTagMapping implements IInterface
    {
        public String XPathExpression = null;
        public IStringMetadata Metadata = null;
    }

    public static interface IStringMetadata implements IMetadata
    {
        public Boolean IsSecure = null;
        public String SampleValue = null;
        public String Value = null;
    }

    public static interface IXmlMetadataImportNamespaceMapping implements IInterface
    {
        public String Prefix = null;
        public String Name = null;
    }

    public static interface INotifications implements IStatus
    {
        public ReadOnlyCollection<INotification> Notifications = null;
    }

    public static interface INotification implements IStatus
    {
        public String Description = null;
        public String To = null;
        public String Subject = null;
        public String Body = null;
        public String Cc = null;
        public String Bcc = null;
        public NotificationType NotificationType = null;
    }

    public static enum NotificationType
    {
        FailureOnly,
        SuccessOnly,
        Always;
    }

    public static interface IValidator
    {
        public IValidationErrors ValidationErrors = null;
        public Boolean IsValid = null;
    }

    public static interface IValidationErrors
    {
        public ReadOnlyCollection<IValidationError> Errors = null;
    }

    public static interface IValidationError
    {
        public String Property = null;
        public String ErrorMessage = null;
    }

    public static interface IScanSettings
    {
        public IScanSetting<ScanColour> Colour = null;
        public IScanSetting<ScanOrientation> Orientation = null;
        public IScanSetting<ScanResolution> Resolution = null;
        public IScanSetting<ScanSide> Sides = null;
        public IScanSetting<ScanSize> Size = null;
        public IScanSetting<ScanSource> Source = null;
        public IScanSetting<ScanType> Type = null;
        public IScanSetting<BoolSetting> ScanContinuously = null;
        public IScanSetting<BoolSetting> MixedSizes = null;
    }

    public static interface IScanSetting<T>
    {
        public Boolean IsLocked = null;
        public IList<IScanSettingItem<T>> Items = null;
        public String SelectedItem = null;
    }

    public static enum ScanColour
    {
        BlackAndWhite,
        Greyscale,
        Colour,
        Auto;
    }

    public static enum ScanOrientation
    {
        Portrait,
        Landscape;
    }

    public static enum ScanResolution
    {
        Dpi100,
        Dpi200,
        Dpi300,
        Dpi400,
        Dpi600;
    }

    public static enum ScanSide
    {
        Simplex,
        Duplex;
    }

    public static enum ScanSize
    {
        Auto,
        A3,
        A4,
        A5,
        B4,
        B5,
        Letter,
        Legal,
        Executive,
        Folio,
        AutoLong,
        A4R,
        A5R,
        A6R,
        B6R;
    }

    public static enum ScanSource
    {
        Adf,
        Glass,
        Auto;
    }

    public static enum ScanType
    {
        Text,
        Photo,
        TextAndPhoto;
    }

    public static enum BoolSetting
    {
        True,
        False;
    }

}

Java ShowScanSettings DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /{Brand}/showscansettings/{TemplateGuid} HTTP/1.1 
Host: buildmax.org 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"TemplateGuid":"String","Brand":"Desktop"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'GetScanSettingsResponse' using the custom 'csv' filter}No parameterless constructor defined for this object.