TicketUserServices

<back to all web services

CampaignConversionGetRequest

The following routes are available for this service:
GET/CampaignConversions/{CampaignId}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel

Namespace Global

    Namespace TicketUserServices.ServiceModel

        Public Partial Class CampaignConversionGetRequest
            Public Overridable Property CampaignId As Integer
            Public Overridable Property RunId As String
        End Class

        Public Partial Class CampaignConversionResult
            Public Sub New()
                BySurface = New List(Of CampaignConversionSurfaceCount)
                ByChannel = New List(Of CampaignConversionSurfaceCount)
                Notes = New List(Of String)
            End Sub

            Public Overridable Property RunId As String
            Public Overridable Property PeopleMeasured As Integer
            Public Overridable Property PeopleConverted As Integer
            Public Overridable Property TotalAmount As Decimal
            Public Overridable Property BySurface As List(Of CampaignConversionSurfaceCount)
            Public Overridable Property ByChannel As List(Of CampaignConversionSurfaceCount)
            Public Overridable Property HeadlineConversions As Integer
            Public Overridable Property HeadlineAmount As Decimal
            Public Overridable Property MedianHoursToConvert As Integer
            Public Overridable Property Notes As List(Of String)
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
        End Class

        Public Partial Class CampaignConversionSurfaceCount
            Public Overridable Property Key As String
            Public Overridable Property People As Integer
            Public Overridable Property Count As Integer
            Public Overridable Property Amount As Decimal
        End Class
    End Namespace
End Namespace

VB.NET CampaignConversionGetRequest DTOs

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

HTTP + XML

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

GET /CampaignConversions/{CampaignId} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CampaignConversionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <ByChannel>
    <CampaignConversionSurfaceCount>
      <Amount>0</Amount>
      <Count>0</Count>
      <Key>String</Key>
      <People>0</People>
    </CampaignConversionSurfaceCount>
  </ByChannel>
  <BySurface>
    <CampaignConversionSurfaceCount>
      <Amount>0</Amount>
      <Count>0</Count>
      <Key>String</Key>
      <People>0</People>
    </CampaignConversionSurfaceCount>
  </BySurface>
  <HeadlineAmount>0</HeadlineAmount>
  <HeadlineConversions>0</HeadlineConversions>
  <MedianHoursToConvert>0</MedianHoursToConvert>
  <Message>String</Message>
  <Notes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Notes>
  <PeopleConverted>0</PeopleConverted>
  <PeopleMeasured>0</PeopleMeasured>
  <RunId>String</RunId>
  <StatusCode>0</StatusCode>
  <TotalAmount>0</TotalAmount>
</CampaignConversionResult>