Required role: | superadmin |
DELETE | /superadmin/company/{CompanyId}/comments/{Id} | Delete a comment. |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
@ApiResponse(Description="", StatusCode=400)
// @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401)
public static class DeleteCompanyCommentSuperAdminUser implements ICompany
{
/**
* Enter the companyId for the customer
*/
@ApiMember(Description="Enter the companyId for the customer", IsRequired=true, ParameterType="query")
public UUID CompanyId = null;
@ApiMember(IsRequired=true, ParameterType="query")
public Integer Id = null;
public UUID getCompanyId() { return CompanyId; }
public DeleteCompanyCommentSuperAdminUser setCompanyId(UUID value) { this.CompanyId = value; return this; }
public Integer getId() { return Id; }
public DeleteCompanyCommentSuperAdminUser setId(Integer value) { this.Id = value; return this; }
}
public static class CompanyCommentsResponse
{
@ApiMember()
public UUID CompanyId = null;
@ApiMember()
public Integer Id = null;
@ApiMember(IsRequired=true)
public String Comment = null;
@ApiMember(IsRequired=true)
public CommentsType CommentTypeId = null;
@ApiMember(IsRequired=true)
public CommentsTypeResponse CommentType = null;
/**
* The updated date
*/
@ApiMember(Description="The updated date")
public Date Updated = null;
/**
* The created date
*/
@ApiMember(Description="The created date")
public Date Created = null;
/**
* The created by
*/
@ApiMember(Description="The created by")
public String CreatedBy = null;
public UUID getCompanyId() { return CompanyId; }
public CompanyCommentsResponse setCompanyId(UUID value) { this.CompanyId = value; return this; }
public Integer getId() { return Id; }
public CompanyCommentsResponse setId(Integer value) { this.Id = value; return this; }
public String getComment() { return Comment; }
public CompanyCommentsResponse setComment(String value) { this.Comment = value; return this; }
public CommentsType getCommentTypeId() { return CommentTypeId; }
public CompanyCommentsResponse setCommentTypeId(CommentsType value) { this.CommentTypeId = value; return this; }
public CommentsTypeResponse getCommentType() { return CommentType; }
public CompanyCommentsResponse setCommentType(CommentsTypeResponse value) { this.CommentType = value; return this; }
public Date getUpdated() { return Updated; }
public CompanyCommentsResponse setUpdated(Date value) { this.Updated = value; return this; }
public Date getCreated() { return Created; }
public CompanyCommentsResponse setCreated(Date value) { this.Created = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public CompanyCommentsResponse setCreatedBy(String value) { this.CreatedBy = value; return this; }
}
public static enum CommentsType
{
NormalComment(1),
CallBackPhoneComment(2),
CallBackEmailComment(3),
CallBackMeetingBookedComment(4),
CallBackNotInterestedComment(5);
private final int value;
CommentsType(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
public static class CommentsTypeResponse
{
public Integer Id = null;
public String Name = null;
public String Description = null;
public Integer getId() { return Id; }
public CommentsTypeResponse setId(Integer value) { this.Id = value; return this; }
public String getName() { return Name; }
public CommentsTypeResponse setName(String value) { this.Name = value; return this; }
public String getDescription() { return Description; }
public CommentsTypeResponse setDescription(String value) { this.Description = value; return this; }
}
}
Java DeleteCompanyCommentSuperAdminUser DTOs
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.
DELETE /superadmin/company/{CompanyId}/comments/{Id} HTTP/1.1 Host: api.bokamera.se Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CompanyCommentsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos"> <Comment>String</Comment> <CommentType> <Description>String</Description> <Id>0</Id> <Name>String</Name> </CommentType> <CommentTypeId>NormalComment</CommentTypeId> <CompanyId>00000000-0000-0000-0000-000000000000</CompanyId> <Created>0001-01-01T00:00:00</Created> <CreatedBy>String</CreatedBy> <Id>0</Id> <Updated>0001-01-01T00:00:00</Updated> </CompanyCommentsResponse>