Trendsic Platform Service

<back to all web services

ProjectLocationAttachmentDeleteRequest

Requires Authentication
The following routes are available for this service:
DELETE/v1/projectlocationattachment/{ProjectLocationAttachmentID}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class ProjectLocationAttachmentDeleteRequest
    {
        public Integer ProjectLocationAttachmentID = null;
        
        public Integer getProjectLocationAttachmentID() { return ProjectLocationAttachmentID; }
        public ProjectLocationAttachmentDeleteRequest setProjectLocationAttachmentID(Integer value) { this.ProjectLocationAttachmentID = value; return this; }
    }

    public static class ProjectLocationResponse
    {
        public ArrayList<ProjectLocation> Locations = new ArrayList<ProjectLocation>();
        public ArrayList<ProjectLocationArea> Areas = new ArrayList<ProjectLocationArea>();
        public ArrayList<ProjectLocationEquipment> Equipment = new ArrayList<ProjectLocationEquipment>();
        public ArrayList<ProjectLocationSiteDetail> SiteDetails = new ArrayList<ProjectLocationSiteDetail>();
        public ArrayList<ProjectLocationAttachment> Attachments = new ArrayList<ProjectLocationAttachment>();
        public ProjectLocationSiteDetail SiteDetail = null;
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<ProjectLocation> getLocations() { return Locations; }
        public ProjectLocationResponse setLocations(ArrayList<ProjectLocation> value) { this.Locations = value; return this; }
        public ArrayList<ProjectLocationArea> getAreas() { return Areas; }
        public ProjectLocationResponse setAreas(ArrayList<ProjectLocationArea> value) { this.Areas = value; return this; }
        public ArrayList<ProjectLocationEquipment> getEquipment() { return Equipment; }
        public ProjectLocationResponse setEquipment(ArrayList<ProjectLocationEquipment> value) { this.Equipment = value; return this; }
        public ArrayList<ProjectLocationSiteDetail> getSiteDetails() { return SiteDetails; }
        public ProjectLocationResponse setSiteDetails(ArrayList<ProjectLocationSiteDetail> value) { this.SiteDetails = value; return this; }
        public ArrayList<ProjectLocationAttachment> getAttachments() { return Attachments; }
        public ProjectLocationResponse setAttachments(ArrayList<ProjectLocationAttachment> value) { this.Attachments = value; return this; }
        public ProjectLocationSiteDetail getSiteDetail() { return SiteDetail; }
        public ProjectLocationResponse setSiteDetail(ProjectLocationSiteDetail value) { this.SiteDetail = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ProjectLocationResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class ProjectLocation
    {
        public Integer ProjectLocationID = null;
        public Integer ProjectID = null;
        public String Name = null;
        public String Address1 = null;
        public String Address2 = null;
        public String City = null;
        public String State = null;
        public String Zip = null;
        public BigDecimal Latitude = null;
        public BigDecimal Longitude = null;
        public BigDecimal TotalArea = null;
        public String AreaUnit = null;
        public String AccessInstructions = null;
        public Boolean IsPrimary = null;
        public Integer DisplayOrder = null;
        public Boolean Active = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        public ArrayList<ProjectLocationArea> Areas = new ArrayList<ProjectLocationArea>();
        public ArrayList<ProjectLocationEquipment> Equipment = new ArrayList<ProjectLocationEquipment>();
        public ArrayList<ProjectLocationSiteDetail> SiteDetails = new ArrayList<ProjectLocationSiteDetail>();
        public ArrayList<ProjectLocationAttachment> Attachments = new ArrayList<ProjectLocationAttachment>();
        
        public Integer getProjectLocationID() { return ProjectLocationID; }
        public ProjectLocation setProjectLocationID(Integer value) { this.ProjectLocationID = value; return this; }
        public Integer getProjectID() { return ProjectID; }
        public ProjectLocation setProjectID(Integer value) { this.ProjectID = value; return this; }
        public String getName() { return Name; }
        public ProjectLocation setName(String value) { this.Name = value; return this; }
        public String getAddress1() { return Address1; }
        public ProjectLocation setAddress1(String value) { this.Address1 = value; return this; }
        public String getAddress2() { return Address2; }
        public ProjectLocation setAddress2(String value) { this.Address2 = value; return this; }
        public String getCity() { return City; }
        public ProjectLocation setCity(String value) { this.City = value; return this; }
        public String getState() { return State; }
        public ProjectLocation setState(String value) { this.State = value; return this; }
        public String getZip() { return Zip; }
        public ProjectLocation setZip(String value) { this.Zip = value; return this; }
        public BigDecimal getLatitude() { return Latitude; }
        public ProjectLocation setLatitude(BigDecimal value) { this.Latitude = value; return this; }
        public BigDecimal getLongitude() { return Longitude; }
        public ProjectLocation setLongitude(BigDecimal value) { this.Longitude = value; return this; }
        public BigDecimal getTotalArea() { return TotalArea; }
        public ProjectLocation setTotalArea(BigDecimal value) { this.TotalArea = value; return this; }
        public String getAreaUnit() { return AreaUnit; }
        public ProjectLocation setAreaUnit(String value) { this.AreaUnit = value; return this; }
        public String getAccessInstructions() { return AccessInstructions; }
        public ProjectLocation setAccessInstructions(String value) { this.AccessInstructions = value; return this; }
        public Boolean getIsPrimary() { return IsPrimary; }
        public ProjectLocation setIsPrimary(Boolean value) { this.IsPrimary = value; return this; }
        public Integer getDisplayOrder() { return DisplayOrder; }
        public ProjectLocation setDisplayOrder(Integer value) { this.DisplayOrder = value; return this; }
        public Boolean isActive() { return Active; }
        public ProjectLocation setActive(Boolean value) { this.Active = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public ProjectLocation setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public ProjectLocation setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public ProjectLocation setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
        public ArrayList<ProjectLocationArea> getAreas() { return Areas; }
        public ProjectLocation setAreas(ArrayList<ProjectLocationArea> value) { this.Areas = value; return this; }
        public ArrayList<ProjectLocationEquipment> getEquipment() { return Equipment; }
        public ProjectLocation setEquipment(ArrayList<ProjectLocationEquipment> value) { this.Equipment = value; return this; }
        public ArrayList<ProjectLocationSiteDetail> getSiteDetails() { return SiteDetails; }
        public ProjectLocation setSiteDetails(ArrayList<ProjectLocationSiteDetail> value) { this.SiteDetails = value; return this; }
        public ArrayList<ProjectLocationAttachment> getAttachments() { return Attachments; }
        public ProjectLocation setAttachments(ArrayList<ProjectLocationAttachment> value) { this.Attachments = value; return this; }
    }

    public static class ProjectLocationArea
    {
        public Integer ProjectLocationAreaID = null;
        public Integer ProjectLocationID = null;
        public String Name = null;
        public BigDecimal Measurement = null;
        public String MeasurementUnit = null;
        public String Notes = null;
        public Integer DisplayOrder = null;
        public Boolean Active = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        
        public Integer getProjectLocationAreaID() { return ProjectLocationAreaID; }
        public ProjectLocationArea setProjectLocationAreaID(Integer value) { this.ProjectLocationAreaID = value; return this; }
        public Integer getProjectLocationID() { return ProjectLocationID; }
        public ProjectLocationArea setProjectLocationID(Integer value) { this.ProjectLocationID = value; return this; }
        public String getName() { return Name; }
        public ProjectLocationArea setName(String value) { this.Name = value; return this; }
        public BigDecimal getMeasurement() { return Measurement; }
        public ProjectLocationArea setMeasurement(BigDecimal value) { this.Measurement = value; return this; }
        public String getMeasurementUnit() { return MeasurementUnit; }
        public ProjectLocationArea setMeasurementUnit(String value) { this.MeasurementUnit = value; return this; }
        public String getNotes() { return Notes; }
        public ProjectLocationArea setNotes(String value) { this.Notes = value; return this; }
        public Integer getDisplayOrder() { return DisplayOrder; }
        public ProjectLocationArea setDisplayOrder(Integer value) { this.DisplayOrder = value; return this; }
        public Boolean isActive() { return Active; }
        public ProjectLocationArea setActive(Boolean value) { this.Active = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public ProjectLocationArea setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public ProjectLocationArea setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public ProjectLocationArea setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
    }

    public static class ProjectLocationEquipment
    {
        public Integer ProjectLocationEquipmentID = null;
        public Integer ProjectLocationID = null;
        public String Name = null;
        public String Description = null;
        public String Manufacturer = null;
        public String Model = null;
        public String SerialNumber = null;
        public String AssetTag = null;
        public String Notes = null;
        public Boolean Active = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        
        public Integer getProjectLocationEquipmentID() { return ProjectLocationEquipmentID; }
        public ProjectLocationEquipment setProjectLocationEquipmentID(Integer value) { this.ProjectLocationEquipmentID = value; return this; }
        public Integer getProjectLocationID() { return ProjectLocationID; }
        public ProjectLocationEquipment setProjectLocationID(Integer value) { this.ProjectLocationID = value; return this; }
        public String getName() { return Name; }
        public ProjectLocationEquipment setName(String value) { this.Name = value; return this; }
        public String getDescription() { return Description; }
        public ProjectLocationEquipment setDescription(String value) { this.Description = value; return this; }
        public String getManufacturer() { return Manufacturer; }
        public ProjectLocationEquipment setManufacturer(String value) { this.Manufacturer = value; return this; }
        public String getModel() { return Model; }
        public ProjectLocationEquipment setModel(String value) { this.Model = value; return this; }
        public String getSerialNumber() { return SerialNumber; }
        public ProjectLocationEquipment setSerialNumber(String value) { this.SerialNumber = value; return this; }
        public String getAssetTag() { return AssetTag; }
        public ProjectLocationEquipment setAssetTag(String value) { this.AssetTag = value; return this; }
        public String getNotes() { return Notes; }
        public ProjectLocationEquipment setNotes(String value) { this.Notes = value; return this; }
        public Boolean isActive() { return Active; }
        public ProjectLocationEquipment setActive(Boolean value) { this.Active = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public ProjectLocationEquipment setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public ProjectLocationEquipment setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public ProjectLocationEquipment setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
    }

    public static class ProjectLocationSiteDetail
    {
        public Integer ProjectLocationSiteDetailID = null;
        public Integer ProjectLocationID = null;
        public String DetailType = null;
        public String Label = null;
        public String Value = null;
        public Boolean IsSensitive = null;
        public Integer EncVersion = null;
        public Boolean HasValue = null;
        public String Notes = null;
        public Integer DisplayOrder = null;
        public Boolean Active = null;
        public String CreatedBy = null;
        public Date CreatedAt = null;
        public Date UpdatedAt = null;
        
        public Integer getProjectLocationSiteDetailID() { return ProjectLocationSiteDetailID; }
        public ProjectLocationSiteDetail setProjectLocationSiteDetailID(Integer value) { this.ProjectLocationSiteDetailID = value; return this; }
        public Integer getProjectLocationID() { return ProjectLocationID; }
        public ProjectLocationSiteDetail setProjectLocationID(Integer value) { this.ProjectLocationID = value; return this; }
        public String getDetailType() { return DetailType; }
        public ProjectLocationSiteDetail setDetailType(String value) { this.DetailType = value; return this; }
        public String getLabel() { return Label; }
        public ProjectLocationSiteDetail setLabel(String value) { this.Label = value; return this; }
        public String getValue() { return Value; }
        public ProjectLocationSiteDetail setValue(String value) { this.Value = value; return this; }
        public Boolean getIsSensitive() { return IsSensitive; }
        public ProjectLocationSiteDetail setIsSensitive(Boolean value) { this.IsSensitive = value; return this; }
        public Integer getEncVersion() { return EncVersion; }
        public ProjectLocationSiteDetail setEncVersion(Integer value) { this.EncVersion = value; return this; }
        public Boolean isHasValue() { return HasValue; }
        public ProjectLocationSiteDetail setHasValue(Boolean value) { this.HasValue = value; return this; }
        public String getNotes() { return Notes; }
        public ProjectLocationSiteDetail setNotes(String value) { this.Notes = value; return this; }
        public Integer getDisplayOrder() { return DisplayOrder; }
        public ProjectLocationSiteDetail setDisplayOrder(Integer value) { this.DisplayOrder = value; return this; }
        public Boolean isActive() { return Active; }
        public ProjectLocationSiteDetail setActive(Boolean value) { this.Active = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public ProjectLocationSiteDetail setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCreatedAt() { return CreatedAt; }
        public ProjectLocationSiteDetail setCreatedAt(Date value) { this.CreatedAt = value; return this; }
        public Date getUpdatedAt() { return UpdatedAt; }
        public ProjectLocationSiteDetail setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
    }

    public static class ProjectLocationAttachment
    {
        public Integer ProjectLocationAttachmentID = null;
        public Integer ProjectLocationID = null;
        public Integer ProjectLocationAreaID = null;
        public String Kind = null;
        public String DocTitle = null;
        public String FileName = null;
        public String Url = null;
        public String MimeType = null;
        public Date UploadDate = null;
        public String UploadedBy = null;
        public Boolean Active = null;
        
        public Integer getProjectLocationAttachmentID() { return ProjectLocationAttachmentID; }
        public ProjectLocationAttachment setProjectLocationAttachmentID(Integer value) { this.ProjectLocationAttachmentID = value; return this; }
        public Integer getProjectLocationID() { return ProjectLocationID; }
        public ProjectLocationAttachment setProjectLocationID(Integer value) { this.ProjectLocationID = value; return this; }
        public Integer getProjectLocationAreaID() { return ProjectLocationAreaID; }
        public ProjectLocationAttachment setProjectLocationAreaID(Integer value) { this.ProjectLocationAreaID = value; return this; }
        public String getKind() { return Kind; }
        public ProjectLocationAttachment setKind(String value) { this.Kind = value; return this; }
        public String getDocTitle() { return DocTitle; }
        public ProjectLocationAttachment setDocTitle(String value) { this.DocTitle = value; return this; }
        public String getFileName() { return FileName; }
        public ProjectLocationAttachment setFileName(String value) { this.FileName = value; return this; }
        public String getUrl() { return Url; }
        public ProjectLocationAttachment setUrl(String value) { this.Url = value; return this; }
        public String getMimeType() { return MimeType; }
        public ProjectLocationAttachment setMimeType(String value) { this.MimeType = value; return this; }
        public Date getUploadDate() { return UploadDate; }
        public ProjectLocationAttachment setUploadDate(Date value) { this.UploadDate = value; return this; }
        public String getUploadedBy() { return UploadedBy; }
        public ProjectLocationAttachment setUploadedBy(String value) { this.UploadedBy = value; return this; }
        public Boolean isActive() { return Active; }
        public ProjectLocationAttachment setActive(Boolean value) { this.Active = value; return this; }
    }

}

Java ProjectLocationAttachmentDeleteRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

DELETE /v1/projectlocationattachment/{ProjectLocationAttachmentID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Locations":[{"ProjectLocationID":0,"ProjectID":0,"Name":"String","Address1":"String","Address2":"String","City":"String","State":"String","Zip":"String","Latitude":0,"Longitude":0,"TotalArea":0,"AreaUnit":"String","AccessInstructions":"String","IsPrimary":false,"DisplayOrder":0,"Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","Areas":[{"ProjectLocationAreaID":0,"ProjectLocationID":0,"Name":"String","Measurement":0,"MeasurementUnit":"String","Notes":"String","DisplayOrder":0,"Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"Equipment":[{"ProjectLocationEquipmentID":0,"ProjectLocationID":0,"Name":"String","Description":"String","Manufacturer":"String","Model":"String","SerialNumber":"String","AssetTag":"String","Notes":"String","Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"SiteDetails":[{"ProjectLocationSiteDetailID":0,"ProjectLocationID":0,"DetailType":"String","Label":"String","Value":"String","IsSensitive":false,"EncVersion":0,"HasValue":false,"Notes":"String","DisplayOrder":0,"Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"Attachments":[{"ProjectLocationAttachmentID":0,"ProjectLocationID":0,"ProjectLocationAreaID":0,"Kind":"String","DocTitle":"String","FileName":"String","Url":"String","MimeType":"String","UploadDate":"0001-01-01T00:00:00.0000000","UploadedBy":"String","Active":false}]}],"Areas":[{"ProjectLocationAreaID":0,"ProjectLocationID":0,"Name":"String","Measurement":0,"MeasurementUnit":"String","Notes":"String","DisplayOrder":0,"Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"Equipment":[{"ProjectLocationEquipmentID":0,"ProjectLocationID":0,"Name":"String","Description":"String","Manufacturer":"String","Model":"String","SerialNumber":"String","AssetTag":"String","Notes":"String","Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"SiteDetails":[{"ProjectLocationSiteDetailID":0,"ProjectLocationID":0,"DetailType":"String","Label":"String","Value":"String","IsSensitive":false,"EncVersion":0,"HasValue":false,"Notes":"String","DisplayOrder":0,"Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"}],"Attachments":[{"ProjectLocationAttachmentID":0,"ProjectLocationID":0,"ProjectLocationAreaID":0,"Kind":"String","DocTitle":"String","FileName":"String","Url":"String","MimeType":"String","UploadDate":"0001-01-01T00:00:00.0000000","UploadedBy":"String","Active":false}],"SiteDetail":{"ProjectLocationSiteDetailID":0,"ProjectLocationID":0,"DetailType":"String","Label":"String","Value":"String","IsSensitive":false,"EncVersion":0,"HasValue":false,"Notes":"String","DisplayOrder":0,"Active":false,"CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}