<back to all web services

ThreadUpdateRequest

The following routes are available for this service:
PUT/RestApi/comments-api/threads
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ThreadUpdateRequest
    {
        public String Key = null;
        public Boolean IsClosed = null;
        
        public String getKey() { return Key; }
        public ThreadUpdateRequest setKey(String value) { this.Key = value; return this; }
        public Boolean getIsClosed() { return IsClosed; }
        public ThreadUpdateRequest setIsClosed(Boolean value) { this.IsClosed = value; return this; }
    }

    public static class ThreadResponse
    {
        public String Key = null;
        public String Type = null;
        public Integer CommentsCount = null;
        public String Title = null;
        public String Language = null;
        public Boolean IsClosed = null;
        public String GroupKey = null;
        public String ItemUrl = null;
        public String DataSource = null;
        public BigDecimal AverageRating = null;
        
        public String getKey() { return Key; }
        public ThreadResponse setKey(String value) { this.Key = value; return this; }
        public String getType() { return Type; }
        public ThreadResponse setType(String value) { this.Type = value; return this; }
        public Integer getCommentsCount() { return CommentsCount; }
        public ThreadResponse setCommentsCount(Integer value) { this.CommentsCount = value; return this; }
        public String getTitle() { return Title; }
        public ThreadResponse setTitle(String value) { this.Title = value; return this; }
        public String getLanguage() { return Language; }
        public ThreadResponse setLanguage(String value) { this.Language = value; return this; }
        public Boolean getIsClosed() { return IsClosed; }
        public ThreadResponse setIsClosed(Boolean value) { this.IsClosed = value; return this; }
        public String getGroupKey() { return GroupKey; }
        public ThreadResponse setGroupKey(String value) { this.GroupKey = value; return this; }
        public String getItemUrl() { return ItemUrl; }
        public ThreadResponse setItemUrl(String value) { this.ItemUrl = value; return this; }
        public String getDataSource() { return DataSource; }
        public ThreadResponse setDataSource(String value) { this.DataSource = value; return this; }
        public BigDecimal getAverageRating() { return AverageRating; }
        public ThreadResponse setAverageRating(BigDecimal value) { this.AverageRating = value; return this; }
    }

}

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

PUT /RestApi/comments-api/threads HTTP/1.1 
Host: www.asg.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ThreadUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Services.Comments.DTO">
  <IsClosed>false</IsClosed>
  <Key>String</Key>
</ThreadUpdateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ThreadResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Services.Comments.DTO">
  <AverageRating>0</AverageRating>
  <CommentsCount>0</CommentsCount>
  <DataSource>String</DataSource>
  <GroupKey>String</GroupKey>
  <IsClosed>false</IsClosed>
  <ItemUrl>String</ItemUrl>
  <Key>String</Key>
  <Language>String</Language>
  <Title>String</Title>
  <Type>String</Type>
</ThreadResponse>