<back to all web services

CommentsFilterExtended

The following routes are available for this service:
POST/RestApi/comments-api/comments/filter
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    public static class CommentsFilterExtended
    {
        public ArrayList<String> CommentKey = null;
        public ArrayList<String> ThreadKey = null;
        public ArrayList<String> Language = null;
        public ArrayList<String> AuthorKey = null;
        public ArrayList<String> Status = null;
        public ArrayList<String> ThreadType = null;
        public ArrayList<String> Behavior = null;
        public ArrayList<String> GroupKey = null;
        public Integer Skip = null;
        public Integer Take = null;
        public Boolean SortDescending = null;
        public Date NewerThan = null;
        public Date OlderThan = null;
        
        public ArrayList<String> getCommentKey() { return CommentKey; }
        public CommentsFilterExtended setCommentKey(ArrayList<String> value) { this.CommentKey = value; return this; }
        public ArrayList<String> getThreadKey() { return ThreadKey; }
        public CommentsFilterExtended setThreadKey(ArrayList<String> value) { this.ThreadKey = value; return this; }
        public ArrayList<String> getLanguage() { return Language; }
        public CommentsFilterExtended setLanguage(ArrayList<String> value) { this.Language = value; return this; }
        public ArrayList<String> getAuthorKey() { return AuthorKey; }
        public CommentsFilterExtended setAuthorKey(ArrayList<String> value) { this.AuthorKey = value; return this; }
        public ArrayList<String> getStatus() { return Status; }
        public CommentsFilterExtended setStatus(ArrayList<String> value) { this.Status = value; return this; }
        public ArrayList<String> getThreadType() { return ThreadType; }
        public CommentsFilterExtended setThreadType(ArrayList<String> value) { this.ThreadType = value; return this; }
        public ArrayList<String> getBehavior() { return Behavior; }
        public CommentsFilterExtended setBehavior(ArrayList<String> value) { this.Behavior = value; return this; }
        public ArrayList<String> getGroupKey() { return GroupKey; }
        public CommentsFilterExtended setGroupKey(ArrayList<String> value) { this.GroupKey = value; return this; }
        public Integer getSkip() { return Skip; }
        public CommentsFilterExtended setSkip(Integer value) { this.Skip = value; return this; }
        public Integer getTake() { return Take; }
        public CommentsFilterExtended setTake(Integer value) { this.Take = value; return this; }
        public Boolean isSortDescending() { return SortDescending; }
        public CommentsFilterExtended setSortDescending(Boolean value) { this.SortDescending = value; return this; }
        public Date getNewerThan() { return NewerThan; }
        public CommentsFilterExtended setNewerThan(Date value) { this.NewerThan = value; return this; }
        public Date getOlderThan() { return OlderThan; }
        public CommentsFilterExtended setOlderThan(Date value) { this.OlderThan = value; return this; }
    }

    public static class CollectionResponse<CommentResponse>
    {
        public Integer TotalCount = null;
        public ArrayList<CommentResponse> Items = null;
        
        public Integer getTotalCount() { return TotalCount; }
        public CollectionResponse<CommentResponse> setTotalCount(Integer value) { this.TotalCount = value; return this; }
        public ArrayList<CommentResponse> getItems() { return Items; }
        public CollectionResponse<CommentResponse> setItems(ArrayList<CommentResponse> value) { this.Items = value; return this; }
    }

    public static class CommentResponse
    {
        public String Key = null;
        public String Name = null;
        public String Message = null;
        public Date DateCreated = null;
        public String ProfilePictureUrl = null;
        public String ProfilePictureThumbnailUrl = null;
        public String Status = null;
        public String Email = null;
        public String ThreadKey = null;
        public String AuthorIpAddress = null;
        public String CustomData = null;
        public BigDecimal Rating = null;
        
        public String getKey() { return Key; }
        public CommentResponse setKey(String value) { this.Key = value; return this; }
        public String getName() { return Name; }
        public CommentResponse setName(String value) { this.Name = value; return this; }
        public String getMessage() { return Message; }
        public CommentResponse setMessage(String value) { this.Message = value; return this; }
        public Date getDateCreated() { return DateCreated; }
        public CommentResponse setDateCreated(Date value) { this.DateCreated = value; return this; }
        public String getProfilePictureUrl() { return ProfilePictureUrl; }
        public CommentResponse setProfilePictureUrl(String value) { this.ProfilePictureUrl = value; return this; }
        public String getProfilePictureThumbnailUrl() { return ProfilePictureThumbnailUrl; }
        public CommentResponse setProfilePictureThumbnailUrl(String value) { this.ProfilePictureThumbnailUrl = value; return this; }
        public String getStatus() { return Status; }
        public CommentResponse setStatus(String value) { this.Status = value; return this; }
        public String getEmail() { return Email; }
        public CommentResponse setEmail(String value) { this.Email = value; return this; }
        public String getThreadKey() { return ThreadKey; }
        public CommentResponse setThreadKey(String value) { this.ThreadKey = value; return this; }
        public String getAuthorIpAddress() { return AuthorIpAddress; }
        public CommentResponse setAuthorIpAddress(String value) { this.AuthorIpAddress = value; return this; }
        public String getCustomData() { return CustomData; }
        public CommentResponse setCustomData(String value) { this.CustomData = value; return this; }
        public BigDecimal getRating() { return Rating; }
        public CommentResponse setRating(BigDecimal value) { this.Rating = value; return this; }
    }

}

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

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

<CommentsFilterExtended xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Services.Comments.DTO">
  <AuthorKey xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </AuthorKey>
  <Behavior xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Behavior>
  <CommentKey xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </CommentKey>
  <GroupKey xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </GroupKey>
  <Language xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Language>
  <NewerThan>0001-01-01T00:00:00</NewerThan>
  <OlderThan>0001-01-01T00:00:00</OlderThan>
  <Skip>0</Skip>
  <SortDescending>false</SortDescending>
  <Status xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Status>
  <Take>0</Take>
  <ThreadKey xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </ThreadKey>
  <ThreadType xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </ThreadType>
</CommentsFilterExtended>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CollectionResponseOfCommentResponseXvaRN2Ag xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Services.Comments.DTO">
  <Items i:nil="true" />
  <TotalCount>0</TotalCount>
</CollectionResponseOfCommentResponseXvaRN2Ag>