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; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/reply/QueueCreative HTTP/1.1
Host: blazordiffusion.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<QueueCreative xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BlazorDiffusion.ServiceInterface">
<ArtistIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</ArtistIds>
<EngineId>String</EngineId>
<Height>0</Height>
<Images>0</Images>
<ModifierIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</ModifierIds>
<Seed>0</Seed>
<Steps>0</Steps>
<UserPrompt>String</UserPrompt>
<Width>0</Width>
</QueueCreative>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />