<back to all web services

MobileFormatPreviewDto

The following routes are available for this service:
GET/RestApi/Sitefinity/mobile-formats/preview
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class MobileFormatPreviewDto
    {
        public String MobileFormatSettingName = null;
        public String ContentTypeFullname = null;
        public String ProviderName = null;
        public String ItemUrlName = null;
        public ContentLifecycleStatus Status = null;
        public String SiteId = null;
        
        public String getMobileFormatSettingName() { return MobileFormatSettingName; }
        public MobileFormatPreviewDto setMobileFormatSettingName(String value) { this.MobileFormatSettingName = value; return this; }
        public String getContentTypeFullname() { return ContentTypeFullname; }
        public MobileFormatPreviewDto setContentTypeFullname(String value) { this.ContentTypeFullname = value; return this; }
        public String getProviderName() { return ProviderName; }
        public MobileFormatPreviewDto setProviderName(String value) { this.ProviderName = value; return this; }
        public String getItemUrlName() { return ItemUrlName; }
        public MobileFormatPreviewDto setItemUrlName(String value) { this.ItemUrlName = value; return this; }
        public ContentLifecycleStatus getStatus() { return Status; }
        public MobileFormatPreviewDto setStatus(ContentLifecycleStatus value) { this.Status = value; return this; }
        public String getSiteId() { return SiteId; }
        public MobileFormatPreviewDto setSiteId(String value) { this.SiteId = value; return this; }
    }

    public static enum ContentLifecycleStatus
    {
        Master(0),
        Temp(1),
        Live(2),
        Deleted(4),
        PartialTemp(8);

        private final int value;
        ContentLifecycleStatus(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static class MobileFormatPreviewUrlDto
    {
        public String ItemTitle = null;
        public String MobileFormatUrl = null;
        public String MobileFormatPreviewUrl = null;
        public String ErrorMessage = null;
        
        public String getItemTitle() { return ItemTitle; }
        public MobileFormatPreviewUrlDto setItemTitle(String value) { this.ItemTitle = value; return this; }
        public String getMobileFormatUrl() { return MobileFormatUrl; }
        public MobileFormatPreviewUrlDto setMobileFormatUrl(String value) { this.MobileFormatUrl = value; return this; }
        public String getMobileFormatPreviewUrl() { return MobileFormatPreviewUrl; }
        public MobileFormatPreviewUrlDto setMobileFormatPreviewUrl(String value) { this.MobileFormatPreviewUrl = value; return this; }
        public String getErrorMessage() { return ErrorMessage; }
        public MobileFormatPreviewUrlDto setErrorMessage(String value) { this.ErrorMessage = value; return this; }
    }

}

Java MobileFormatPreviewDto 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.

GET /RestApi/Sitefinity/mobile-formats/preview HTTP/1.1 
Host: www.asg.com.au 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ItemTitle":"String","MobileFormatUrl":"String","MobileFormatPreviewUrl":"String","ErrorMessage":"String"}