ScannerVision Web Server

<back to all web services

BrotherTemplateQuestionResponse

Requires Authentication
The following routes are available for this service:
All Verbs/{Brand}/templates/{TemplateGuid}/submit
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ScannerVision.WebService.ServiceModel
Imports ScannerVision.SystemTypes.SvMain.Interfaces

Namespace Global

    Namespace ScannerVision.SystemTypes.SvMain.Interfaces

        Public Interface IClientQuestion
            Implements ITemplateQuestion
            Property QuestionGuid As String
            Property ValueDisplayed As String
            Property ValueReturned As String
            Property Answered As Boolean
            Property RegexMatches As Boolean
            Property RegexHint As String
        End Interface
    End Namespace

    Namespace ScannerVision.WebService.ServiceModel

        Public Enum Brand
            Desktop
            Hp
            Kyocera
            NeaScan
            Samsung
            FujiXerox
            Ta
            Utax
            Epson
            ScanFront400
            Sharp
            Ricoh
            FujiFilm
            Brother
        End Enum

        Public Partial Class BrotherTemplateQuestionResponse
            Inherits QuestionRequestDto
            Public Overridable Property Question As IClientQuestion
        End Class

        Public Partial Class DtoBase
            Public Overridable Property Brand As Brand
        End Class

        Public Partial Class QuestionRequestDto
            Inherits RequestBase
            Public Overridable Property TemplateGuid As String
            Public Overridable Property QuestionGuid As String
            Public Overridable Property Parent As String
            Public Overridable Property FolderBrowser As String
        End Class

        Public Partial Class RequestBase
            Inherits DtoBase
        End Class
    End Namespace
End Namespace

VB.NET BrotherTemplateQuestionResponse DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /{Brand}/templates/{TemplateGuid}/submit HTTP/1.1 
Host: dmsshow.kyocerasolutions.cz 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"TemplateGuid":"String","QuestionGuid":"String","Parent":"String","FolderBrowser":"String","Brand":"Desktop"}