Blazor Diffusion

<back to all web services

QueueCreative

import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class QueueCreative
    {
        @Required()
        public String userPrompt = null;

        public Integer images = null;
        public Integer width = null;
        public Integer height = null;
        public Integer steps = null;
        public Long seed = null;
        public String engineId = null;
        public ArrayList<Integer> artistIds = new ArrayList<Integer>();
        public ArrayList<Integer> modifierIds = new ArrayList<Integer>();
        
        public String getUserPrompt() { return userPrompt; }
        public QueueCreative setUserPrompt(String value) { this.userPrompt = value; return this; }
        public Integer getImages() { return images; }
        public QueueCreative setImages(Integer value) { this.images = value; return this; }
        public Integer getWidth() { return width; }
        public QueueCreative setWidth(Integer value) { this.width = value; return this; }
        public Integer getHeight() { return height; }
        public QueueCreative setHeight(Integer value) { this.height = value; return this; }
        public Integer getSteps() { return steps; }
        public QueueCreative setSteps(Integer value) { this.steps = value; return this; }
        public Long getSeed() { return seed; }
        public QueueCreative setSeed(Long value) { this.seed = value; return this; }
        public String getEngineId() { return engineId; }
        public QueueCreative setEngineId(String value) { this.engineId = value; return this; }
        public ArrayList<Integer> getArtistIds() { return artistIds; }
        public QueueCreative setArtistIds(ArrayList<Integer> value) { this.artistIds = value; return this; }
        public ArrayList<Integer> getModifierIds() { return modifierIds; }
        public QueueCreative setModifierIds(ArrayList<Integer> value) { this.modifierIds = value; return this; }
    }

}

Java QueueCreative 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 /csv/reply/QueueCreative HTTP/1.1 
Host: blazordiffusion.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"userPrompt":"String","images":0,"width":0,"height":0,"steps":0,"seed":0,"engineId":"String","artistIds":[0],"modifierIds":[0]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{}