import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class DummyTypes
{
public ArrayList<Post> post = null;
public ArrayList<Post> getPost() { return post; }
public DummyTypes setPost(ArrayList<Post> value) { this.post = value; return this; }
}
public static class Post
{
public Long id = null;
public Integer organizationId = null;
public Integer userId = null;
public PostType type = null;
public Integer categoryId = null;
public String title = null;
public String slug = null;
public String url = null;
public String imageUrl = null;
@StringLength(MaximumLength=2147483647)
public String content = null;
@StringLength(MaximumLength=2147483647)
public String contentHtml = null;
public Long pinCommentId = null;
public ArrayList<Integer> technologyIds = null;
public Date fromDate = null;
public Date toDate = null;
public String location = null;
public String metaType = null;
public String meta = null;
public Boolean approved = null;
public Long upVotes = null;
public Long downVotes = null;
public Long points = null;
public Long views = null;
public Long favorites = null;
public Integer subscribers = null;
public Integer replyCount = null;
public Integer commentsCount = null;
public Integer wordCount = null;
public Integer reportCount = null;
public Integer linksCount = null;
public Integer linkedToCount = null;
public Integer score = null;
public Integer rank = null;
public ArrayList<String> labels = null;
public ArrayList<Integer> refUserIds = null;
public ArrayList<String> refLinks = null;
public ArrayList<Integer> muteUserIds = null;
public Date lastCommentDate = null;
public Long lastCommentId = null;
public Integer lastCommentUserId = null;
public Date deleted = null;
public String deletedBy = null;
public Date locked = null;
public String lockedBy = null;
public Date hidden = null;
public String hiddenBy = null;
public String status = null;
public Date statusDate = null;
public String statusBy = null;
public Boolean archived = null;
public Date bumped = null;
public Date created = null;
public String createdBy = null;
public Date modified = null;
public String modifiedBy = null;
public Long refId = null;
public String refSource = null;
public String refUrn = null;
public Long getId() { return id; }
public Post setId(Long value) { this.id = value; return this; }
public Integer getOrganizationId() { return organizationId; }
public Post setOrganizationId(Integer value) { this.organizationId = value; return this; }
public Integer getUserId() { return userId; }
public Post setUserId(Integer value) { this.userId = value; return this; }
public PostType getType() { return type; }
public Post setType(PostType value) { this.type = value; return this; }
public Integer getCategoryId() { return categoryId; }
public Post setCategoryId(Integer value) { this.categoryId = value; return this; }
public String getTitle() { return title; }
public Post setTitle(String value) { this.title = value; return this; }
public String getSlug() { return slug; }
public Post setSlug(String value) { this.slug = value; return this; }
public String getUrl() { return url; }
public Post setUrl(String value) { this.url = value; return this; }
public String getImageUrl() { return imageUrl; }
public Post setImageUrl(String value) { this.imageUrl = value; return this; }
public String getContent() { return content; }
public Post setContent(String value) { this.content = value; return this; }
public String getContentHtml() { return contentHtml; }
public Post setContentHtml(String value) { this.contentHtml = value; return this; }
public Long getPinCommentId() { return pinCommentId; }
public Post setPinCommentId(Long value) { this.pinCommentId = value; return this; }
public ArrayList<Integer> getTechnologyIds() { return technologyIds; }
public Post setTechnologyIds(ArrayList<Integer> value) { this.technologyIds = value; return this; }
public Date getFromDate() { return fromDate; }
public Post setFromDate(Date value) { this.fromDate = value; return this; }
public Date getToDate() { return toDate; }
public Post setToDate(Date value) { this.toDate = value; return this; }
public String getLocation() { return location; }
public Post setLocation(String value) { this.location = value; return this; }
public String getMetaType() { return metaType; }
public Post setMetaType(String value) { this.metaType = value; return this; }
public String getMeta() { return meta; }
public Post setMeta(String value) { this.meta = value; return this; }
public Boolean isApproved() { return approved; }
public Post setApproved(Boolean value) { this.approved = value; return this; }
public Long getUpVotes() { return upVotes; }
public Post setUpVotes(Long value) { this.upVotes = value; return this; }
public Long getDownVotes() { return downVotes; }
public Post setDownVotes(Long value) { this.downVotes = value; return this; }
public Long getPoints() { return points; }
public Post setPoints(Long value) { this.points = value; return this; }
public Long getViews() { return views; }
public Post setViews(Long value) { this.views = value; return this; }
public Long getFavorites() { return favorites; }
public Post setFavorites(Long value) { this.favorites = value; return this; }
public Integer getSubscribers() { return subscribers; }
public Post setSubscribers(Integer value) { this.subscribers = value; return this; }
public Integer getReplyCount() { return replyCount; }
public Post setReplyCount(Integer value) { this.replyCount = value; return this; }
public Integer getCommentsCount() { return commentsCount; }
public Post setCommentsCount(Integer value) { this.commentsCount = value; return this; }
public Integer getWordCount() { return wordCount; }
public Post setWordCount(Integer value) { this.wordCount = value; return this; }
public Integer getReportCount() { return reportCount; }
public Post setReportCount(Integer value) { this.reportCount = value; return this; }
public Integer getLinksCount() { return linksCount; }
public Post setLinksCount(Integer value) { this.linksCount = value; return this; }
public Integer getLinkedToCount() { return linkedToCount; }
public Post setLinkedToCount(Integer value) { this.linkedToCount = value; return this; }
public Integer getScore() { return score; }
public Post setScore(Integer value) { this.score = value; return this; }
public Integer getRank() { return rank; }
public Post setRank(Integer value) { this.rank = value; return this; }
public ArrayList<String> getLabels() { return labels; }
public Post setLabels(ArrayList<String> value) { this.labels = value; return this; }
public ArrayList<Integer> getRefUserIds() { return refUserIds; }
public Post setRefUserIds(ArrayList<Integer> value) { this.refUserIds = value; return this; }
public ArrayList<String> getRefLinks() { return refLinks; }
public Post setRefLinks(ArrayList<String> value) { this.refLinks = value; return this; }
public ArrayList<Integer> getMuteUserIds() { return muteUserIds; }
public Post setMuteUserIds(ArrayList<Integer> value) { this.muteUserIds = value; return this; }
public Date getLastCommentDate() { return lastCommentDate; }
public Post setLastCommentDate(Date value) { this.lastCommentDate = value; return this; }
public Long getLastCommentId() { return lastCommentId; }
public Post setLastCommentId(Long value) { this.lastCommentId = value; return this; }
public Integer getLastCommentUserId() { return lastCommentUserId; }
public Post setLastCommentUserId(Integer value) { this.lastCommentUserId = value; return this; }
public Date getDeleted() { return deleted; }
public Post setDeleted(Date value) { this.deleted = value; return this; }
public String getDeletedBy() { return deletedBy; }
public Post setDeletedBy(String value) { this.deletedBy = value; return this; }
public Date getLocked() { return locked; }
public Post setLocked(Date value) { this.locked = value; return this; }
public String getLockedBy() { return lockedBy; }
public Post setLockedBy(String value) { this.lockedBy = value; return this; }
public Date getHidden() { return hidden; }
public Post setHidden(Date value) { this.hidden = value; return this; }
public String getHiddenBy() { return hiddenBy; }
public Post setHiddenBy(String value) { this.hiddenBy = value; return this; }
public String getStatus() { return status; }
public Post setStatus(String value) { this.status = value; return this; }
public Date getStatusDate() { return statusDate; }
public Post setStatusDate(Date value) { this.statusDate = value; return this; }
public String getStatusBy() { return statusBy; }
public Post setStatusBy(String value) { this.statusBy = value; return this; }
public Boolean isArchived() { return archived; }
public Post setArchived(Boolean value) { this.archived = value; return this; }
public Date getBumped() { return bumped; }
public Post setBumped(Date value) { this.bumped = value; return this; }
public Date getCreated() { return created; }
public Post setCreated(Date value) { this.created = value; return this; }
public String getCreatedBy() { return createdBy; }
public Post setCreatedBy(String value) { this.createdBy = value; return this; }
public Date getModified() { return modified; }
public Post setModified(Date value) { this.modified = value; return this; }
public String getModifiedBy() { return modifiedBy; }
public Post setModifiedBy(String value) { this.modifiedBy = value; return this; }
public Long getRefId() { return refId; }
public Post setRefId(Long value) { this.refId = value; return this; }
public String getRefSource() { return refSource; }
public Post setRefSource(String value) { this.refSource = value; return this; }
public String getRefUrn() { return refUrn; }
public Post setRefUrn(String value) { this.refUrn = value; return this; }
}
public static enum PostType
{
Announcement,
Post,
Showcase,
Question,
Request;
}
}
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/oneway/DummyTypes HTTP/1.1
Host: techstacks.io
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DummyTypes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechStacks.ServiceInterface.Admin">
<Post xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechStacks.ServiceModel.Types">
<d2p1:Post>
<d2p1:Approved>false</d2p1:Approved>
<d2p1:Archived>false</d2p1:Archived>
<d2p1:Bumped>0001-01-01T00:00:00</d2p1:Bumped>
<d2p1:CategoryId>0</d2p1:CategoryId>
<d2p1:CommentsCount>0</d2p1:CommentsCount>
<d2p1:Content>String</d2p1:Content>
<d2p1:ContentHtml>String</d2p1:ContentHtml>
<d2p1:Created>0001-01-01T00:00:00</d2p1:Created>
<d2p1:CreatedBy>String</d2p1:CreatedBy>
<d2p1:Deleted>0001-01-01T00:00:00</d2p1:Deleted>
<d2p1:DeletedBy>String</d2p1:DeletedBy>
<d2p1:DownVotes>0</d2p1:DownVotes>
<d2p1:Favorites>0</d2p1:Favorites>
<d2p1:FromDate>0001-01-01T00:00:00</d2p1:FromDate>
<d2p1:Hidden>0001-01-01T00:00:00</d2p1:Hidden>
<d2p1:HiddenBy>String</d2p1:HiddenBy>
<d2p1:Id>0</d2p1:Id>
<d2p1:ImageUrl>String</d2p1:ImageUrl>
<d2p1:Labels xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</d2p1:Labels>
<d2p1:LastCommentDate>0001-01-01T00:00:00</d2p1:LastCommentDate>
<d2p1:LastCommentId>0</d2p1:LastCommentId>
<d2p1:LastCommentUserId>0</d2p1:LastCommentUserId>
<d2p1:LinkedToCount>0</d2p1:LinkedToCount>
<d2p1:LinksCount>0</d2p1:LinksCount>
<d2p1:Location>String</d2p1:Location>
<d2p1:Locked>0001-01-01T00:00:00</d2p1:Locked>
<d2p1:LockedBy>String</d2p1:LockedBy>
<d2p1:Meta>String</d2p1:Meta>
<d2p1:MetaType>String</d2p1:MetaType>
<d2p1:Modified>0001-01-01T00:00:00</d2p1:Modified>
<d2p1:ModifiedBy>String</d2p1:ModifiedBy>
<d2p1:MuteUserIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>0</d4p1:int>
</d2p1:MuteUserIds>
<d2p1:OrganizationId>0</d2p1:OrganizationId>
<d2p1:PinCommentId>0</d2p1:PinCommentId>
<d2p1:Points>0</d2p1:Points>
<d2p1:Rank>0</d2p1:Rank>
<d2p1:RefId>0</d2p1:RefId>
<d2p1:RefLinks xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</d2p1:RefLinks>
<d2p1:RefSource>String</d2p1:RefSource>
<d2p1:RefUrn>String</d2p1:RefUrn>
<d2p1:RefUserIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>0</d4p1:int>
</d2p1:RefUserIds>
<d2p1:ReplyCount>0</d2p1:ReplyCount>
<d2p1:ReportCount>0</d2p1:ReportCount>
<d2p1:Score>0</d2p1:Score>
<d2p1:Slug>String</d2p1:Slug>
<d2p1:Status>String</d2p1:Status>
<d2p1:StatusBy>String</d2p1:StatusBy>
<d2p1:StatusDate>0001-01-01T00:00:00</d2p1:StatusDate>
<d2p1:Subscribers>0</d2p1:Subscribers>
<d2p1:TechnologyIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:int>0</d4p1:int>
</d2p1:TechnologyIds>
<d2p1:Title>String</d2p1:Title>
<d2p1:ToDate>0001-01-01T00:00:00</d2p1:ToDate>
<d2p1:Type>Announcement</d2p1:Type>
<d2p1:UpVotes>0</d2p1:UpVotes>
<d2p1:Url>String</d2p1:Url>
<d2p1:UserId>0</d2p1:UserId>
<d2p1:Views>0</d2p1:Views>
<d2p1:WordCount>0</d2p1:WordCount>
</d2p1:Post>
</Post>
</DummyTypes>